Support build-arch and build-indep make targets

* debian/rules, debian/rules.real:
  Support build-indep, rename build to build-arch.
* debian/bin/gencontrol.py, debian/lib/python/debian_linux/gencontrol.py:
  Add build-arch and build-indep.
* debian/changelog: Update.

svn path=/dists/sid/linux/; revision=19148
This commit is contained in:
Bastian Blank 2012-06-14 14:39:30 +00:00
parent d1bd5f4a19
commit 5a0ab9759f
5 changed files with 22 additions and 9 deletions

View File

@ -342,10 +342,10 @@ class Gencontrol(Base):
cmds_binary_arch = ["$(MAKE) -f debian/rules.real binary-arch-flavour %s" % makeflags]
if packages_dummy:
cmds_binary_arch.append("$(MAKE) -f debian/rules.real install-dummy DH_OPTIONS='%s' %s" % (' '.join(["-p%s" % i['Package'] for i in packages_dummy]), makeflags))
cmds_build = ["$(MAKE) -f debian/rules.real build %s" % makeflags]
cmds_build = ["$(MAKE) -f debian/rules.real build-arch %s" % makeflags]
cmds_setup = ["$(MAKE) -f debian/rules.real setup-flavour %s" % makeflags]
makefile.add('binary-arch_%s_%s_%s_real' % (arch, featureset, flavour), cmds=cmds_binary_arch)
makefile.add('build_%s_%s_%s_real' % (arch, featureset, flavour), cmds=cmds_build)
makefile.add('build-arch_%s_%s_%s_real' % (arch, featureset, flavour), cmds=cmds_build)
makefile.add('setup_%s_%s_%s_real' % (arch, featureset, flavour), cmds=cmds_setup)
def merge_packages(self, packages, new, arch):

3
debian/changelog vendored
View File

@ -10,6 +10,9 @@ linux (3.2.20-2) UNRELEASED; urgency=low
* [mips,mipsel] udeb: Remove rivafb and nvidiafb.
* [ppc64]: add udebs, based on powerpc/powerpc64.
[ Bastian Blank ]
* Support build-arch and build-indep make targets.
-- Ben Hutchings <ben@decadent.org.uk> Tue, 12 Jun 2012 06:21:34 +0100
linux (3.2.20-1) unstable; urgency=low

View File

@ -77,7 +77,7 @@ class MakeFlags(dict):
class Gencontrol(object):
makefile_targets = ('binary-arch', 'build', 'setup')
makefile_targets = ('binary-arch', 'build-arch', 'setup')
def __init__(self, config, templates, version=Version):
self.config, self.templates = config, templates
@ -114,6 +114,7 @@ class Gencontrol(object):
pass
def do_main_makefile(self, makefile, makeflags, extra):
makefile.add('build-indep', cmds=["$(MAKE) -f debian/rules.real build-indep %s" % makeflags])
makefile.add('binary-indep', cmds=["$(MAKE) -f debian/rules.real binary-indep %s" % makeflags])
def do_main_packages(self, packages, vars, makeflags, extra):

18
debian/rules vendored
View File

@ -32,10 +32,18 @@ $(STAMPS_DIR)/setup-base: $(STAMPS_DIR)/source-base
$(MAKE) -f debian/rules.gen setup_$(DEB_HOST_ARCH)
@$(stamp)
build: debian/control $(STAMPS_DIR)/build-base
$(STAMPS_DIR)/build-base: $(STAMPS_DIR)/setup-base
build: build-arch build-indep
build-arch: debian/control $(STAMPS_DIR)/build-arch-base
$(STAMPS_DIR)/build-arch-base: $(STAMPS_DIR)/setup-base
dh_testdir
$(MAKE) -f debian/rules.gen build_$(DEB_HOST_ARCH)
$(MAKE) -f debian/rules.gen build-arch_$(DEB_HOST_ARCH)
@$(stamp)
build-indep: debian/control $(STAMPS_DIR)/build-indep-base
$(STAMPS_DIR)/build-indep-base: $(STAMPS_DIR)/setup-base
dh_testdir
$(MAKE) -f debian/rules.gen build-indep
@$(stamp)
DIR_ORIG = ../orig/$(SOURCE)-$(VERSION_UPSTREAM)
@ -63,11 +71,11 @@ clean: debian/control
rm -rf $(BUILD_DIR) $(STAMPS_DIR) debian/lib/python/debian_linux/*.pyc debian/linux-headers-* debian/linux-image-* debian/linux-support-* debian/linux-source-* debian/linux-doc-* debian/linux-manual-* debian/xen-linux-system-* debian/*-modules-*-di*
dh_clean
binary-indep: $(STAMPS_DIR)/source-base
binary-indep: $(STAMPS_DIR)/build-indep-base
dh_testdir
$(MAKE) -f debian/rules.gen binary-indep
binary-arch: $(STAMPS_DIR)/build-base
binary-arch: $(STAMPS_DIR)/build-arch-base
dh_testdir
$(MAKE) -f debian/rules.gen binary-arch_$(DEB_HOST_ARCH)

3
debian/rules.real vendored
View File

@ -51,7 +51,8 @@ binary-indep: install-manual
binary-indep: install-source
binary-indep: install-support
build: $(STAMPS_DIR)/build_$(ARCH)_$(FEATURESET)_$(FLAVOUR)_$(TYPE)
build-arch: $(STAMPS_DIR)/build_$(ARCH)_$(FEATURESET)_$(FLAVOUR)_$(TYPE)
build-indep: $(STAMPS_DIR)/build-doc
setup-flavour: $(STAMPS_DIR)/setup_$(ARCH)_$(FEATURESET)_$(FLAVOUR)