File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -340,7 +340,14 @@ macro(project project_name)
340
340
# PROJECT_NAME is taken from the passed name from project() call
341
341
# PROJECT_DIR is set to the current directory
342
342
# PROJECT_VER is from the version text or git revision of the current repo
343
- set (_sdkconfig_defaults "$ENV{SDKCONFIG_DEFAULTS} " )
343
+
344
+ # SDKCONFIG_DEFAULTS environment variable may specify a file name relative to the root of the project.
345
+ # When building the bootloader, ignore this variable, since:
346
+ # 1. The bootloader project uses an existing SDKCONFIG file from the top-level project
347
+ # 2. File specified by SDKCONFIG_DEFAULTS will not be found relative to the root of the bootloader project
348
+ if (NOT BOOTLOADER_BUILD )
349
+ set (_sdkconfig_defaults "$ENV{SDKCONFIG_DEFAULTS} " )
350
+ endif ()
344
351
345
352
if (NOT _sdkconfig_defaults )
346
353
if (EXISTS "${CMAKE_SOURCE_DIR} /sdkconfig.defaults" )
You can’t perform that action at this time.
0 commit comments