summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPatrick Delaunay <[email protected]>2021-11-08 10:21:21 +0100
committerTom Rini <[email protected]>2021-12-01 13:33:45 -0500
commitff062765c2eb192f099355a22d9d0727ac74160b (patch)
tree09a78abf269a7309f4994629de18e55df3191dc5 /scripts
parentfc47dbb26e9d86a688e69e198b2ed0749db16756 (diff)
scripts: remove CONFIG_IS_ENABLED and CONFIG_VAL in generated u_boot.cfg
The two helpers macros CONFIG_IS_ENABLED and CONFIG_VAL are defined in include/linux/kconfig.h but they are not real configurations; they can be safely removed in the generated configuration file "u-boot.cfg". This patch simplifies the comparison of this U-Boot configuration file. Signed-off-by: Patrick Delaunay <[email protected]> Acked-by: Simon Glass <[email protected]>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.autoconf3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/Makefile.autoconf b/scripts/Makefile.autoconf
index 8a3efdb2db0..5ed9abc8e14 100644
--- a/scripts/Makefile.autoconf
+++ b/scripts/Makefile.autoconf
@@ -67,7 +67,8 @@ quiet_cmd_autoconf = GEN $@
quiet_cmd_u_boot_cfg = CFG $@
cmd_u_boot_cfg = \
$(CPP) $(c_flags) $2 -DDO_DEPS_ONLY -dM $(srctree)/include/common.h > [email protected] && { \
- grep 'define CONFIG_' [email protected] > $@; \
+ grep 'define CONFIG_' [email protected] | \
+ sed '/define CONFIG_IS_ENABLED(/d;/define CONFIG_VAL(/d;' > $@; \
} || { \
rm [email protected]; false; \