summaryrefslogtreecommitdiff
path: root/scripts/build-config
diff options
context:
space:
mode:
authorRunar Borge <runar@borge.nu>2019-01-01 23:37:16 +0100
committerRunar Borge <runar@borge.nu>2019-01-01 23:37:16 +0100
commita47e9599b48e5402a1b14228cf6e019078116365 (patch)
treea2665e2754449bc7b8800ffc10c468b19b56acca /scripts/build-config
parentb66718a87b2599e34945000d2301959cce90152a (diff)
parent23e35e77feca41b5ef0efee80832c7106d7862ab (diff)
downloadvyos-build-a47e9599b48e5402a1b14228cf6e019078116365.tar.gz
vyos-build-a47e9599b48e5402a1b14228cf6e019078116365.zip
Merge remote-tracking branch 'upstream/current' into current
Diffstat (limited to 'scripts/build-config')
-rwxr-xr-xscripts/build-config5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build-config b/scripts/build-config
index 76e83192..3b44df77 100755
--- a/scripts/build-config
+++ b/scripts/build-config
@@ -125,6 +125,11 @@ env_check_retval = os.system("scripts/check-build-env")
if env_check_retval > 0:
print("Build environment check failed, fix the issues and retry")
+# Get the kernel version from data/kernel_version
+with open("data/kernel_version") as f:
+ kernel_version = f.read().strip()
+ args['kernel_version'] = kernel_version
+
# Save to file
os.makedirs(defaults.BUILD_DIR, exist_ok=True)