forked from pool/linux-glibc-devel
Accepting request 81181 from home:a_jaeger:branches:openSUSE:Factory
Fix LINUX_VERSION_CODE OBS-URL: https://build.opensuse.org/request/show/81181 OBS-URL: https://build.opensuse.org/package/show/Base:System/linux-glibc-devel?expand=0&rev=36
This commit is contained in:
parent
b89e4f1cc2
commit
0327c07ad8
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 7 08:07:24 UTC 2011 - aj@suse.de
|
||||||
|
|
||||||
|
- Fix LINUX_VERSION_CODE
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 6 13:47:10 UTC 2011 - aj@suse.de
|
Tue Sep 6 13:47:10 UTC 2011 - aj@suse.de
|
||||||
|
|
||||||
|
@ -85,9 +85,10 @@ cat > version.h <<-BOGUS
|
|||||||
#error " Please adjust the Makefile accordingly."
|
#error " Please adjust the Makefile accordingly."
|
||||||
#error "======================================================="
|
#error "======================================================="
|
||||||
#else
|
#else
|
||||||
#define UTS_RELEASE "%{version}"
|
BOGUS
|
||||||
#define LINUX_VERSION_CODE `bash -c 'v="%{version}";c=0;read a b <<< "${v//./ }";echo "$(( (($a) << 16) + (($b) << 8) + ($c) ))"'`
|
# Get LINUX_VERSION_CODE and KERNEL_VERSION directly from kernel
|
||||||
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
|
cat usr/include/linux/version.h >> version.h
|
||||||
|
cat >> version.h <<-BOGUS
|
||||||
#endif
|
#endif
|
||||||
BOGUS
|
BOGUS
|
||||||
cat version.h
|
cat version.h
|
||||||
|
Loading…
Reference in New Issue
Block a user