diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-11-29 08:51:17 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-12-14 16:34:43 +0100 |
commit | 3939384aff842cc3fb6c5d24d3d2af17ecf0fab9 (patch) | |
tree | 795002ca7180a3e2af45a06e1c9850791e1ca916 /packages/linux-kernel/build-kernel.sh | |
parent | b35660db9bd641a9ffc4c21e2dce7379d08c458c (diff) | |
download | vyos-build-3939384aff842cc3fb6c5d24d3d2af17ecf0fab9.tar.gz vyos-build-3939384aff842cc3fb6c5d24d3d2af17ecf0fab9.zip |
Kernel: T3129: update Linux Kernel to v5.4.83
Diffstat (limited to 'packages/linux-kernel/build-kernel.sh')
-rwxr-xr-x | packages/linux-kernel/build-kernel.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/linux-kernel/build-kernel.sh b/packages/linux-kernel/build-kernel.sh index 06bf28b6..a92fc41b 100755 --- a/packages/linux-kernel/build-kernel.sh +++ b/packages/linux-kernel/build-kernel.sh @@ -12,6 +12,9 @@ cp x86_64_vyos_defconfig ${KERNEL_SRC}/arch/x86/configs cd ${KERNEL_SRC} +echo "I: clean modified files" +git reset --hard HEAD + KERNEL_VERSION=$(make kernelversion) KERNEL_SUFFIX=-$(dpkg --print-architecture)-vyos @@ -41,3 +44,11 @@ EOF echo "I: Build Debian Kernel package" touch .scmversion make bindeb-pkg BUILD_TOOLS=1 LOCALVERSION=${KERNEL_SUFFIX} KDEB_PKGVERSION=${KERNEL_VERSION}-1 -j $(getconf _NPROCESSORS_ONLN) + +cd $CWD +if [[ $? == 0 ]]; then + for package in $(ls linux-*.deb) + do + ln -sf linux-kernel/$package .. + done +fi |