From: Prarit Bhargava <prarit(a)redhat.com>
configs/process_configs.sh: Remove orig files
When executing 'make dist-configs' there are extra redhat/configs/*.orig
files left lying around. This occurs because the orig files are being
created for 'EMPTY' variants and then the code immediately continues to
the next variant.
Move the 'EMPTY' check so that the orig files are not created for 'EMPTY'
variants.
Signed-off-by: Prarit Bhargava <prarit(a)redhat.com>
diff --git a/redhat/configs/process_configs.sh b/redhat/configs/process_configs.sh
index blahblah..blahblah 100755
--- a/redhat/configs/process_configs.sh
+++ b/redhat/configs/process_configs.sh
@@ -226,15 +226,17 @@ function process_configs()
for cfg in "$SCRIPT_DIR/${PACKAGE_NAME}${KVERREL}${SUBARCH}"*.config
do
arch=$(head -1 "$cfg" | cut -b 3-)
- cfgtmp="${cfg}.tmp"
- cfgorig="${cfg}.orig"
- cat "$cfg" > "$cfgorig"
if [ "$arch" = "EMPTY" ]
then
# This arch is intentionally left blank
continue
fi
+
+ cfgtmp="${cfg}.tmp"
+ cfgorig="${cfg}.orig"
+ cat "$cfg" > "$cfgorig"
+
echo -n "Processing $cfg ... "
make ${MAKEOPTS} ARCH="$arch" CROSS_COMPILE=$(get_cross_compile $arch)
KCONFIG_CONFIG="$cfgorig" listnewconfig >& .listnewconfig
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1623