From 58ac56327fa4ccda2e5d4a6fe82de067ee6d9764 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Wed, 17 May 2023 11:52:19 -0400 Subject: [PATCH] fix(kernel-headers) --- projects/kernel.org/linux-headers/package.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/projects/kernel.org/linux-headers/package.yml b/projects/kernel.org/linux-headers/package.yml index 82a37cd5..32696347 100644 --- a/projects/kernel.org/linux-headers/package.yml +++ b/projects/kernel.org/linux-headers/package.yml @@ -22,7 +22,9 @@ build: mkdir -p "{{prefix}}" cp -a usr/include "{{prefix}}/" -test: | - grep "LINUX_VERSION_MAJOR {{version.major}}" "{{prefix}}/include/linux/version.h" - grep "LINUX_VERSION_PATCHLEVEL {{version.minor}}" "{{prefix}}/include/linux/version.h" - grep "LINUX_VERSION_SUBLEVEL {{version.patch}}" "{{prefix}}/include/linux/version.h" +test: + script: + grep "LINUX_VERSION_CODE $V" "{{prefix}}/include/linux/version.h" + env: + #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + ((c) > 255 ? 255 : (c))) + V: $(({{version.major}} * 65536 + {{version.minor}} * 256 + {{version.patch}}))