summaryrefslogtreecommitdiff
path: root/scripts/build-kernel
diff options
context:
space:
mode:
authorRunar Borge <runar@borge.nu>2019-07-22 21:54:20 +0200
committerRunar Borge <runar@borge.nu>2019-07-22 21:54:20 +0200
commit6056acfa06c2b79ee8981b9f36a1ced2dac29111 (patch)
tree613944f1de089105950a86501507b6aa2151380d /scripts/build-kernel
parentb229f0bd958a42c6faa345c91500c2ed8ccdc919 (diff)
parent8c22ceead487b745d6b7c058c4d1c0a0eaa051c8 (diff)
downloadvyos-build-6056acfa06c2b79ee8981b9f36a1ced2dac29111.tar.gz
vyos-build-6056acfa06c2b79ee8981b9f36a1ced2dac29111.zip
Merge remote-tracking branch 'origin/current' into equuleus
fixed merge errors in: * scripts/live-build-config - kernel parameters * scripts/build-packages - fixed list of packages to compile
Diffstat (limited to 'scripts/build-kernel')
-rwxr-xr-xscripts/build-kernel36
1 files changed, 0 insertions, 36 deletions
diff --git a/scripts/build-kernel b/scripts/build-kernel
deleted file mode 100755
index e58d2d5a..00000000
--- a/scripts/build-kernel
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/bash
-if [ ! -f "Makefile" ]; then
- echo "Makefile missing, This script needs to be executed inside the vyos-kernel package directory"
- exit 1
-fi
-
-if grep -Fxq "KBUILD_OUTPUT" Makefile; then
- echo "Wrong Makefile?, This script needs to be executed inside the vyos-kernel package directory"
- exit 1
-fi
-
-
-# newer Kernel versions come with a "# SPDX-License-Identifier: GPL-2.0" identifier
-# as the first line in the file - use compatible approach with grep rather then sed
-VERSION=$(grep "^VERSION" Makefile | grep -Eo '[0-9]{1,4}')
-PATCHLEVEL=$(grep "^PATCHLEVEL" Makefile | grep -Eo '[0-9]{1,4}')
-SUBLEVEL=$(grep "^SUBLEVEL" Makefile | grep -Eo '[0-9]{1,4}')
-ARCH=$(dpkg --print-architecture)
-
-case "$ARCH" in
- amd64)
- make x86_64_vyos_defconfig
- TARGETS="kernel_headers kernel_image"
- # the following targets are not supported for Linux Kernels > 4.14 as
- # they have been removed from the Makefile (commits 18afab8c1d3c2 &
- # 22cba31bae9dc).
- if [ ${PATCHLEVEL} -lt 14 ]; then
- TARGETS+=" kernel_manual kernel_doc"
- fi
- CONCURRENCY_LEVEL=4 LOCALVERSION="" make-kpkg --rootcmd fakeroot --initrd --append_to_version -amd64-vyos --revision=$VERSION.$PATCHLEVEL.$SUBLEVEL-1+vyos1+current1 -j$(cat /proc/cpuinfo | grep processor | wc -l) ${TARGETS}
- ;;
-
- armhf)
- make armhf_vyos_defconfig
- ;;
-esac