From 9c0ab11023bf804dd456b70d50b5dcca8426d966 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 6 Dec 2016 15:22:09 +0100 Subject: [PATCH] linux: Add release candidate version 4.9-rc8 Announcement for Linux 4.9-rc8 [1]: > So if anybody has been following the git tree, it should come as no > surprise that I ended up doing an rc8 after all: things haven't been > bad, but it also hasn't been the complete quiet that would have made > me go "no point in doing another week". > > Extra kudos to Arnd, who actually root-caused the incredibly annoying > "modversions do not work with new versions of binutils", bisecting it > to a particular change to symbol handling in binutils, and then adding > a small one-liner patch to the kernel to work around the issue. We > already had other workarounds in place, but it's always good to know > exactly what in the tool chain changed to cause things like this. > > But that one-liner was just one of 163 small fixes (not counting > merges) in rc8. That's pretty small (for the kernel), but certainly > not completely quiet. Full details appended, but it's mostly > networking (error path leaks stand out, but it's a random collection) > and random drivers, with a couple of small fixes to core stuff > (vm/fs/kernel). > > Linus [1] https://lkml.org/lkml/2016/12/4/142 --- linux-4.9_rc8-126.bee | 79 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100755 linux-4.9_rc8-126.bee diff --git a/linux-4.9_rc8-126.bee b/linux-4.9_rc8-126.bee new file mode 100755 index 000000000..889f80ce5 --- /dev/null +++ b/linux-4.9_rc8-126.bee @@ -0,0 +1,79 @@ +#!/bin/env beesh + +# note: CONFIG=/boot/config-WHATEVER BEE_MAKEFLAGS='-j 40' ./linux-xxx.bee + +KERNELVERSION=${PKGVERSION} +if [ -z "${PKGVERSION[3]}" ] ; then + KERNELVERSION=${KERNELVERSION}.0 +fi + +# append extra version to get for example 4.8.0-rc4 +KERNELVERSION=${KERNELVERSION}${PKGEXTRAVERSION_DASH} + +echo $KERNELVERSION + +SRCURL[0]="https://cdn.kernel.org/pub/linux/kernel/v${PKGVERSION[1]}.x/testing/linux-${PKGVERSION}${PKGEXTRAVERSION_DASH}.tar.xz" + +# EXCLUDE="" + +#CONFIG= + +KERNELLOCAL=".mx64.${PKGREVISION}" +FULLKERNELVERSION="${KERNELVERSION}${KERNELLOCAL}" + +B=${S} + +mee_patch() { + echo "PATCH $@" + bee_patch $@ +} + +mee_configure() { + echo "configure $@" + if [ -e /proc/config.gz ] ; then + zcat /proc/config.gz >config-current + RUNNING=config-current + else + RUNNING=/boot/config-$(uname -r) + fi + + : ${CONFIG:=${RUNNING}} + + if [ ! -e ${CONFIG} ] ; then + echo "can't find config '${CONFIG}'" + exit 1 + fi + + cp -v ${CONFIG} .config + + LOCALVERSION="\"${KERNELLOCAL}\"" + sed -i -e "s@CONFIG_LOCALVERSION=.*@CONFIG_LOCALVERSION=${LOCALVERSION}@" .config + + echo "doing make -C ${S} olddefconfig in ${PWD} .." + + make olddefconfig + + echo "doing make -C ${S} menuconfig in ${PWD} .." + + make menuconfig +} + +mee_build() { + echo "build $@" + make ${BEE_MAKEFLAGS} +} + +mee_install() { + echo "install $@" + + make modules_install INSTALL_MOD_PATH=${D} + make install INSTALL_PATH=${D}/boot +# make firmware_install INSTALL_MOD_PATH=${D} + + rm -v ${D}/lib/modules/${FULLKERNELVERSION}/{source,build} + + ln -sv /usr/src/linux/${PKGALLPKG}/source ${D}/lib/modules/${FULLKERNELVERSION}/source + ln -sv /usr/src/linux/${PKGALLPKG}/build ${D}/lib/modules/${FULLKERNELVERSION}/build + + ln -sv bzImage-${FULLKERNELVERSION} ${D}/boot/mariux.${PKGREVISION} +}