2018-08-22 03:56:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
if ! ./scripts/download; then
|
|
|
|
echo "blah"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
./scripts/extract
|
|
|
|
run-parts -v ./scripts/hooks
|
|
|
|
|
|
|
|
source scripts/build-common
|
|
|
|
source scripts/version
|
|
|
|
|
|
|
|
DIR=${VERSION}
|
|
|
|
|
2018-11-30 09:12:34 +00:00
|
|
|
if [ -e "/source/dist/kernel/linux-${KERNEL_VERSION}-${KERNEL_ARCH}.tar.gz" ]; then
|
|
|
|
echo "skipping kernel build - found linux-${KERNEL_VERSION}-rancher-${KERNEL_ARCH}.tar.gz in ./dist/kernel/"
|
2018-08-22 03:56:32 +00:00
|
|
|
else
|
|
|
|
cd ${BUILD}/${DIR}
|
2018-11-30 09:12:34 +00:00
|
|
|
make ARCH=${KERNEL_ARCH} oldconfig
|
2018-08-22 03:56:32 +00:00
|
|
|
cp .config ${DIST}/kernel/config
|
|
|
|
fi
|