Skip to content

Commit

Permalink
Merge pull request #377 from mariux64/rebuild-crashlinux
Browse files Browse the repository at this point in the history
Rebuild crashlinux
  • Loading branch information
pmenzel authored May 11, 2017
2 parents 6c118dc + fdcdde8 commit 3759902
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions crashlinux-4.4.2-3.bee → crashlinux-4.4.67-0.bee
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ if [ -z "${PKGVERSION[3]}" ] ; then
KERNELVERSION=${KERNELVERSION}.0
fi

echo $KERNELVERSION
# append extra version to get for example 4.8.0-rc4
KERNELVERSION=${KERNELVERSION}${PKGEXTRAVERSION_DASH}

SRCURL[0]="http://www.kernel.org/pub/linux/kernel/v${PKGVERSION[1]}.x/linux-${PKGVERSION}.tar.xz"
echo $KERNELVERSION

#PATCHURL+=(/src/mariux/patches/linux-0001-NFS-Fix-attribute-cache-revalidation.patch)
#PATCHURL+=(/src/mariux/patches/linux-0002-NFS-Ensure-we-revalidate-attributes-before-using-exe.patch)
#PATCHURL+=(/src/mariux/patches/linux-0003-NFSv4-Don-t-perform-cached-access-checks-before-we-v.patch)
#PATCHURL+=(/src/mariux/patches/linux-0001-bnx2x-Fix-VLANs-null-pointer-for-57710-57711.patch)
SRCURL[0]="https://cdn.kernel.org/pub/linux/kernel/v${PKGVERSION[1]}.x/linux-${PKGVERSION}${PKGEXTRAVERSION_DASH}.tar.xz"

# EXCLUDE=""

Expand All @@ -33,18 +31,27 @@ mee_patch() {
mee_configure() {
echo "configure $@"

if [ -n "$CONFIG" ] ; then
cp -v ${CONFIG} .config
make -C $S olddefconfig
else
make -C $S defconfig
if [ -z "$CONFIG" ]; then
echo "please specifiy old config in environment"
exit 1
fi


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
}

Expand All @@ -56,7 +63,6 @@ mee_build() {
mee_install() {
echo "install $@"

make modules_install INSTALL_MOD_PATH=${D}
make install INSTALL_PATH=${D}/boot

ln -sv bzImage-${FULLKERNELVERSION} ${D}/boot/crashkernel.${PKGREVISION}
Expand Down

0 comments on commit 3759902

Please sign in to comment.