Commit 2979b263 authored by Benoît Thébaudeau's avatar Benoît Thébaudeau Committed by Albert ARIBAUD Make it possible to define configs from other configs

Give more flexibility to define configs that can be interpreted by make, e.g. to
define fallback values of configs like in the example below.

Before this change, the config lines:
 #define CONFIG_SPL_MAX_SIZE	2048
would have been changed in into:

Hence, a make recipe using as an argument to $(OBJCOPY):
would have issued:
which means nothing for $(OBJCOPY) and makes it fail.

Thanks to this change, the config lines above are changed in into:

Hence, the make recipe above now issues:
as expected from the defined config.
Signed-off-by: default avatarBenoît Thébaudeau <>
Reviewed-by: default avatarTom Rini <>
parent 9c5feab7
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
s/="\([0-9][0-9]*\)"/=\1/; s/="\([0-9][0-9]*\)"/=\1/;
# ... and from hex numbers # ... and from hex numbers
s/="\(0[Xx][0-9a-fA-F][0-9a-fA-F]*\)"/=\1/; s/="\(0[Xx][0-9a-fA-F][0-9a-fA-F]*\)"/=\1/;
# ... and from configs defined from other configs
# Change '1' and empty values to "y" (not perfect, but # Change '1' and empty values to "y" (not perfect, but
# supports conditional compilation in the makefiles # supports conditional compilation in the makefiles
s/=$/=y/; s/=$/=y/;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment