fix(kernel-headers)

This commit is contained in:
Jacob Heider 2023-05-17 11:52:19 -04:00 committed by Jacob Heider
parent b4c07a85f5
commit 58ac56327f

View file

@ -22,7 +22,9 @@ build:
mkdir -p "{{prefix}}" mkdir -p "{{prefix}}"
cp -a usr/include "{{prefix}}/" cp -a usr/include "{{prefix}}/"
test: | test:
grep "LINUX_VERSION_MAJOR {{version.major}}" "{{prefix}}/include/linux/version.h" script:
grep "LINUX_VERSION_PATCHLEVEL {{version.minor}}" "{{prefix}}/include/linux/version.h" grep "LINUX_VERSION_CODE $V" "{{prefix}}/include/linux/version.h"
grep "LINUX_VERSION_SUBLEVEL {{version.patch}}" "{{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}}))