From 9f7d285af66e80a8ac3b338b92bef4c1a17672ff Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 5 Apr 2024 11:51:20 -0500 Subject: Copy numeric config symbols into config.h. --- scripts/make.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/make.sh b/scripts/make.sh index 5fef9887..512fdc75 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -147,9 +147,9 @@ fi # Rebuild config.h from .config $SED -En $KCONFIG_CONFIG > "$GENDIR"/config.h \ - -e 's/^# CONFIG_(.*) is not set.*/#define CFG_\1 0\n#define USE_\1(...)/p' \ - -e 's/^CONFIG_(.*)=y.*/#define CFG_\1 1\n#define USE_\1(...) __VA_ARGS__/p'\ - || exit 1 + -e 's/^# CONFIG_(.*) is not set.*/#define CFG_\1 0\n#define USE_\1(...)/p;t' \ + -e 's/^CONFIG_(.*)=y.*/#define CFG_\1 1\n#define USE_\1(...) __VA_ARGS__/p;t'\ + -e 's/^CONFIG_(.*)=/#define CFG_\1 /p' || exit 1 # Process config.h and newtoys.h to generate FLAG_x macros. Note we must # always #define the relevant macro, even when it's disabled, because we -- cgit v1.2.3