-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: Add new option to replace IDF_PATH and project path with plac…
…eholders in macros Allows building with asserts on and still not finding any actual file paths in the final binary file. Alternative fix for #6306 Progress towards #5873
- Loading branch information
1 parent
9ae01e4
commit 9b988ca
Showing
10 changed files
with
53 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
tools/test_apps/system/no_embedded_paths/main/test_no_embedded_paths_main.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
/* This test app only exists for the build stage, so doesn't need to do anything at runtime */ | ||
/* This test app only exists for the build stage, so doesn't need to do anything at runtime | ||
apart from embedding an assert to check asserts inside the project dir */ | ||
#include <assert.h> | ||
|
||
// Declared non-static to avoid the assert being optimized out | ||
int other_function(void) | ||
{ | ||
return 3; | ||
} | ||
|
||
void app_main(void) | ||
{ | ||
assert(other_function() == 3); | ||
} |
1 change: 1 addition & 0 deletions
1
tools/test_apps/system/no_embedded_paths/sdkconfig.ci.noasserts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tools/test_apps/system/no_embedded_paths/sdkconfig.ci.noasserts.nimble
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
tools/test_apps/system/no_embedded_paths/sdkconfig.ci.replacepaths
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# this is the default value, actually | ||
CONFIG_COMPILER_HIDE_PATHS_MACROS=y | ||
|
||
# compiling as many files as possible here (we don't have 100% coverage of course, due to config options, but | ||
# try to maximize what we can check | ||
CONFIG_BT_ENABLED=y | ||
CONFIG_BT_BLUEDROID_ENABLED=y | ||
CONFIG_BLE_MESH=y |
1 change: 1 addition & 0 deletions
1
tools/test_apps/system/no_embedded_paths/sdkconfig.ci.silentasserts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tools/test_apps/system/no_embedded_paths/sdkconfig.ci.silentasserts.nimble
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters