Browse Source

More specific sed to hit just the one config symbol.

Rob Landley 1 year ago
parent
commit
0866cdd2a0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/mkroot.sh

+ 1 - 1
scripts/mkroot.sh

@@ -262,7 +262,7 @@ else
   pushd "$LINUX" && make distclean && popd &&
   cp -sfR "$LINUX" "$TEMP/linux" && pushd "$TEMP/linux" &&
   # Fix x86-64, sh2eb, and building with cc pointing to llvm or gcc
-  sed -Eis '/select HAVE_(STACK_VALIDATION|OBJTOOL)/d' arch/x86/Kconfig &&
+  sed -Eis '/select HAVE_(STACK_VALIDATION|OBJTOOL)[^_]/d' arch/x86/Kconfig &&
   sed -is 's/depends on !SMP/& || !MMU/' mm/Kconfig &&
   sed -i 's@=\(.*[ )]\)gcc$@:=\1$(shell $(CROSS_COMPILE)cc --version >/dev/null 2>\&1 \&\& echo cc || echo gcc)@' Makefile &&