mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05:07 +03:00
parent
9d6f81d5ff
commit
6e41dd9691
1 changed files with 9 additions and 3 deletions
|
@ -24,7 +24,13 @@ build:
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script:
|
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)))
|
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + ((c) > 255 ? 255 : (c)))
|
||||||
V: $(({{version.major}} * 65536 + {{version.minor}} * 256 + {{version.patch}}))
|
- run:
|
||||||
|
PATCH=$(test {{version.patch}} -gt 255
|
||||||
|
&& echo 255
|
||||||
|
|| echo {{version.patch}})
|
||||||
|
- run:
|
||||||
|
V=$(({{version.major}} * 65536
|
||||||
|
+ {{version.minor}} * 256
|
||||||
|
+ $PATCH))
|
||||||
|
- grep "LINUX_VERSION_CODE $V" "{{prefix}}/include/linux/version.h"
|
||||||
|
|
Loading…
Reference in a new issue