summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-12-10 13:05:38 +0000
committerGitHub <noreply@github.com>2025-12-10 13:05:38 +0000
commit39d836a15cee1db6304c6d1470e9d5fbb4280b05 (patch)
tree5de0003e8b07c26538c48a335be1c4a477598689 /scripts
parent7a5f513f801edf80f83f2c52710ac666c4becc56 (diff)
parent7e803f5000bd77b8cb172cf31b04146c4fc76c8a (diff)
downloadvyos-build-39d836a15cee1db6304c6d1470e9d5fbb4280b05.tar.gz
vyos-build-39d836a15cee1db6304c6d1470e9d5fbb4280b05.zip
Merge pull request #1075 from asklymenko/patch-3
T8085: Do not hardcode values in kernel build scripts
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/package-build/linux-kernel/build-kernel.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/package-build/linux-kernel/build-kernel.sh b/scripts/package-build/linux-kernel/build-kernel.sh
index 62dd7829..82028244 100755
--- a/scripts/package-build/linux-kernel/build-kernel.sh
+++ b/scripts/package-build/linux-kernel/build-kernel.sh
@@ -1,6 +1,7 @@
#!/bin/bash
CWD=$(pwd)
KERNEL_SRC=linux
+ARCH=$(dpkg --print-architecture)
set -e
@@ -22,7 +23,14 @@ cp -rv ${CWD}/arch/ .
KERNEL_VERSION=$(make kernelversion)
KERNEL_SUFFIX=-$(awk -F "= " '/kernel_flavor/ {print $2}' ../../../../data/defaults.toml | tr -d \")
-KERNEL_CONFIG=arch/x86/configs/vyos_defconfig
+
+if [ "${ARCH}" = "arm64" ]; then
+ KERNEL_CONFIG=arch/arm64/configs/vyos_defconfig
+else
+ KERNEL_CONFIG=arch/x86/configs/vyos_defconfig
+fi
+
+echo "KERNEL_CONFIG: ${KERNEL_CONFIG}"
# VyOS requires some small Kernel Patches - apply them here
# It's easier to habe them here and make use of the upstream