Since the source package name is no longer indicative of the upstream kernel
version, we need to grab it from the package version instead. Hopefully this won't cause things to break too terribly if we decide to mess around w/ the upstream version (ie, 2.6.12.99.rc3-1 or something). svn path=/trunk/kernel/source/linux-kernel-2.6.12/; revision=3474
This commit is contained in:
parent
2a08e34837
commit
54a744f1cf
|
@ -8,12 +8,12 @@ abiname := 1
|
|||
#
|
||||
SHELL := sh -e
|
||||
karch := $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
||||
version := $(shell dpkg-parsechangelog | sed -n 's/^Source: linux-kernel-\(.\+\)$$/\1/p')
|
||||
srcver := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
|
||||
version := $(word 1,$(subst -, ,$(srcver)))
|
||||
ltver := $(word 2,$(subst -, ,$(srcver)))
|
||||
major_v := $(word 1,$(subst ., ,$(version)))
|
||||
minor_v := $(word 2,$(subst ., ,$(version)))
|
||||
major := $(major_v).$(minor_v)
|
||||
srcver := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
|
||||
ltver := $(word 2,$(subst -, ,$(srcver)))
|
||||
release := $(version)-$(ltver)
|
||||
uver := $(subst .,_,$(version))
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue