summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-07-21 04:03:46 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2009-07-21 04:03:46 (GMT)
commit61866d4b7db1e1a320d23986174e3d5bd5428ee4 (patch)
tree7114c3b116f75023db857ecd9a3ecacdc9b3f861
parent380b2a34183fe74e58375c2e4e3d8071de10cf98 (diff)
downloadktest-61866d4b7db1e1a320d23986174e3d5bd5428ee4.zip
ktest-61866d4b7db1e1a320d23986174e3d5bd5428ee4.tar.gz
ktest-61866d4b7db1e1a320d23986174e3d5bd5428ee4.tar.bz2
ktest-61866d4b7db1e1a320d23986174e3d5bd5428ee4.tar.xz
Use the Kbuild override file system
-rwxr-xr-xallmake.sh7
-rw-r--r--override.no0
-rw-r--r--override.yes5
3 files changed, 9 insertions, 3 deletions
diff --git a/allmake.sh b/allmake.sh
index f2004a6..52aa874 100755
--- a/allmake.sh
+++ b/allmake.sh
@@ -43,16 +43,17 @@ done
for a in x86_64 i386; do
if [ "$a" = i386 ]; then gccopt=' -m32'; else gccopt=''; fi
mkdir -p o.$a-allconfig o.$a-noconfig
+ export KCONFIG_ALLCONFIG="$here"/override.yes
make ARCH=$a O=o.$a-allconfig CC="$gcc$gccopt" allyesconfig
- sed -r -e 's/^(CONFIG_DEBUG_INFO|CONFIG_CMDLINE_BOOL|CONFIG_BROKEN|CONFIG_SERIAL_MAX3100)=./\1=n/' \
- -i o.$a-allconfig/.config
+ export KCONFIG_ALLCONFIG="$here"/override.no
make ARCH=$a O=o.$a-noconfig CC="$gcc$gccopt" allnoconfig
+ unset KCONFIG_ALLCONFIG
done
MKFILE=/tmp/allmake.$$
rm -f $MKFILE
-fdargs='ro root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial,ttyS0'
+fdargs='ro root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial,ttyS0 disable_mtrr_trim'
cat > $MKFILE <<EOF
TARGET=all
diff --git a/override.no b/override.no
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/override.no
diff --git a/override.yes b/override.yes
new file mode 100644
index 0000000..00ee024
--- /dev/null
+++ b/override.yes
@@ -0,0 +1,5 @@
+CONFIG_DEBUG_INFO=n
+CONFIG_CMDLINE_BOOL=n
+CONFIG_BROKEN=n
+CONFIG_SERIAL_MAX3100=n
+CONFIG_FEALNX=n