mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 11:45:07 +03:00
fix(kernel-headers)
This commit is contained in:
parent
b4c07a85f5
commit
58ac56327f
1 changed files with 6 additions and 4 deletions
|
@ -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}}))
|
||||
|
|
Loading…
Reference in a new issue