forked from pool/linux-glibc-devel
Accepting request 81182 from Base:System
Fix LINUX_VERSION_CODE (forwarded request 81181 from a_jaeger) OBS-URL: https://build.opensuse.org/request/show/81182 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/linux-glibc-devel?expand=0&rev=17
This commit is contained in:
commit
628e289501
@ -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
|
||||
|
||||
|
@ -85,9 +85,10 @@ cat > version.h <<-BOGUS
|
||||
#error " Please adjust the Makefile accordingly."
|
||||
#error "======================================================="
|
||||
#else
|
||||
#define UTS_RELEASE "%{version}"
|
||||
#define LINUX_VERSION_CODE `bash -c 'v="%{version}";c=0;read a b <<< "${v//./ }";echo "$(( (($a) << 16) + (($b) << 8) + ($c) ))"'`
|
||||
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
|
||||
BOGUS
|
||||
# Get LINUX_VERSION_CODE and KERNEL_VERSION directly from kernel
|
||||
cat usr/include/linux/version.h >> version.h
|
||||
cat >> version.h <<-BOGUS
|
||||
#endif
|
||||
BOGUS
|
||||
cat version.h
|
||||
|
Loading…
Reference in New Issue
Block a user