From 0aabe514530f013a384e482cf373eb0d6056fcbf Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Mon, 1 Apr 2024 19:19:27 +0800 Subject: [PATCH] kbuild: xz_wrap: do not include include/config/auto.conf Fix the following error: ./scripts/xz_wrap.sh: 315: include/config/auto.conf: Syntax error: "(" unexpected Fixes: 83c382f4369e ("FROMLIST: kbuild: Enable armthumb BCJ filter for Thumb-2 kernel") Signed-off-by: Tao Huang Change-Id: I780ac11132c7a42ad189fc9c955a94139a3d62aa --- scripts/xz_wrap.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/xz_wrap.sh b/scripts/xz_wrap.sh index 3824fdf037be..8b9523495ddd 100755 --- a/scripts/xz_wrap.sh +++ b/scripts/xz_wrap.sh @@ -9,8 +9,6 @@ # You can do whatever you want with this file. # -. include/config/auto.conf - BCJ= LZMA2OPTS= @@ -22,7 +20,7 @@ case $SRCARCH in sparc) BCJ=--sparc ;; esac -if [ -n "${CONFIG_THUMB2_KERNEL}" ]; then +if grep -q "^CONFIG_THUMB2_KERNEL=y" include/config/auto.conf; then BCJ=--armthumb fi