Minor cleanups
svn path=/branches/kernel-image-2.6.11/; revision=3266
This commit is contained in:
parent
3689352c23
commit
068bebcfd6
|
@ -28,8 +28,7 @@ lt_provides := $(shell seq -f 'linux-tree-$(version)-%g' -s ', ' 1 $(ltver))
|
||||||
ifndef subarchs
|
ifndef subarchs
|
||||||
subarchs := $(shell find debian/arch/$(karch) \
|
subarchs := $(shell find debian/arch/$(karch) \
|
||||||
-type d -mindepth 1 -maxdepth 1 \
|
-type d -mindepth 1 -maxdepth 1 \
|
||||||
! -name '.svn' ! -name 'patches' \
|
! -name '.svn' -printf '%f\n')
|
||||||
-printf '%f\n')
|
|
||||||
endif
|
endif
|
||||||
ifeq (,$(subarchs))
|
ifeq (,$(subarchs))
|
||||||
subarchs := none
|
subarchs := none
|
||||||
|
@ -112,15 +111,12 @@ ppkg := linux-patch-debian-$(version)
|
||||||
pbase := /usr/src/linux-patches/all/$(version)
|
pbase := /usr/src/linux-patches/all/$(version)
|
||||||
pfull := debian/$(ppkg)$(pbase)
|
pfull := debian/$(ppkg)$(pbase)
|
||||||
pdirs := $(pbase) $(pbase)/apply $(pbase)/debian $(pbase)/unpatch
|
pdirs := $(pbase) $(pbase)/apply $(pbase)/debian $(pbase)/unpatch
|
||||||
pdirs += $(pbase)/debian/series
|
|
||||||
patch-debian: debian/patch-debian-stamp
|
patch-debian: debian/patch-debian-stamp
|
||||||
debian/patch-debian-stamp: debian/bin/apply debian/bin/unpatch
|
debian/patch-debian-stamp: debian/bin/apply debian/bin/unpatch
|
||||||
dh_testdir
|
dh_testdir
|
||||||
dh_testroot
|
dh_testroot
|
||||||
dh_installdirs -p$(ppkg) $(pdirs)
|
dh_installdirs -p$(ppkg) $(pdirs)
|
||||||
dh_install -p$(ppkg) debian/patches/* $(pbase)/debian
|
dh_install -p$(ppkg) debian/patches/* $(pbase)/debian
|
||||||
# Compatibility symlink
|
|
||||||
dh_link -p$(ppkg) /usr/src/linux-patches /usr/src/kernel-patches
|
|
||||||
sed 's/@version@/$(release)/g' debian/bin/apply > $(pfull)/apply/debian
|
sed 's/@version@/$(release)/g' debian/bin/apply > $(pfull)/apply/debian
|
||||||
sed 's/@upstream@/$(version)/g' debian/bin/unpatch > $(pfull)/unpatch/debian
|
sed 's/@upstream@/$(version)/g' debian/bin/unpatch > $(pfull)/unpatch/debian
|
||||||
chmod a+x $(pfull)/apply/debian $(pfull)/unpatch/debian
|
chmod a+x $(pfull)/apply/debian $(pfull)/unpatch/debian
|
||||||
|
|
Loading…
Reference in New Issue