future-proof $(major); we don't want an upstream of 2.6.12.1 (for example)
returning a $(major) of 2.6.12. It might be better to have $(major) be the actual major version (ie, 2), and export $(minor) as well (ie, 6). svn path=/trunk/kernel/source/linux-kernel-2.6.12/; revision=3429
This commit is contained in:
parent
02b3c28c3f
commit
409d7c899f
|
@ -3,6 +3,8 @@
|
|||
# Required variables
|
||||
#
|
||||
version := $(shell dpkg-parsechangelog | sed -n 's/^Source: linux-kernel-\(.\+\)$$/\1/p')
|
||||
major_v := $(wordlist 1,1,$(subst ., ,$(version)))
|
||||
minor_v := $(wordlist 2,2,$(subst ., ,$(version)))
|
||||
abiname := 1
|
||||
ltver := 1
|
||||
#
|
||||
|
@ -10,7 +12,7 @@ ltver := 1
|
|||
#
|
||||
SHELL := sh -e
|
||||
karch := $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
||||
major := $(basename $(version))
|
||||
major := $(major_v).$(minor_v)
|
||||
srcver := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
|
||||
release := $(version)-$(ltver)
|
||||
uver := $(subst .,_,$(version))
|
||||
|
|
Loading…
Reference in New Issue