From ff7ca7ca72437ed010624514320f364b87dc778c Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Sun, 31 Jan 2016 17:22:46 +0100 Subject: compile kernel with gcc5 --- build.sh | 4 ++-- kernel.patch | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 8568131..f7f2df9 100755 --- a/build.sh +++ b/build.sh @@ -21,7 +21,7 @@ pushd "$BUILDDIR" grep -q ^deb-src /etc/apt/sources.list su -c "export DEBIAN_FRONTEND=noninteractive; apt-get update; - apt-get install --yes build-essential gcc-4.9 upx-ucl gawk lilo ca-certificates; + apt-get install --yes build-essential upx-ucl gawk lilo ca-certificates; apt-get build-dep --yes musl nethack ncurses linux" @@ -91,7 +91,7 @@ pushd linux-*/ patch -p1 < "$SRCDIR/kernel.patch" cp "$SRCDIR/config-kernel" .config make oldconfig -make -j$NPROC bzImage CC="gcc-4.9" +make -j$NPROC bzImage CC="gcc -std=gnu89" popd diff --git a/kernel.patch b/kernel.patch index 369b9c5..7c6f1d8 100644 --- a/kernel.patch +++ b/kernel.patch @@ -1,3 +1,10 @@ +diff --git a/include/linux/compiler-gcc5.h b/include/linux/compiler-gcc5.h +new file mode 100644 +index 0000000..4de95e7 +--- /dev/null ++++ b/include/linux/compiler-gcc5.h +@@ -0,0 +1 @@ ++#include diff --git a/kernel/timeconst.pl b/kernel/timeconst.pl index eb51d76..0461239 100644 --- a/kernel/timeconst.pl -- cgit v1.2.3