1
0
mirror of https://github.com/rancher/os-kernel.git synced 2025-09-03 22:04:17 +00:00

apply rancher TCMU patches on top of Ubuntu-4.2.0-28.33

This commit is contained in:
Ivan Mikushin
2016-02-03 11:18:46 -08:00
parent fa6478da17
commit aa0d18ae43
5 changed files with 41 additions and 20 deletions

View File

@@ -12,22 +12,7 @@ KERNEL=$(basename ${KERNEL_URL})
DIR=${KERNEL/.tar.*//}
FIRMWARE=$(readlink -f scripts/firmware)
mkdir -p ${BUILD}
cd ${BUILD}
if [ ! -e ${DIR} ]; then
echo Extracting ${ARTIFACTS}/${KERNEL}
TEMP=$(mktemp -d -p ${BUILD})
mkdir ${TEMP}/${DIR}
trap "rm -rf ${TEMP}" exit
tar xf ${ARTIFACTS}/${KERNEL} -C ${TEMP}/${DIR} --strip-components=1
mv ${TEMP}/${DIR} ${DIR}
fi
cd ${DIR}
cp ${CONFIG}/kernel-config .config
cd ${BUILD}/${DIR}
# TODO update config/kernel-config for the latest kernel
make oldconfig