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:
@@ -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
|
||||
|
Reference in New Issue
Block a user