1
0
mirror of https://github.com/rancher/os-kernel.git synced 2025-09-05 14:50:16 +00:00

Fix script format

This commit is contained in:
niusmallnan
2018-11-08 16:10:23 +08:00
parent b5b5441ded
commit 12d4f9ee95
6 changed files with 35 additions and 35 deletions

View File

@@ -15,16 +15,16 @@ MODULE_LIST=$(readlink -f modules.list)
MODULE_EXTRA_LIST=$(readlink -f modules-extra.list)
if [ -e "/source/dist/kernel/linux-${KERNEL_VERSION}-x86.tar.gz" ]; then
echo "skipping kernel build - found linux-${KERNEL_VERSION}-rancher-x86.tar.gz in ./dist/kernel/"
echo "skipping kernel build - found linux-${KERNEL_VERSION}-rancher-x86.tar.gz in ./dist/kernel/"
else
cd ${BUILD}/${DIR}
make oldconfig
KVER=$(make kernelrelease)
if [ -e "linux-${KERNEL_VERSION}-x86.tar" ] \
&& [ "$KVER" == "$KERNEL_VERSION" ]; then
echo "Skipping kernel build, found linux-${KERNEL_VERSION}-x86.tar in $(pwd)"
else
echo "building $KVER"
make -j$(nproc) tar-pkg
fi
cd ${BUILD}/${DIR}
make oldconfig
KVER=$(make kernelrelease)
if [ -e "linux-${KERNEL_VERSION}-x86.tar" ] \
&& [ "$KVER" == "$KERNEL_VERSION" ]; then
echo "Skipping kernel build, found linux-${KERNEL_VERSION}-x86.tar in $(pwd)"
else
echo "building $KVER"
make -j$(nproc) tar-pkg
fi
fi