Skip to content

Commit 1d55a3c

Browse files
committed
Merge branch 'bugfix/idf_env_fpga_warning_make' into 'master'
cmake, make: fix remaining IDF_ENV_FPGA warnings See merge request espressif/esp-idf!9344
2 parents abef43b + 1aacb6e commit 1d55a3c

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

make/project_config.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ define RunConfGen
9292
--env "COMPONENT_KCONFIGS_PROJBUILD_SOURCE_FILE=$(COMPONENT_KCONFIGS_PROJBUILD_SOURCE_FILE)" \
9393
--env "COMPONENT_SDKCONFIG_RENAMES=$(strip $(COMPONENT_SDKCONFIG_RENAMES))" \
9494
--env "IDF_CMAKE=n" \
95+
--env "IDF_ENV_FPGA=n" \
9596
$(DEFAULTS_ARG) \
9697
--output config ${SDKCONFIG} \
9798
--output makefile $(SDKCONFIG_MAKEFILE) \
@@ -121,6 +122,7 @@ define RunMenuConf
121122
COMPONENT_KCONFIGS_SOURCE_FILE="$(COMPONENT_KCONFIGS_SOURCE_FILE)" \
122123
COMPONENT_KCONFIGS_PROJBUILD_SOURCE_FILE="$(COMPONENT_KCONFIGS_PROJBUILD_SOURCE_FILE)" \
123124
IDF_CMAKE=n \
125+
IDF_ENV_FPGA=n \
124126
$(MENUCONFIG_CMD) $(IDF_PATH)/Kconfig
125127
endef
126128

tools/ci/check_build_warnings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
1919
from find_build_apps import BuildItem, setup_logging
2020

21-
WARNING_REGEX = re.compile(r"^\s*(?:error|warning)", re.MULTILINE | re.IGNORECASE)
21+
WARNING_REGEX = re.compile(r"(?:error|warning)", re.MULTILINE | re.IGNORECASE)
2222

2323
IGNORE_WARNS = [
2424
re.compile(r_str) for r_str in [

tools/cmake/kconfig.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ function(__kconfig_generate_config sdkconfig sdkconfig_defaults)
140140

141141
idf_build_get_property(idf_target IDF_TARGET)
142142
idf_build_get_property(idf_path IDF_PATH)
143+
idf_build_get_property(idf_env_fpga __IDF_ENV_FPGA)
143144

144145
string(REPLACE ";" " " kconfigs "${kconfigs}")
145146
string(REPLACE ";" " " kconfig_projbuilds "${kconfig_projbuilds}")
@@ -259,8 +260,6 @@ function(__kconfig_generate_config sdkconfig sdkconfig_defaults)
259260
set(TERM_CHECK_CMD ${python} ${idf_path}/tools/check_term.py)
260261
endif()
261262

262-
idf_build_get_property(idf_env_fpga __IDF_ENV_FPGA)
263-
264263
# Generate the menuconfig target
265264
add_custom_target(menuconfig
266265
${menuconfig_depends}

tools/find_build_apps/common.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
"EXCLUDE_COMPONENTS",
2626
"TEST_EXCLUDE_COMPONENTS",
2727
"TEST_COMPONENTS",
28+
]
29+
30+
# These keys in sdkconfig.defaults are not propagated to the final sdkconfig file:
31+
SDKCONFIG_IGNORE_OPTS = [
2832
"TEST_GROUPS"
2933
]
3034

@@ -268,8 +272,11 @@ def build_prepare(cls, build_item):
268272
line += "\n"
269273
if cls.NAME == 'cmake':
270274
m = SDKCONFIG_LINE_REGEX.match(line)
271-
if m and m.group(1) in SDKCONFIG_TEST_OPTS:
272-
extra_cmakecache_items[m.group(1)] = m.group(2)
275+
key = m.group(1) if m else None
276+
if key in SDKCONFIG_TEST_OPTS:
277+
extra_cmakecache_items[key] = m.group(2)
278+
continue
279+
if key in SDKCONFIG_IGNORE_OPTS:
273280
continue
274281
f_out.write(os.path.expandvars(line))
275282
else:

tools/kconfig_new/config.env.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"COMPONENT_SDKCONFIG_RENAMES": "${sdkconfig_renames}",
55
"IDF_CMAKE": "y",
66
"IDF_TARGET": "${idf_target}",
7+
"IDF_ENV_FPGA": "${idf_env_fpga}",
78
"IDF_PATH": "${idf_path}",
89
"COMPONENT_KCONFIGS_SOURCE_FILE": "${kconfigs_path}",
910
"COMPONENT_KCONFIGS_PROJBUILD_SOURCE_FILE": "${kconfigs_projbuild_path}"

0 commit comments

Comments
 (0)