linux/debian/rules.real

302 lines
11 KiB
Plaintext
Raw Normal View History

* Use generated rules, effectively remove second flavour resolver. * Implement generic support for cross compilation. * Install generated files in the correct headers packages. r3745: waldi | 2005-08-08 15:40:20 +0000 * debian/bin/gencontrol.py - Rename some variables. - Write debian/rules.gen. * debian/rules: Use debian/rules.gen. r3746: waldi | 2005-08-08 15:51:26 +0000 debian/bin/gencontrol.py: Simplify rules. r3747: waldi | 2005-08-08 16:22:29 +0000 Use generated rules for unpack, effectively remove second flavour resolver. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate unpack rules. * debian/rules: Use new rules. r3748: waldi | 2005-08-08 17:03:32 +0000 Use generated rules for build. * debian/Makefile - Updates. - Generate bin/touch.orig. * debian/bin/gencontrol.py: Generate build rules. * debian/rules: Remove bin/touch.orig creation. r3752: waldi | 2005-08-08 18:13:27 +0000 Use generated rules for binary target. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate binary rules. r3753: waldi | 2005-08-08 19:00:05 +0000 * debian/Makefile - Overwrite env. - Split binary target. * debian/bin/gencontrol.py: Update. * debian/rules: Call correct targets. r3756: waldi | 2005-08-08 20:07:31 +0000 * debian/Makefile - Split unpack target. - Don't generate stamp files for install targets. - Update dir names. * debian/bin/gencontrol.py: Split unpack target. * debian/rules: Remove new stamp files. r3793: waldi | 2005-08-09 19:57:44 +0000 * debian/Makefile - Fix directories. - Build anything in one subdir. * debian/bin/gencontrol.py: Call debian/Makefile from package root. * debian/rules: Updates. r3794: waldi | 2005-08-09 21:43:07 +0000 debian/bin/gencontrol.py: Updates. r3795: waldi | 2005-08-09 22:26:53 +0000 * debian/Makefile - Include debian/rules.defs. - Simplify kpkg command specs. * debian/rules - Move directory definitions to debian/rules.defs. - Include debian/rules.defs. * debian/rules.defs: Add. r3796: waldi | 2005-08-09 22:30:23 +0000 * debian/bin/gencontrol.py: Use debian/rules.real. * debian/rules.real: Move from debian/Makefile. r3797: waldi | 2005-08-09 22:39:24 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Rename unpack to setup. r3798: waldi | 2005-08-09 22:52:43 +0000 debian/bin/gencontrol.py, debian/rules.real: Use DH_OPTIONS. r3799: waldi | 2005-08-09 22:53:37 +0000 debian/rules: Use host, not build architecture. r3815: waldi | 2005-08-10 11:53:38 +0000 debian/rules.real: Update targets. r3816: waldi | 2005-08-10 12:06:13 +0000 debian/rules.real: Move patch rules from debian/rules. r3817: waldi | 2005-08-10 12:22:26 +0000 debian/bin/gencontrol.py, debian/rules.real: Small fixes. r3818: waldi | 2005-08-10 12:29:17 +0000 debian/rules.real: Add seperate setup step for headers package. r3819: waldi | 2005-08-10 12:36:57 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Add binary-indep. r3820: waldi | 2005-08-10 12:40:10 +0000 debian/bin/gencontrol.py: Fix typo. r3821: waldi | 2005-08-10 12:56:58 +0000 * debian/bin/gencontrol.py: Use binary-indep. * debian/rules.real: Move source package rules from debian/rules. r3822: waldi | 2005-08-10 13:11:24 +0000 * debian/bin/gencontrol.py: Use install-dummy. * debian/rules.real: Move tree package rules from debian/rules. r3823: waldi | 2005-08-10 13:41:30 +0000 * debian/bin/gencontrol.py: Fix typos. * debian/rules.real - Move doc package rules from debian/rules. - Fix some installation rules. r3824: waldi | 2005-08-10 13:55:41 +0000 debian/rules.real: Move patch package rules from debian/rules. r3825: waldi | 2005-08-10 14:17:33 +0000 debian/rules: Cleanup. r3826: waldi | 2005-08-10 14:37:03 +0000 debian/rules.real: Fix typos. r3827: waldi | 2005-08-10 14:57:07 +0000 debian: Update svn:ignore property. r3828: waldi | 2005-08-10 15:07:29 +0000 debian/rules.real - Move some install rules. - Support cross compilation. r3829: waldi | 2005-08-10 15:39:14 +0000 debian/rules.real: Realy rename the rules. r3830: waldi | 2005-08-10 17:35:54 +0000 debian/rules.real - Move one rule. - Fix permissions of source tar ball. Closes: 322409 r3832: waldi | 2005-08-10 18:57:51 +0000 debian/templates/control.headers.main.in: Fix command to install headers. r3833: waldi | 2005-08-10 20:30:48 +0000 * debian/bin/gencontrol.py: Remove dash from ABINAME. * debian/rules.real - Use abiname without dash. - Install patches with correct permissions. r3847: waldi | 2005-08-13 09:11:40 +0000 debian/templates/post-install.in: Install any executable file and files which matches *.sh and *.pl in the scripts directory. Closes: 322612 r3848: waldi | 2005-08-13 09:32:54 +0000 * arch/powerpc/defines: Add pseries definitions. * arch/powerpc/config.pseries: Move from arch/powerpc/noconfig.pseries. * bin/gencontrol.py - Export KPKG_SUBARCH. - Updates. * rules.real: Use KPKG_SUBARCH. r3853: waldi | 2005-08-14 10:01:06 +0000 debian/rules.real - Fix cross compile options for make-kpkg. - Fix architecture patches. - Remove asm-offsets.s workaround, pending real fix. r3854: waldi | 2005-08-14 12:07:36 +0000 debian/rules.real: Export version informations. r3855: waldi | 2005-08-14 12:39:57 +0000 debian/templates/post-install.in: Always install generated files. r3858: waldi | 2005-08-14 14:51:28 +0000 debian/rules.real: Integrate headers install fix. r3859: waldi | 2005-08-14 15:29:21 +0000 * debian/arch/powerpc/config.powerpc64 - Fix wrong formated entries. - Enable vscsi client. * debian/arch/powerpc/defines: Fix flavour name. * debian/README.PPC64: Remove. svn path=/trunk/kernel/source/linux-2.6/; revision=3860
2005-08-14 19:59:43 +00:00
#
# This Makefile executes the unpack/build/binary targets for a single
# subarch, which is passed in the subarch variable. Empty subarch
# variable means that we are building for an arch without the subarch.
# Additionally, variables version, abiname and ltver are
# expected to be available (need to be exported from the parent process).
# It is possible to override the flavours by setting the flavours
# variable. It will also be passed a list of source files
#
SHELL := sh -e
DEB_HOST_ARCH := $(shell dpkg-architecture -a$(ARCH) -qDEB_HOST_ARCH)
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -a$(ARCH) -qDEB_HOST_GNU_TYPE)
DEB_BUILD_ARCH := $(shell dpkg-architecture -a$(ARCH) -qDEB_BUILD_ARCH)
#
# Build the list of common config files to be included
#
ifeq ($(SUBARCH),none)
basedir := debian/arch/$(ARCH)
append :=
else
basedir := debian/arch/$(ARCH)/$(SUBARCH)
append := $(SUBARCH)-
endif
configs := $(notdir $(wildcard $(basedir)/config.*))
configs := $(filter-out config, $(configs))
ifndef flavours
flavours := $(patsubst config.%,%,$(configs))
endif
-include $(basedir)/Makefile.inc
include debian/rules.defs
#
# Here we construct the command lines for different make-kpkg
# calls (build, linux-image, linux-headers) based on the values
# of variables defined so far and provided by the arch/subarch
# in Makefile.inc. @flavour@ in the expressions is going to be
# replaced by the flavour for which the command is run.
#
kpkg_header := HEADER_CLEAN_HOOK='$(CURDIR)/$(BUILD_DIR)/header-install-$(ARCH)-$(SUBARCH)'
kpkg_header += make-kpkg --append-to-version "$(append)$(KPKG_ABINAME)"
* Use generated rules, effectively remove second flavour resolver. * Implement generic support for cross compilation. * Install generated files in the correct headers packages. r3745: waldi | 2005-08-08 15:40:20 +0000 * debian/bin/gencontrol.py - Rename some variables. - Write debian/rules.gen. * debian/rules: Use debian/rules.gen. r3746: waldi | 2005-08-08 15:51:26 +0000 debian/bin/gencontrol.py: Simplify rules. r3747: waldi | 2005-08-08 16:22:29 +0000 Use generated rules for unpack, effectively remove second flavour resolver. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate unpack rules. * debian/rules: Use new rules. r3748: waldi | 2005-08-08 17:03:32 +0000 Use generated rules for build. * debian/Makefile - Updates. - Generate bin/touch.orig. * debian/bin/gencontrol.py: Generate build rules. * debian/rules: Remove bin/touch.orig creation. r3752: waldi | 2005-08-08 18:13:27 +0000 Use generated rules for binary target. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate binary rules. r3753: waldi | 2005-08-08 19:00:05 +0000 * debian/Makefile - Overwrite env. - Split binary target. * debian/bin/gencontrol.py: Update. * debian/rules: Call correct targets. r3756: waldi | 2005-08-08 20:07:31 +0000 * debian/Makefile - Split unpack target. - Don't generate stamp files for install targets. - Update dir names. * debian/bin/gencontrol.py: Split unpack target. * debian/rules: Remove new stamp files. r3793: waldi | 2005-08-09 19:57:44 +0000 * debian/Makefile - Fix directories. - Build anything in one subdir. * debian/bin/gencontrol.py: Call debian/Makefile from package root. * debian/rules: Updates. r3794: waldi | 2005-08-09 21:43:07 +0000 debian/bin/gencontrol.py: Updates. r3795: waldi | 2005-08-09 22:26:53 +0000 * debian/Makefile - Include debian/rules.defs. - Simplify kpkg command specs. * debian/rules - Move directory definitions to debian/rules.defs. - Include debian/rules.defs. * debian/rules.defs: Add. r3796: waldi | 2005-08-09 22:30:23 +0000 * debian/bin/gencontrol.py: Use debian/rules.real. * debian/rules.real: Move from debian/Makefile. r3797: waldi | 2005-08-09 22:39:24 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Rename unpack to setup. r3798: waldi | 2005-08-09 22:52:43 +0000 debian/bin/gencontrol.py, debian/rules.real: Use DH_OPTIONS. r3799: waldi | 2005-08-09 22:53:37 +0000 debian/rules: Use host, not build architecture. r3815: waldi | 2005-08-10 11:53:38 +0000 debian/rules.real: Update targets. r3816: waldi | 2005-08-10 12:06:13 +0000 debian/rules.real: Move patch rules from debian/rules. r3817: waldi | 2005-08-10 12:22:26 +0000 debian/bin/gencontrol.py, debian/rules.real: Small fixes. r3818: waldi | 2005-08-10 12:29:17 +0000 debian/rules.real: Add seperate setup step for headers package. r3819: waldi | 2005-08-10 12:36:57 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Add binary-indep. r3820: waldi | 2005-08-10 12:40:10 +0000 debian/bin/gencontrol.py: Fix typo. r3821: waldi | 2005-08-10 12:56:58 +0000 * debian/bin/gencontrol.py: Use binary-indep. * debian/rules.real: Move source package rules from debian/rules. r3822: waldi | 2005-08-10 13:11:24 +0000 * debian/bin/gencontrol.py: Use install-dummy. * debian/rules.real: Move tree package rules from debian/rules. r3823: waldi | 2005-08-10 13:41:30 +0000 * debian/bin/gencontrol.py: Fix typos. * debian/rules.real - Move doc package rules from debian/rules. - Fix some installation rules. r3824: waldi | 2005-08-10 13:55:41 +0000 debian/rules.real: Move patch package rules from debian/rules. r3825: waldi | 2005-08-10 14:17:33 +0000 debian/rules: Cleanup. r3826: waldi | 2005-08-10 14:37:03 +0000 debian/rules.real: Fix typos. r3827: waldi | 2005-08-10 14:57:07 +0000 debian: Update svn:ignore property. r3828: waldi | 2005-08-10 15:07:29 +0000 debian/rules.real - Move some install rules. - Support cross compilation. r3829: waldi | 2005-08-10 15:39:14 +0000 debian/rules.real: Realy rename the rules. r3830: waldi | 2005-08-10 17:35:54 +0000 debian/rules.real - Move one rule. - Fix permissions of source tar ball. Closes: 322409 r3832: waldi | 2005-08-10 18:57:51 +0000 debian/templates/control.headers.main.in: Fix command to install headers. r3833: waldi | 2005-08-10 20:30:48 +0000 * debian/bin/gencontrol.py: Remove dash from ABINAME. * debian/rules.real - Use abiname without dash. - Install patches with correct permissions. r3847: waldi | 2005-08-13 09:11:40 +0000 debian/templates/post-install.in: Install any executable file and files which matches *.sh and *.pl in the scripts directory. Closes: 322612 r3848: waldi | 2005-08-13 09:32:54 +0000 * arch/powerpc/defines: Add pseries definitions. * arch/powerpc/config.pseries: Move from arch/powerpc/noconfig.pseries. * bin/gencontrol.py - Export KPKG_SUBARCH. - Updates. * rules.real: Use KPKG_SUBARCH. r3853: waldi | 2005-08-14 10:01:06 +0000 debian/rules.real - Fix cross compile options for make-kpkg. - Fix architecture patches. - Remove asm-offsets.s workaround, pending real fix. r3854: waldi | 2005-08-14 12:07:36 +0000 debian/rules.real: Export version informations. r3855: waldi | 2005-08-14 12:39:57 +0000 debian/templates/post-install.in: Always install generated files. r3858: waldi | 2005-08-14 14:51:28 +0000 debian/rules.real: Integrate headers install fix. r3859: waldi | 2005-08-14 15:29:21 +0000 * debian/arch/powerpc/config.powerpc64 - Fix wrong formated entries. - Enable vscsi client. * debian/arch/powerpc/defines: Fix flavour name. * debian/README.PPC64: Remove. svn path=/trunk/kernel/source/linux-2.6/; revision=3860
2005-08-14 19:59:43 +00:00
kpkg_header += --arch $(ARCH)
kpkg_header += --stem linux
kpkg_header += --config defconfig
kpkg_image := make-kpkg --append-to-version "$(KPKG_ABINAME)-$(FLAVOUR)"
* Use generated rules, effectively remove second flavour resolver. * Implement generic support for cross compilation. * Install generated files in the correct headers packages. r3745: waldi | 2005-08-08 15:40:20 +0000 * debian/bin/gencontrol.py - Rename some variables. - Write debian/rules.gen. * debian/rules: Use debian/rules.gen. r3746: waldi | 2005-08-08 15:51:26 +0000 debian/bin/gencontrol.py: Simplify rules. r3747: waldi | 2005-08-08 16:22:29 +0000 Use generated rules for unpack, effectively remove second flavour resolver. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate unpack rules. * debian/rules: Use new rules. r3748: waldi | 2005-08-08 17:03:32 +0000 Use generated rules for build. * debian/Makefile - Updates. - Generate bin/touch.orig. * debian/bin/gencontrol.py: Generate build rules. * debian/rules: Remove bin/touch.orig creation. r3752: waldi | 2005-08-08 18:13:27 +0000 Use generated rules for binary target. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate binary rules. r3753: waldi | 2005-08-08 19:00:05 +0000 * debian/Makefile - Overwrite env. - Split binary target. * debian/bin/gencontrol.py: Update. * debian/rules: Call correct targets. r3756: waldi | 2005-08-08 20:07:31 +0000 * debian/Makefile - Split unpack target. - Don't generate stamp files for install targets. - Update dir names. * debian/bin/gencontrol.py: Split unpack target. * debian/rules: Remove new stamp files. r3793: waldi | 2005-08-09 19:57:44 +0000 * debian/Makefile - Fix directories. - Build anything in one subdir. * debian/bin/gencontrol.py: Call debian/Makefile from package root. * debian/rules: Updates. r3794: waldi | 2005-08-09 21:43:07 +0000 debian/bin/gencontrol.py: Updates. r3795: waldi | 2005-08-09 22:26:53 +0000 * debian/Makefile - Include debian/rules.defs. - Simplify kpkg command specs. * debian/rules - Move directory definitions to debian/rules.defs. - Include debian/rules.defs. * debian/rules.defs: Add. r3796: waldi | 2005-08-09 22:30:23 +0000 * debian/bin/gencontrol.py: Use debian/rules.real. * debian/rules.real: Move from debian/Makefile. r3797: waldi | 2005-08-09 22:39:24 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Rename unpack to setup. r3798: waldi | 2005-08-09 22:52:43 +0000 debian/bin/gencontrol.py, debian/rules.real: Use DH_OPTIONS. r3799: waldi | 2005-08-09 22:53:37 +0000 debian/rules: Use host, not build architecture. r3815: waldi | 2005-08-10 11:53:38 +0000 debian/rules.real: Update targets. r3816: waldi | 2005-08-10 12:06:13 +0000 debian/rules.real: Move patch rules from debian/rules. r3817: waldi | 2005-08-10 12:22:26 +0000 debian/bin/gencontrol.py, debian/rules.real: Small fixes. r3818: waldi | 2005-08-10 12:29:17 +0000 debian/rules.real: Add seperate setup step for headers package. r3819: waldi | 2005-08-10 12:36:57 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Add binary-indep. r3820: waldi | 2005-08-10 12:40:10 +0000 debian/bin/gencontrol.py: Fix typo. r3821: waldi | 2005-08-10 12:56:58 +0000 * debian/bin/gencontrol.py: Use binary-indep. * debian/rules.real: Move source package rules from debian/rules. r3822: waldi | 2005-08-10 13:11:24 +0000 * debian/bin/gencontrol.py: Use install-dummy. * debian/rules.real: Move tree package rules from debian/rules. r3823: waldi | 2005-08-10 13:41:30 +0000 * debian/bin/gencontrol.py: Fix typos. * debian/rules.real - Move doc package rules from debian/rules. - Fix some installation rules. r3824: waldi | 2005-08-10 13:55:41 +0000 debian/rules.real: Move patch package rules from debian/rules. r3825: waldi | 2005-08-10 14:17:33 +0000 debian/rules: Cleanup. r3826: waldi | 2005-08-10 14:37:03 +0000 debian/rules.real: Fix typos. r3827: waldi | 2005-08-10 14:57:07 +0000 debian: Update svn:ignore property. r3828: waldi | 2005-08-10 15:07:29 +0000 debian/rules.real - Move some install rules. - Support cross compilation. r3829: waldi | 2005-08-10 15:39:14 +0000 debian/rules.real: Realy rename the rules. r3830: waldi | 2005-08-10 17:35:54 +0000 debian/rules.real - Move one rule. - Fix permissions of source tar ball. Closes: 322409 r3832: waldi | 2005-08-10 18:57:51 +0000 debian/templates/control.headers.main.in: Fix command to install headers. r3833: waldi | 2005-08-10 20:30:48 +0000 * debian/bin/gencontrol.py: Remove dash from ABINAME. * debian/rules.real - Use abiname without dash. - Install patches with correct permissions. r3847: waldi | 2005-08-13 09:11:40 +0000 debian/templates/post-install.in: Install any executable file and files which matches *.sh and *.pl in the scripts directory. Closes: 322612 r3848: waldi | 2005-08-13 09:32:54 +0000 * arch/powerpc/defines: Add pseries definitions. * arch/powerpc/config.pseries: Move from arch/powerpc/noconfig.pseries. * bin/gencontrol.py - Export KPKG_SUBARCH. - Updates. * rules.real: Use KPKG_SUBARCH. r3853: waldi | 2005-08-14 10:01:06 +0000 debian/rules.real - Fix cross compile options for make-kpkg. - Fix architecture patches. - Remove asm-offsets.s workaround, pending real fix. r3854: waldi | 2005-08-14 12:07:36 +0000 debian/rules.real: Export version informations. r3855: waldi | 2005-08-14 12:39:57 +0000 debian/templates/post-install.in: Always install generated files. r3858: waldi | 2005-08-14 14:51:28 +0000 debian/rules.real: Integrate headers install fix. r3859: waldi | 2005-08-14 15:29:21 +0000 * debian/arch/powerpc/config.powerpc64 - Fix wrong formated entries. - Enable vscsi client. * debian/arch/powerpc/defines: Fix flavour name. * debian/README.PPC64: Remove. svn path=/trunk/kernel/source/linux-2.6/; revision=3860
2005-08-14 19:59:43 +00:00
kpkg_image += --arch $(ARCH)
kpkg_image += --stem linux
kpkg_image += --initrd
ifdef KPKG_SUBARCH
kpkg_image += --subarch $(KPKG_SUBARCH)
* Add more strict dependency between the headers packages. * Use own config to define arches, subarches and flavours. * Aggregate ATM options. * Add kernel config for s390 tape image. * Fix subarch setting for sparc. r3970: waldi | 2005-08-18 17:58:13 +0000 debian/templates/control.headers.in: Add more strict dependency. r3971: waldi | 2005-08-18 18:02:08 +0000 Use own config to define arches, subarches and flavours. * debian/arch/defines: Include architecture definitions. * debian/arch/alpha/defines, debian/arch/amd64/defines, debian/arch/arm/defines, debian/arch/hppa/defines, debian/arch/i386/defines, debian/arch/ia64/defines, debian/arch/m68k/defines, debian/arch/powerpc/defines, debian/arch/s390/defines, debian/arch/sparc/defines: Include flavour definitions. * debian/bin/gencontrol.py - Read all configs at once. - Use config definitions for arch, subarch and flavour detection. r3972: waldi | 2005-08-18 18:50:08 +0000 debian/arch/alpha/config, debian/arch/amd64/config, debian/arch/config, debian/arch/i386/config, debian/arch/powerpc/config: Aggregate ATM options. r3973: waldi | 2005-08-18 18:52:30 +0000 Add kernel config for s390 tape image. * debian/arch/s390/config: Remove IPL options. * debian/arch/s390/config.s390 debian/arch/s390/config.s390x: Add IPL options. * debian/arch/s390/config.s390-tape: Add. r3974: waldi | 2005-08-18 18:55:49 +0000 debian/bin/gencontrol.py: Don't output not available arches. r3975: waldi | 2005-08-18 18:57:32 +0000 debian/arch/sparc/defines: Set kpkg-subarch to sparc64. r3976: waldi | 2005-08-18 19:06:23 +0000 * debian/arch/powerpc/Makefile.inc, debian/arch/sparc/Makefile.inc: Remove old subarch settings. * debian/bin/gencontrol.py: Support per subarch kpkg-subarch. * debian/rules.real: Use subarch for header builds. svn path=/trunk/kernel/source/linux-2.6/; revision=3981
2005-08-19 10:31:32 +00:00
kpkg_header += --subarch $(KPKG_SUBARCH)
* Use generated rules, effectively remove second flavour resolver. * Implement generic support for cross compilation. * Install generated files in the correct headers packages. r3745: waldi | 2005-08-08 15:40:20 +0000 * debian/bin/gencontrol.py - Rename some variables. - Write debian/rules.gen. * debian/rules: Use debian/rules.gen. r3746: waldi | 2005-08-08 15:51:26 +0000 debian/bin/gencontrol.py: Simplify rules. r3747: waldi | 2005-08-08 16:22:29 +0000 Use generated rules for unpack, effectively remove second flavour resolver. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate unpack rules. * debian/rules: Use new rules. r3748: waldi | 2005-08-08 17:03:32 +0000 Use generated rules for build. * debian/Makefile - Updates. - Generate bin/touch.orig. * debian/bin/gencontrol.py: Generate build rules. * debian/rules: Remove bin/touch.orig creation. r3752: waldi | 2005-08-08 18:13:27 +0000 Use generated rules for binary target. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate binary rules. r3753: waldi | 2005-08-08 19:00:05 +0000 * debian/Makefile - Overwrite env. - Split binary target. * debian/bin/gencontrol.py: Update. * debian/rules: Call correct targets. r3756: waldi | 2005-08-08 20:07:31 +0000 * debian/Makefile - Split unpack target. - Don't generate stamp files for install targets. - Update dir names. * debian/bin/gencontrol.py: Split unpack target. * debian/rules: Remove new stamp files. r3793: waldi | 2005-08-09 19:57:44 +0000 * debian/Makefile - Fix directories. - Build anything in one subdir. * debian/bin/gencontrol.py: Call debian/Makefile from package root. * debian/rules: Updates. r3794: waldi | 2005-08-09 21:43:07 +0000 debian/bin/gencontrol.py: Updates. r3795: waldi | 2005-08-09 22:26:53 +0000 * debian/Makefile - Include debian/rules.defs. - Simplify kpkg command specs. * debian/rules - Move directory definitions to debian/rules.defs. - Include debian/rules.defs. * debian/rules.defs: Add. r3796: waldi | 2005-08-09 22:30:23 +0000 * debian/bin/gencontrol.py: Use debian/rules.real. * debian/rules.real: Move from debian/Makefile. r3797: waldi | 2005-08-09 22:39:24 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Rename unpack to setup. r3798: waldi | 2005-08-09 22:52:43 +0000 debian/bin/gencontrol.py, debian/rules.real: Use DH_OPTIONS. r3799: waldi | 2005-08-09 22:53:37 +0000 debian/rules: Use host, not build architecture. r3815: waldi | 2005-08-10 11:53:38 +0000 debian/rules.real: Update targets. r3816: waldi | 2005-08-10 12:06:13 +0000 debian/rules.real: Move patch rules from debian/rules. r3817: waldi | 2005-08-10 12:22:26 +0000 debian/bin/gencontrol.py, debian/rules.real: Small fixes. r3818: waldi | 2005-08-10 12:29:17 +0000 debian/rules.real: Add seperate setup step for headers package. r3819: waldi | 2005-08-10 12:36:57 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Add binary-indep. r3820: waldi | 2005-08-10 12:40:10 +0000 debian/bin/gencontrol.py: Fix typo. r3821: waldi | 2005-08-10 12:56:58 +0000 * debian/bin/gencontrol.py: Use binary-indep. * debian/rules.real: Move source package rules from debian/rules. r3822: waldi | 2005-08-10 13:11:24 +0000 * debian/bin/gencontrol.py: Use install-dummy. * debian/rules.real: Move tree package rules from debian/rules. r3823: waldi | 2005-08-10 13:41:30 +0000 * debian/bin/gencontrol.py: Fix typos. * debian/rules.real - Move doc package rules from debian/rules. - Fix some installation rules. r3824: waldi | 2005-08-10 13:55:41 +0000 debian/rules.real: Move patch package rules from debian/rules. r3825: waldi | 2005-08-10 14:17:33 +0000 debian/rules: Cleanup. r3826: waldi | 2005-08-10 14:37:03 +0000 debian/rules.real: Fix typos. r3827: waldi | 2005-08-10 14:57:07 +0000 debian: Update svn:ignore property. r3828: waldi | 2005-08-10 15:07:29 +0000 debian/rules.real - Move some install rules. - Support cross compilation. r3829: waldi | 2005-08-10 15:39:14 +0000 debian/rules.real: Realy rename the rules. r3830: waldi | 2005-08-10 17:35:54 +0000 debian/rules.real - Move one rule. - Fix permissions of source tar ball. Closes: 322409 r3832: waldi | 2005-08-10 18:57:51 +0000 debian/templates/control.headers.main.in: Fix command to install headers. r3833: waldi | 2005-08-10 20:30:48 +0000 * debian/bin/gencontrol.py: Remove dash from ABINAME. * debian/rules.real - Use abiname without dash. - Install patches with correct permissions. r3847: waldi | 2005-08-13 09:11:40 +0000 debian/templates/post-install.in: Install any executable file and files which matches *.sh and *.pl in the scripts directory. Closes: 322612 r3848: waldi | 2005-08-13 09:32:54 +0000 * arch/powerpc/defines: Add pseries definitions. * arch/powerpc/config.pseries: Move from arch/powerpc/noconfig.pseries. * bin/gencontrol.py - Export KPKG_SUBARCH. - Updates. * rules.real: Use KPKG_SUBARCH. r3853: waldi | 2005-08-14 10:01:06 +0000 debian/rules.real - Fix cross compile options for make-kpkg. - Fix architecture patches. - Remove asm-offsets.s workaround, pending real fix. r3854: waldi | 2005-08-14 12:07:36 +0000 debian/rules.real: Export version informations. r3855: waldi | 2005-08-14 12:39:57 +0000 debian/templates/post-install.in: Always install generated files. r3858: waldi | 2005-08-14 14:51:28 +0000 debian/rules.real: Integrate headers install fix. r3859: waldi | 2005-08-14 15:29:21 +0000 * debian/arch/powerpc/config.powerpc64 - Fix wrong formated entries. - Enable vscsi client. * debian/arch/powerpc/defines: Fix flavour name. * debian/README.PPC64: Remove. svn path=/trunk/kernel/source/linux-2.6/; revision=3860
2005-08-14 19:59:43 +00:00
endif
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
kpkg_image += --cross-compile=$(DEB_HOST_GNU_TYPE)
endif
setup_env := env -u ABINAME -u ARCH -u SUBARCH -u FLAVOUR -u VERSION
* Use generated rules, effectively remove second flavour resolver. * Implement generic support for cross compilation. * Install generated files in the correct headers packages. r3745: waldi | 2005-08-08 15:40:20 +0000 * debian/bin/gencontrol.py - Rename some variables. - Write debian/rules.gen. * debian/rules: Use debian/rules.gen. r3746: waldi | 2005-08-08 15:51:26 +0000 debian/bin/gencontrol.py: Simplify rules. r3747: waldi | 2005-08-08 16:22:29 +0000 Use generated rules for unpack, effectively remove second flavour resolver. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate unpack rules. * debian/rules: Use new rules. r3748: waldi | 2005-08-08 17:03:32 +0000 Use generated rules for build. * debian/Makefile - Updates. - Generate bin/touch.orig. * debian/bin/gencontrol.py: Generate build rules. * debian/rules: Remove bin/touch.orig creation. r3752: waldi | 2005-08-08 18:13:27 +0000 Use generated rules for binary target. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate binary rules. r3753: waldi | 2005-08-08 19:00:05 +0000 * debian/Makefile - Overwrite env. - Split binary target. * debian/bin/gencontrol.py: Update. * debian/rules: Call correct targets. r3756: waldi | 2005-08-08 20:07:31 +0000 * debian/Makefile - Split unpack target. - Don't generate stamp files for install targets. - Update dir names. * debian/bin/gencontrol.py: Split unpack target. * debian/rules: Remove new stamp files. r3793: waldi | 2005-08-09 19:57:44 +0000 * debian/Makefile - Fix directories. - Build anything in one subdir. * debian/bin/gencontrol.py: Call debian/Makefile from package root. * debian/rules: Updates. r3794: waldi | 2005-08-09 21:43:07 +0000 debian/bin/gencontrol.py: Updates. r3795: waldi | 2005-08-09 22:26:53 +0000 * debian/Makefile - Include debian/rules.defs. - Simplify kpkg command specs. * debian/rules - Move directory definitions to debian/rules.defs. - Include debian/rules.defs. * debian/rules.defs: Add. r3796: waldi | 2005-08-09 22:30:23 +0000 * debian/bin/gencontrol.py: Use debian/rules.real. * debian/rules.real: Move from debian/Makefile. r3797: waldi | 2005-08-09 22:39:24 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Rename unpack to setup. r3798: waldi | 2005-08-09 22:52:43 +0000 debian/bin/gencontrol.py, debian/rules.real: Use DH_OPTIONS. r3799: waldi | 2005-08-09 22:53:37 +0000 debian/rules: Use host, not build architecture. r3815: waldi | 2005-08-10 11:53:38 +0000 debian/rules.real: Update targets. r3816: waldi | 2005-08-10 12:06:13 +0000 debian/rules.real: Move patch rules from debian/rules. r3817: waldi | 2005-08-10 12:22:26 +0000 debian/bin/gencontrol.py, debian/rules.real: Small fixes. r3818: waldi | 2005-08-10 12:29:17 +0000 debian/rules.real: Add seperate setup step for headers package. r3819: waldi | 2005-08-10 12:36:57 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Add binary-indep. r3820: waldi | 2005-08-10 12:40:10 +0000 debian/bin/gencontrol.py: Fix typo. r3821: waldi | 2005-08-10 12:56:58 +0000 * debian/bin/gencontrol.py: Use binary-indep. * debian/rules.real: Move source package rules from debian/rules. r3822: waldi | 2005-08-10 13:11:24 +0000 * debian/bin/gencontrol.py: Use install-dummy. * debian/rules.real: Move tree package rules from debian/rules. r3823: waldi | 2005-08-10 13:41:30 +0000 * debian/bin/gencontrol.py: Fix typos. * debian/rules.real - Move doc package rules from debian/rules. - Fix some installation rules. r3824: waldi | 2005-08-10 13:55:41 +0000 debian/rules.real: Move patch package rules from debian/rules. r3825: waldi | 2005-08-10 14:17:33 +0000 debian/rules: Cleanup. r3826: waldi | 2005-08-10 14:37:03 +0000 debian/rules.real: Fix typos. r3827: waldi | 2005-08-10 14:57:07 +0000 debian: Update svn:ignore property. r3828: waldi | 2005-08-10 15:07:29 +0000 debian/rules.real - Move some install rules. - Support cross compilation. r3829: waldi | 2005-08-10 15:39:14 +0000 debian/rules.real: Realy rename the rules. r3830: waldi | 2005-08-10 17:35:54 +0000 debian/rules.real - Move one rule. - Fix permissions of source tar ball. Closes: 322409 r3832: waldi | 2005-08-10 18:57:51 +0000 debian/templates/control.headers.main.in: Fix command to install headers. r3833: waldi | 2005-08-10 20:30:48 +0000 * debian/bin/gencontrol.py: Remove dash from ABINAME. * debian/rules.real - Use abiname without dash. - Install patches with correct permissions. r3847: waldi | 2005-08-13 09:11:40 +0000 debian/templates/post-install.in: Install any executable file and files which matches *.sh and *.pl in the scripts directory. Closes: 322612 r3848: waldi | 2005-08-13 09:32:54 +0000 * arch/powerpc/defines: Add pseries definitions. * arch/powerpc/config.pseries: Move from arch/powerpc/noconfig.pseries. * bin/gencontrol.py - Export KPKG_SUBARCH. - Updates. * rules.real: Use KPKG_SUBARCH. r3853: waldi | 2005-08-14 10:01:06 +0000 debian/rules.real - Fix cross compile options for make-kpkg. - Fix architecture patches. - Remove asm-offsets.s workaround, pending real fix. r3854: waldi | 2005-08-14 12:07:36 +0000 debian/rules.real: Export version informations. r3855: waldi | 2005-08-14 12:39:57 +0000 debian/templates/post-install.in: Always install generated files. r3858: waldi | 2005-08-14 14:51:28 +0000 debian/rules.real: Integrate headers install fix. r3859: waldi | 2005-08-14 15:29:21 +0000 * debian/arch/powerpc/config.powerpc64 - Fix wrong formated entries. - Enable vscsi client. * debian/arch/powerpc/defines: Fix flavour name. * debian/README.PPC64: Remove. svn path=/trunk/kernel/source/linux-2.6/; revision=3860
2005-08-14 19:59:43 +00:00
setup_env += DEBIAN_ABINAME=$(ABINAME) DEBIAN_FLAVOUR=$(FLAVOUR) DEBIAN_VERSION=$(VERSION)
ifdef build_makeflags
setup_env += MAKEFLAGS=$(build_makeflags)
else
setup_env += MAKEFLAGS=
* Use generated rules, effectively remove second flavour resolver. * Implement generic support for cross compilation. * Install generated files in the correct headers packages. r3745: waldi | 2005-08-08 15:40:20 +0000 * debian/bin/gencontrol.py - Rename some variables. - Write debian/rules.gen. * debian/rules: Use debian/rules.gen. r3746: waldi | 2005-08-08 15:51:26 +0000 debian/bin/gencontrol.py: Simplify rules. r3747: waldi | 2005-08-08 16:22:29 +0000 Use generated rules for unpack, effectively remove second flavour resolver. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate unpack rules. * debian/rules: Use new rules. r3748: waldi | 2005-08-08 17:03:32 +0000 Use generated rules for build. * debian/Makefile - Updates. - Generate bin/touch.orig. * debian/bin/gencontrol.py: Generate build rules. * debian/rules: Remove bin/touch.orig creation. r3752: waldi | 2005-08-08 18:13:27 +0000 Use generated rules for binary target. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate binary rules. r3753: waldi | 2005-08-08 19:00:05 +0000 * debian/Makefile - Overwrite env. - Split binary target. * debian/bin/gencontrol.py: Update. * debian/rules: Call correct targets. r3756: waldi | 2005-08-08 20:07:31 +0000 * debian/Makefile - Split unpack target. - Don't generate stamp files for install targets. - Update dir names. * debian/bin/gencontrol.py: Split unpack target. * debian/rules: Remove new stamp files. r3793: waldi | 2005-08-09 19:57:44 +0000 * debian/Makefile - Fix directories. - Build anything in one subdir. * debian/bin/gencontrol.py: Call debian/Makefile from package root. * debian/rules: Updates. r3794: waldi | 2005-08-09 21:43:07 +0000 debian/bin/gencontrol.py: Updates. r3795: waldi | 2005-08-09 22:26:53 +0000 * debian/Makefile - Include debian/rules.defs. - Simplify kpkg command specs. * debian/rules - Move directory definitions to debian/rules.defs. - Include debian/rules.defs. * debian/rules.defs: Add. r3796: waldi | 2005-08-09 22:30:23 +0000 * debian/bin/gencontrol.py: Use debian/rules.real. * debian/rules.real: Move from debian/Makefile. r3797: waldi | 2005-08-09 22:39:24 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Rename unpack to setup. r3798: waldi | 2005-08-09 22:52:43 +0000 debian/bin/gencontrol.py, debian/rules.real: Use DH_OPTIONS. r3799: waldi | 2005-08-09 22:53:37 +0000 debian/rules: Use host, not build architecture. r3815: waldi | 2005-08-10 11:53:38 +0000 debian/rules.real: Update targets. r3816: waldi | 2005-08-10 12:06:13 +0000 debian/rules.real: Move patch rules from debian/rules. r3817: waldi | 2005-08-10 12:22:26 +0000 debian/bin/gencontrol.py, debian/rules.real: Small fixes. r3818: waldi | 2005-08-10 12:29:17 +0000 debian/rules.real: Add seperate setup step for headers package. r3819: waldi | 2005-08-10 12:36:57 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Add binary-indep. r3820: waldi | 2005-08-10 12:40:10 +0000 debian/bin/gencontrol.py: Fix typo. r3821: waldi | 2005-08-10 12:56:58 +0000 * debian/bin/gencontrol.py: Use binary-indep. * debian/rules.real: Move source package rules from debian/rules. r3822: waldi | 2005-08-10 13:11:24 +0000 * debian/bin/gencontrol.py: Use install-dummy. * debian/rules.real: Move tree package rules from debian/rules. r3823: waldi | 2005-08-10 13:41:30 +0000 * debian/bin/gencontrol.py: Fix typos. * debian/rules.real - Move doc package rules from debian/rules. - Fix some installation rules. r3824: waldi | 2005-08-10 13:55:41 +0000 debian/rules.real: Move patch package rules from debian/rules. r3825: waldi | 2005-08-10 14:17:33 +0000 debian/rules: Cleanup. r3826: waldi | 2005-08-10 14:37:03 +0000 debian/rules.real: Fix typos. r3827: waldi | 2005-08-10 14:57:07 +0000 debian: Update svn:ignore property. r3828: waldi | 2005-08-10 15:07:29 +0000 debian/rules.real - Move some install rules. - Support cross compilation. r3829: waldi | 2005-08-10 15:39:14 +0000 debian/rules.real: Realy rename the rules. r3830: waldi | 2005-08-10 17:35:54 +0000 debian/rules.real - Move one rule. - Fix permissions of source tar ball. Closes: 322409 r3832: waldi | 2005-08-10 18:57:51 +0000 debian/templates/control.headers.main.in: Fix command to install headers. r3833: waldi | 2005-08-10 20:30:48 +0000 * debian/bin/gencontrol.py: Remove dash from ABINAME. * debian/rules.real - Use abiname without dash. - Install patches with correct permissions. r3847: waldi | 2005-08-13 09:11:40 +0000 debian/templates/post-install.in: Install any executable file and files which matches *.sh and *.pl in the scripts directory. Closes: 322612 r3848: waldi | 2005-08-13 09:32:54 +0000 * arch/powerpc/defines: Add pseries definitions. * arch/powerpc/config.pseries: Move from arch/powerpc/noconfig.pseries. * bin/gencontrol.py - Export KPKG_SUBARCH. - Updates. * rules.real: Use KPKG_SUBARCH. r3853: waldi | 2005-08-14 10:01:06 +0000 debian/rules.real - Fix cross compile options for make-kpkg. - Fix architecture patches. - Remove asm-offsets.s workaround, pending real fix. r3854: waldi | 2005-08-14 12:07:36 +0000 debian/rules.real: Export version informations. r3855: waldi | 2005-08-14 12:39:57 +0000 debian/templates/post-install.in: Always install generated files. r3858: waldi | 2005-08-14 14:51:28 +0000 debian/rules.real: Integrate headers install fix. r3859: waldi | 2005-08-14 15:29:21 +0000 * debian/arch/powerpc/config.powerpc64 - Fix wrong formated entries. - Enable vscsi client. * debian/arch/powerpc/defines: Fix flavour name. * debian/README.PPC64: Remove. svn path=/trunk/kernel/source/linux-2.6/; revision=3860
2005-08-14 19:59:43 +00:00
endif
ifndef headers_dirs
headers_dirs = $(DEB_HOST_ARCH)
endif
ccommon = debian/arch/config debian/arch/$(ARCH)/config debian/arch/$(ARCH)/$(SUBARCH)/config
#
# Targets
#
binary-arch-subarch: install-header-$(ARCH)-$(SUBARCH)
binary-arch-flavour: install-image-$(ARCH)-$(SUBARCH)-$(FLAVOUR)
binary-indep: install-doc install-patch install-source install-tree
build: $(STAMPS_DIR)/build-$(ARCH)-$(SUBARCH)-$(FLAVOUR)
setup-arch: $(STAMPS_DIR)/source
setup-subarch: $(STAMPS_DIR)/setup-$(ARCH)-$(SUBARCH)
setup-flavour: $(STAMPS_DIR)/setup-$(ARCH)-$(SUBARCH)-$(FLAVOUR)
$(BUILD_DIR)/header-install-$(ARCH)-$(SUBARCH): $(TEMPLATES_DIR)/header-install.in
sed -e 's,@kbpkg@,$(kbpkg),g' \
-e 's,@ksource_dir@,$(CURDIR)/$(kdir),g' \
-e 's,@flavours@,$(flavours),g' \
-e 's,@headers_dirs@,$(headers_dirs),g' \
$< > $@
chmod u+x $@
#
# The way to make the correct package names is to make a
# subarch-specific post-install script...
#
ifdef extra_postinstall_command
extra_command := $(extra_postinstall_command)
else
extra_command := true
endif
$(BUILD_DIR)/post-install-$(ARCH)-$(SUBARCH): $(TEMPLATES_DIR)/post-install.in
sed -e 's,@initrd_modules@,$(initrd_modules),' \
-e 's,@append_subarch@,$(append),' \
-e 's,@extra_postinstall_command@,$(extra_command),' \
-e 's,@headers_dirs@,$(headers_dirs),g' \
$< > $@
#
# Generates the kernel config file for a subarch by merging
# the arch-independent config file (arch/config),
# arch-specific config file (arch/$(karch)/config),
# and subarch specific one (arch/$(karch)/$(subarch)/config).
# It is possible to avoid the inclusion of the arch-indep
# config file by setting include_common_config = no in the
# arch/$(karch)/Makefile.inc.
#
$(BUILD_DIR)/config.$(ARCH)-$(SUBARCH)-$(FLAVOUR): $(basedir)/config.$(FLAVOUR)
@echo "configs=$(configs)"
@echo "Generating configuration file $@:"
rm -f $@
for i in $(ccommon); do \
if [ -f $${i} ]; then \
cat $${i} >> $@; \
fi; \
done
# Flavour config file must be present
cat $(basedir)/config.$(FLAVOUR) >> $@
$(BUILD_DIR)/linux-source-$(UPSTREAM_VERSION).tar.bz2: SOURCE_DIR=$(BUILD_DIR)/source
$(BUILD_DIR)/linux-source-$(UPSTREAM_VERSION).tar.bz2: DIR = $(BUILD_DIR)/linux-source-$(VERSION)
$(BUILD_DIR)/linux-source-$(UPSTREAM_VERSION).tar.bz2: $(STAMPS_DIR)/source
* Use generated rules, effectively remove second flavour resolver. * Implement generic support for cross compilation. * Install generated files in the correct headers packages. r3745: waldi | 2005-08-08 15:40:20 +0000 * debian/bin/gencontrol.py - Rename some variables. - Write debian/rules.gen. * debian/rules: Use debian/rules.gen. r3746: waldi | 2005-08-08 15:51:26 +0000 debian/bin/gencontrol.py: Simplify rules. r3747: waldi | 2005-08-08 16:22:29 +0000 Use generated rules for unpack, effectively remove second flavour resolver. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate unpack rules. * debian/rules: Use new rules. r3748: waldi | 2005-08-08 17:03:32 +0000 Use generated rules for build. * debian/Makefile - Updates. - Generate bin/touch.orig. * debian/bin/gencontrol.py: Generate build rules. * debian/rules: Remove bin/touch.orig creation. r3752: waldi | 2005-08-08 18:13:27 +0000 Use generated rules for binary target. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate binary rules. r3753: waldi | 2005-08-08 19:00:05 +0000 * debian/Makefile - Overwrite env. - Split binary target. * debian/bin/gencontrol.py: Update. * debian/rules: Call correct targets. r3756: waldi | 2005-08-08 20:07:31 +0000 * debian/Makefile - Split unpack target. - Don't generate stamp files for install targets. - Update dir names. * debian/bin/gencontrol.py: Split unpack target. * debian/rules: Remove new stamp files. r3793: waldi | 2005-08-09 19:57:44 +0000 * debian/Makefile - Fix directories. - Build anything in one subdir. * debian/bin/gencontrol.py: Call debian/Makefile from package root. * debian/rules: Updates. r3794: waldi | 2005-08-09 21:43:07 +0000 debian/bin/gencontrol.py: Updates. r3795: waldi | 2005-08-09 22:26:53 +0000 * debian/Makefile - Include debian/rules.defs. - Simplify kpkg command specs. * debian/rules - Move directory definitions to debian/rules.defs. - Include debian/rules.defs. * debian/rules.defs: Add. r3796: waldi | 2005-08-09 22:30:23 +0000 * debian/bin/gencontrol.py: Use debian/rules.real. * debian/rules.real: Move from debian/Makefile. r3797: waldi | 2005-08-09 22:39:24 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Rename unpack to setup. r3798: waldi | 2005-08-09 22:52:43 +0000 debian/bin/gencontrol.py, debian/rules.real: Use DH_OPTIONS. r3799: waldi | 2005-08-09 22:53:37 +0000 debian/rules: Use host, not build architecture. r3815: waldi | 2005-08-10 11:53:38 +0000 debian/rules.real: Update targets. r3816: waldi | 2005-08-10 12:06:13 +0000 debian/rules.real: Move patch rules from debian/rules. r3817: waldi | 2005-08-10 12:22:26 +0000 debian/bin/gencontrol.py, debian/rules.real: Small fixes. r3818: waldi | 2005-08-10 12:29:17 +0000 debian/rules.real: Add seperate setup step for headers package. r3819: waldi | 2005-08-10 12:36:57 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Add binary-indep. r3820: waldi | 2005-08-10 12:40:10 +0000 debian/bin/gencontrol.py: Fix typo. r3821: waldi | 2005-08-10 12:56:58 +0000 * debian/bin/gencontrol.py: Use binary-indep. * debian/rules.real: Move source package rules from debian/rules. r3822: waldi | 2005-08-10 13:11:24 +0000 * debian/bin/gencontrol.py: Use install-dummy. * debian/rules.real: Move tree package rules from debian/rules. r3823: waldi | 2005-08-10 13:41:30 +0000 * debian/bin/gencontrol.py: Fix typos. * debian/rules.real - Move doc package rules from debian/rules. - Fix some installation rules. r3824: waldi | 2005-08-10 13:55:41 +0000 debian/rules.real: Move patch package rules from debian/rules. r3825: waldi | 2005-08-10 14:17:33 +0000 debian/rules: Cleanup. r3826: waldi | 2005-08-10 14:37:03 +0000 debian/rules.real: Fix typos. r3827: waldi | 2005-08-10 14:57:07 +0000 debian: Update svn:ignore property. r3828: waldi | 2005-08-10 15:07:29 +0000 debian/rules.real - Move some install rules. - Support cross compilation. r3829: waldi | 2005-08-10 15:39:14 +0000 debian/rules.real: Realy rename the rules. r3830: waldi | 2005-08-10 17:35:54 +0000 debian/rules.real - Move one rule. - Fix permissions of source tar ball. Closes: 322409 r3832: waldi | 2005-08-10 18:57:51 +0000 debian/templates/control.headers.main.in: Fix command to install headers. r3833: waldi | 2005-08-10 20:30:48 +0000 * debian/bin/gencontrol.py: Remove dash from ABINAME. * debian/rules.real - Use abiname without dash. - Install patches with correct permissions. r3847: waldi | 2005-08-13 09:11:40 +0000 debian/templates/post-install.in: Install any executable file and files which matches *.sh and *.pl in the scripts directory. Closes: 322612 r3848: waldi | 2005-08-13 09:32:54 +0000 * arch/powerpc/defines: Add pseries definitions. * arch/powerpc/config.pseries: Move from arch/powerpc/noconfig.pseries. * bin/gencontrol.py - Export KPKG_SUBARCH. - Updates. * rules.real: Use KPKG_SUBARCH. r3853: waldi | 2005-08-14 10:01:06 +0000 debian/rules.real - Fix cross compile options for make-kpkg. - Fix architecture patches. - Remove asm-offsets.s workaround, pending real fix. r3854: waldi | 2005-08-14 12:07:36 +0000 debian/rules.real: Export version informations. r3855: waldi | 2005-08-14 12:39:57 +0000 debian/templates/post-install.in: Always install generated files. r3858: waldi | 2005-08-14 14:51:28 +0000 debian/rules.real: Integrate headers install fix. r3859: waldi | 2005-08-14 15:29:21 +0000 * debian/arch/powerpc/config.powerpc64 - Fix wrong formated entries. - Enable vscsi client. * debian/arch/powerpc/defines: Fix flavour name. * debian/README.PPC64: Remove. svn path=/trunk/kernel/source/linux-2.6/; revision=3860
2005-08-14 19:59:43 +00:00
rm -rf $@ $(DIR)
cp -al $(SOURCE_DIR) $(DIR)
chmod -R u+rw,go=rX $(DIR)
cd $(BUILD_DIR); tar -cjf linux-source-$(UPSTREAM_VERSION).tar.bz2 linux-source-$(UPSTREAM_VERSION)
* Use generated rules, effectively remove second flavour resolver. * Implement generic support for cross compilation. * Install generated files in the correct headers packages. r3745: waldi | 2005-08-08 15:40:20 +0000 * debian/bin/gencontrol.py - Rename some variables. - Write debian/rules.gen. * debian/rules: Use debian/rules.gen. r3746: waldi | 2005-08-08 15:51:26 +0000 debian/bin/gencontrol.py: Simplify rules. r3747: waldi | 2005-08-08 16:22:29 +0000 Use generated rules for unpack, effectively remove second flavour resolver. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate unpack rules. * debian/rules: Use new rules. r3748: waldi | 2005-08-08 17:03:32 +0000 Use generated rules for build. * debian/Makefile - Updates. - Generate bin/touch.orig. * debian/bin/gencontrol.py: Generate build rules. * debian/rules: Remove bin/touch.orig creation. r3752: waldi | 2005-08-08 18:13:27 +0000 Use generated rules for binary target. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate binary rules. r3753: waldi | 2005-08-08 19:00:05 +0000 * debian/Makefile - Overwrite env. - Split binary target. * debian/bin/gencontrol.py: Update. * debian/rules: Call correct targets. r3756: waldi | 2005-08-08 20:07:31 +0000 * debian/Makefile - Split unpack target. - Don't generate stamp files for install targets. - Update dir names. * debian/bin/gencontrol.py: Split unpack target. * debian/rules: Remove new stamp files. r3793: waldi | 2005-08-09 19:57:44 +0000 * debian/Makefile - Fix directories. - Build anything in one subdir. * debian/bin/gencontrol.py: Call debian/Makefile from package root. * debian/rules: Updates. r3794: waldi | 2005-08-09 21:43:07 +0000 debian/bin/gencontrol.py: Updates. r3795: waldi | 2005-08-09 22:26:53 +0000 * debian/Makefile - Include debian/rules.defs. - Simplify kpkg command specs. * debian/rules - Move directory definitions to debian/rules.defs. - Include debian/rules.defs. * debian/rules.defs: Add. r3796: waldi | 2005-08-09 22:30:23 +0000 * debian/bin/gencontrol.py: Use debian/rules.real. * debian/rules.real: Move from debian/Makefile. r3797: waldi | 2005-08-09 22:39:24 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Rename unpack to setup. r3798: waldi | 2005-08-09 22:52:43 +0000 debian/bin/gencontrol.py, debian/rules.real: Use DH_OPTIONS. r3799: waldi | 2005-08-09 22:53:37 +0000 debian/rules: Use host, not build architecture. r3815: waldi | 2005-08-10 11:53:38 +0000 debian/rules.real: Update targets. r3816: waldi | 2005-08-10 12:06:13 +0000 debian/rules.real: Move patch rules from debian/rules. r3817: waldi | 2005-08-10 12:22:26 +0000 debian/bin/gencontrol.py, debian/rules.real: Small fixes. r3818: waldi | 2005-08-10 12:29:17 +0000 debian/rules.real: Add seperate setup step for headers package. r3819: waldi | 2005-08-10 12:36:57 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Add binary-indep. r3820: waldi | 2005-08-10 12:40:10 +0000 debian/bin/gencontrol.py: Fix typo. r3821: waldi | 2005-08-10 12:56:58 +0000 * debian/bin/gencontrol.py: Use binary-indep. * debian/rules.real: Move source package rules from debian/rules. r3822: waldi | 2005-08-10 13:11:24 +0000 * debian/bin/gencontrol.py: Use install-dummy. * debian/rules.real: Move tree package rules from debian/rules. r3823: waldi | 2005-08-10 13:41:30 +0000 * debian/bin/gencontrol.py: Fix typos. * debian/rules.real - Move doc package rules from debian/rules. - Fix some installation rules. r3824: waldi | 2005-08-10 13:55:41 +0000 debian/rules.real: Move patch package rules from debian/rules. r3825: waldi | 2005-08-10 14:17:33 +0000 debian/rules: Cleanup. r3826: waldi | 2005-08-10 14:37:03 +0000 debian/rules.real: Fix typos. r3827: waldi | 2005-08-10 14:57:07 +0000 debian: Update svn:ignore property. r3828: waldi | 2005-08-10 15:07:29 +0000 debian/rules.real - Move some install rules. - Support cross compilation. r3829: waldi | 2005-08-10 15:39:14 +0000 debian/rules.real: Realy rename the rules. r3830: waldi | 2005-08-10 17:35:54 +0000 debian/rules.real - Move one rule. - Fix permissions of source tar ball. Closes: 322409 r3832: waldi | 2005-08-10 18:57:51 +0000 debian/templates/control.headers.main.in: Fix command to install headers. r3833: waldi | 2005-08-10 20:30:48 +0000 * debian/bin/gencontrol.py: Remove dash from ABINAME. * debian/rules.real - Use abiname without dash. - Install patches with correct permissions. r3847: waldi | 2005-08-13 09:11:40 +0000 debian/templates/post-install.in: Install any executable file and files which matches *.sh and *.pl in the scripts directory. Closes: 322612 r3848: waldi | 2005-08-13 09:32:54 +0000 * arch/powerpc/defines: Add pseries definitions. * arch/powerpc/config.pseries: Move from arch/powerpc/noconfig.pseries. * bin/gencontrol.py - Export KPKG_SUBARCH. - Updates. * rules.real: Use KPKG_SUBARCH. r3853: waldi | 2005-08-14 10:01:06 +0000 debian/rules.real - Fix cross compile options for make-kpkg. - Fix architecture patches. - Remove asm-offsets.s workaround, pending real fix. r3854: waldi | 2005-08-14 12:07:36 +0000 debian/rules.real: Export version informations. r3855: waldi | 2005-08-14 12:39:57 +0000 debian/templates/post-install.in: Always install generated files. r3858: waldi | 2005-08-14 14:51:28 +0000 debian/rules.real: Integrate headers install fix. r3859: waldi | 2005-08-14 15:29:21 +0000 * debian/arch/powerpc/config.powerpc64 - Fix wrong formated entries. - Enable vscsi client. * debian/arch/powerpc/defines: Fix flavour name. * debian/README.PPC64: Remove. svn path=/trunk/kernel/source/linux-2.6/; revision=3860
2005-08-14 19:59:43 +00:00
rm -rf $(DIR)
srcfiles := $(filter-out debian, $(wildcard *))
$(STAMPS_DIR)/source: DIR=$(BUILD_DIR)/source
$(STAMPS_DIR)/source: debian/bin/apply
rm -rf $(DIR)
mkdir -p $(DIR)
cp -al $(srcfiles) $(DIR)
cd $(DIR); override_version=$(SOURCE_VERSION) home=$(CURDIR)/debian/patches-debian sh $(CURDIR)/debian/bin/apply
* Use generated rules, effectively remove second flavour resolver. * Implement generic support for cross compilation. * Install generated files in the correct headers packages. r3745: waldi | 2005-08-08 15:40:20 +0000 * debian/bin/gencontrol.py - Rename some variables. - Write debian/rules.gen. * debian/rules: Use debian/rules.gen. r3746: waldi | 2005-08-08 15:51:26 +0000 debian/bin/gencontrol.py: Simplify rules. r3747: waldi | 2005-08-08 16:22:29 +0000 Use generated rules for unpack, effectively remove second flavour resolver. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate unpack rules. * debian/rules: Use new rules. r3748: waldi | 2005-08-08 17:03:32 +0000 Use generated rules for build. * debian/Makefile - Updates. - Generate bin/touch.orig. * debian/bin/gencontrol.py: Generate build rules. * debian/rules: Remove bin/touch.orig creation. r3752: waldi | 2005-08-08 18:13:27 +0000 Use generated rules for binary target. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate binary rules. r3753: waldi | 2005-08-08 19:00:05 +0000 * debian/Makefile - Overwrite env. - Split binary target. * debian/bin/gencontrol.py: Update. * debian/rules: Call correct targets. r3756: waldi | 2005-08-08 20:07:31 +0000 * debian/Makefile - Split unpack target. - Don't generate stamp files for install targets. - Update dir names. * debian/bin/gencontrol.py: Split unpack target. * debian/rules: Remove new stamp files. r3793: waldi | 2005-08-09 19:57:44 +0000 * debian/Makefile - Fix directories. - Build anything in one subdir. * debian/bin/gencontrol.py: Call debian/Makefile from package root. * debian/rules: Updates. r3794: waldi | 2005-08-09 21:43:07 +0000 debian/bin/gencontrol.py: Updates. r3795: waldi | 2005-08-09 22:26:53 +0000 * debian/Makefile - Include debian/rules.defs. - Simplify kpkg command specs. * debian/rules - Move directory definitions to debian/rules.defs. - Include debian/rules.defs. * debian/rules.defs: Add. r3796: waldi | 2005-08-09 22:30:23 +0000 * debian/bin/gencontrol.py: Use debian/rules.real. * debian/rules.real: Move from debian/Makefile. r3797: waldi | 2005-08-09 22:39:24 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Rename unpack to setup. r3798: waldi | 2005-08-09 22:52:43 +0000 debian/bin/gencontrol.py, debian/rules.real: Use DH_OPTIONS. r3799: waldi | 2005-08-09 22:53:37 +0000 debian/rules: Use host, not build architecture. r3815: waldi | 2005-08-10 11:53:38 +0000 debian/rules.real: Update targets. r3816: waldi | 2005-08-10 12:06:13 +0000 debian/rules.real: Move patch rules from debian/rules. r3817: waldi | 2005-08-10 12:22:26 +0000 debian/bin/gencontrol.py, debian/rules.real: Small fixes. r3818: waldi | 2005-08-10 12:29:17 +0000 debian/rules.real: Add seperate setup step for headers package. r3819: waldi | 2005-08-10 12:36:57 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Add binary-indep. r3820: waldi | 2005-08-10 12:40:10 +0000 debian/bin/gencontrol.py: Fix typo. r3821: waldi | 2005-08-10 12:56:58 +0000 * debian/bin/gencontrol.py: Use binary-indep. * debian/rules.real: Move source package rules from debian/rules. r3822: waldi | 2005-08-10 13:11:24 +0000 * debian/bin/gencontrol.py: Use install-dummy. * debian/rules.real: Move tree package rules from debian/rules. r3823: waldi | 2005-08-10 13:41:30 +0000 * debian/bin/gencontrol.py: Fix typos. * debian/rules.real - Move doc package rules from debian/rules. - Fix some installation rules. r3824: waldi | 2005-08-10 13:55:41 +0000 debian/rules.real: Move patch package rules from debian/rules. r3825: waldi | 2005-08-10 14:17:33 +0000 debian/rules: Cleanup. r3826: waldi | 2005-08-10 14:37:03 +0000 debian/rules.real: Fix typos. r3827: waldi | 2005-08-10 14:57:07 +0000 debian: Update svn:ignore property. r3828: waldi | 2005-08-10 15:07:29 +0000 debian/rules.real - Move some install rules. - Support cross compilation. r3829: waldi | 2005-08-10 15:39:14 +0000 debian/rules.real: Realy rename the rules. r3830: waldi | 2005-08-10 17:35:54 +0000 debian/rules.real - Move one rule. - Fix permissions of source tar ball. Closes: 322409 r3832: waldi | 2005-08-10 18:57:51 +0000 debian/templates/control.headers.main.in: Fix command to install headers. r3833: waldi | 2005-08-10 20:30:48 +0000 * debian/bin/gencontrol.py: Remove dash from ABINAME. * debian/rules.real - Use abiname without dash. - Install patches with correct permissions. r3847: waldi | 2005-08-13 09:11:40 +0000 debian/templates/post-install.in: Install any executable file and files which matches *.sh and *.pl in the scripts directory. Closes: 322612 r3848: waldi | 2005-08-13 09:32:54 +0000 * arch/powerpc/defines: Add pseries definitions. * arch/powerpc/config.pseries: Move from arch/powerpc/noconfig.pseries. * bin/gencontrol.py - Export KPKG_SUBARCH. - Updates. * rules.real: Use KPKG_SUBARCH. r3853: waldi | 2005-08-14 10:01:06 +0000 debian/rules.real - Fix cross compile options for make-kpkg. - Fix architecture patches. - Remove asm-offsets.s workaround, pending real fix. r3854: waldi | 2005-08-14 12:07:36 +0000 debian/rules.real: Export version informations. r3855: waldi | 2005-08-14 12:39:57 +0000 debian/templates/post-install.in: Always install generated files. r3858: waldi | 2005-08-14 14:51:28 +0000 debian/rules.real: Integrate headers install fix. r3859: waldi | 2005-08-14 15:29:21 +0000 * debian/arch/powerpc/config.powerpc64 - Fix wrong formated entries. - Enable vscsi client. * debian/arch/powerpc/defines: Fix flavour name. * debian/README.PPC64: Remove. svn path=/trunk/kernel/source/linux-2.6/; revision=3860
2005-08-14 19:59:43 +00:00
#make-kpkg does this when building kernel-source.
mv $(DIR)/scripts/package/Makefile $(DIR)/scripts/package/Makefile.dist
mv $(DIR)/scripts/package/builddeb $(DIR)/scripts/package/builddeb.dist
echo "# Dummy Makefile" > $(DIR)/scripts/package/Makefile
echo "all:" >> $(DIR)/scripts/package/Makefile
touch $@
patches := $(wildcard debian/patches-arch/$(SUBARCH).*)
patches += $(wildcard debian/patches-arch/$(SUBARCH)_*)
patches += $(wildcard debian/patches-arch/$(ARCH).*)
patches += $(wildcard debian/patches-arch/$(ARCH)_*)
patches := $(strip $(patches))
$(STAMPS_DIR)/source-$(ARCH)-$(SUBARCH): SOURCE_DIR=$(BUILD_DIR)/source
$(STAMPS_DIR)/source-$(ARCH)-$(SUBARCH): DIR=$(BUILD_DIR)/source-$(ARCH)-$(SUBARCH)
$(STAMPS_DIR)/source-$(ARCH)-$(SUBARCH): $(BUILD_DIR)/post-install-$(ARCH)-$(SUBARCH) $(STAMPS_DIR)/source
rm -rf $(DIR)
cp -al $(SOURCE_DIR) $(DIR)
mkdir -p $(DIR)/debian
cp debian/changelog $(DIR)/debian
cp debian/copyright $(DIR)/debian
cp debian/control $(DIR)/debian/control
touch $(DIR)/debian/official
if [ -n '$(patches)' ]; then \
cd $(DIR); \
cat $(addprefix $(CURDIR)/,$(patches)) | patch -p1; \
fi
install $< $(DIR)/debian/post-install
touch $@
#
# This target performs a build for a particular flavour. Note
# that in this file it should be always placed *before* the
# build-$(subarch)-% target, which creates the build directory.
#
$(STAMPS_DIR)/build-$(ARCH)-$(SUBARCH)-$(FLAVOUR): DIR=$(BUILD_DIR)/build-$(ARCH)-$(SUBARCH)-$(FLAVOUR)
$(STAMPS_DIR)/build-$(ARCH)-$(SUBARCH)-$(FLAVOUR): $(STAMPS_DIR)/setup-$(ARCH)-$(SUBARCH)-$(FLAVOUR)
ln -fs $$(command -v touch) debian/build/touch.orig
cd $(DIR); $(setup_env) PATH=$(CURDIR)/build:$(CURDIR)/bin:$(PATH) $(kpkg_image) build
ifdef image_postproc
cd $(DIR); $(image_postproc)
endif
touch $@
$(STAMPS_DIR)/setup-$(ARCH)-$(SUBARCH)-$(FLAVOUR): SOURCE_DIR=$(BUILD_DIR)/source-$(ARCH)-$(SUBARCH)
$(STAMPS_DIR)/setup-$(ARCH)-$(SUBARCH)-$(FLAVOUR): DIR=$(BUILD_DIR)/build-$(ARCH)-$(SUBARCH)-$(FLAVOUR)
$(STAMPS_DIR)/setup-$(ARCH)-$(SUBARCH)-$(FLAVOUR): $(BUILD_DIR)/config.$(ARCH)-$(SUBARCH)-$(FLAVOUR) $(STAMPS_DIR)/source-$(ARCH)-$(SUBARCH)
rm -rf $(DIR)
cp -al $(SOURCE_DIR) $(DIR)
cp $< $(DIR)/.config
cd $(DIR); $(setup_env) $(kpkg_image) configure
touch $@
$(STAMPS_DIR)/setup-$(ARCH)-$(SUBARCH): SOURCE_DIR=$(BUILD_DIR)/source-$(ARCH)-$(SUBARCH)
$(STAMPS_DIR)/setup-$(ARCH)-$(SUBARCH): DIR=$(BUILD_DIR)/build-$(ARCH)-$(SUBARCH)
$(STAMPS_DIR)/setup-$(ARCH)-$(SUBARCH): $(STAMPS_DIR)/source-$(ARCH)-$(SUBARCH)
rm -rf $(DIR)
cp -al $(SOURCE_DIR) $(DIR)
cd $(DIR); $(setup_env) $(kpkg_header) configure
touch $@
install-base:
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol -- $(GENCONTROL_ARGS)
dh_md5sums
dh_builddeb
install-doc: SOURCE_DIR=$(BUILD_DIR)/source
install-doc: DIR=$(BUILD_DIR)/$@
install-doc: $(STAMPS_DIR)/source
rm -rf $(DIR)
cp -al $(SOURCE_DIR) $(DIR)
mkdir -p $(DIR)/debian
cp debian/changelog $(DIR)/debian
cp debian/copyright $(DIR)/debian
cp debian/control $(DIR)/debian/control
touch $(DIR)/debian/official
cd $(DIR) && $(setup_env) make-kpkg --stem linux kernel-doc
cat $(DIR)/debian/files >> debian/files
@for i in $$(awk '{ print $$1; }' $(DIR)/debian/files); do echo mv $(BUILD_DIR)/$$i ..; mv $(BUILD_DIR)/$$i ..; done
rm -rf $(DIR)
install-dummy:
dh_testdir
dh_testroot
dh_clean -d -k
dh_installchangelogs
dh_installdocs
$(MAKE) -f debian/rules.real install-base
install-image-$(ARCH)-$(SUBARCH)-$(FLAVOUR): SOURCE_DIR=$(BUILD_DIR)/build-$(ARCH)-$(SUBARCH)-$(FLAVOUR)
install-image-$(ARCH)-$(SUBARCH)-$(FLAVOUR): DIR=$(BUILD_DIR)/$@
install-image-$(ARCH)-$(SUBARCH)-$(FLAVOUR): $(STAMPS_DIR)/build-$(ARCH)-$(SUBARCH)-$(FLAVOUR)
rm -rf $(DIR)
cp -al $(SOURCE_DIR) $(DIR)
cd $(DIR); $(setup_env) $(kpkg_image) kernel-image
cat $(DIR)/debian/files >> debian/files
@for i in $$(awk '{ print $$1; }' $(DIR)/debian/files); do echo mv $(BUILD_DIR)/$$i ..; mv $(BUILD_DIR)/$$i ..; done
rm -rf $(DIR)
install-header-$(ARCH)-$(SUBARCH): SOURCE_DIR=$(BUILD_DIR)/build-$(ARCH)-$(SUBARCH)
install-header-$(ARCH)-$(SUBARCH): DIR=$(BUILD_DIR)/$@
install-header-$(ARCH)-$(SUBARCH): $(STAMPS_DIR)/setup-$(ARCH)-$(SUBARCH) $(BUILD_DIR)/header-install-$(ARCH)-$(SUBARCH)
rm -rf $(DIR)
cp -al $(SOURCE_DIR) $(DIR)
cd $(DIR); $(setup_env) $(kpkg_header) kernel-headers
cat $(DIR)/debian/files >> debian/files
@for i in $$(awk '{ print $$1; }' $(DIR)/debian/files); do echo mv $(BUILD_DIR)/$$i ..; mv $(BUILD_DIR)/$$i ..; done
rm -rf $(DIR)
install-patch: PACKAGE = linux-patch-debian-$(VERSION)
install-patch: pbase := /usr/src/kernel-patches/all/$(VERSION)
install-patch: pfull := debian/$(PACKAGE)$(pbase)
install-patch: ptchs := $(notdir $(wildcard debian/patches-arch/*))
install-patch: DH_OPTIONS = -p$(PACKAGE)
install-patch:
dh_testdir
dh_testroot
dh_clean -d -k $(DH_OPTIONS)
dh_installdirs $(DH_OPTIONS) $(pbase)/apply $(pbase)/debian $(pbase)/unpatch
dh_install $(DH_OPTIONS) debian/patches-debian/* $(pbase)/debian
# Install the debian patches
sed 's/@version@/$(release)/g' debian/bin/apply > $(pfull)/apply/debian
sed 's/@upstream@/$(version)/g' debian/bin/unpatch > $(pfull)/unpatch/debian
chmod 755 $(pfull)/apply/debian $(pfull)/unpatch/debian
chmod 644 $(pfull)/debian/*.patch
bzip2 -9 $(pfull)/debian/*.patch
# Now the arch/subarch-specific patches
for i in $(ptchs); do \
arch=$${i%%.*}; \
( \
echo "Patch-name: $${arch}"; \
echo "Patch-id: $${arch}_$(subst .,_,$(VERSION))"; \
echo "Path-strip-level: 1"; \
echo; \
echo "Patch-file: debian/patches-arch/$${i}"; \
echo "Architecture: $${arch}"; \
echo "Kernel-version: $(VERSION)"; \
echo; \
) > debian/$(PACKAGE).kpatches.arch; \
dh_installkpatches $(DH_OPTIONS); \
done
dh_installdocs $(DH_OPTIONS)
dh_installchangelogs $(DH_OPTIONS)
$(MAKE) -f debian/rules.real install-base DH_OPTIONS=$(DH_OPTIONS)
install-source: DH_OPTIONS = -plinux-source-$(VERSION)
install-source: $(BUILD_DIR)/linux-source-$(UPSTREAM_VERSION).tar.bz2
* Use generated rules, effectively remove second flavour resolver. * Implement generic support for cross compilation. * Install generated files in the correct headers packages. r3745: waldi | 2005-08-08 15:40:20 +0000 * debian/bin/gencontrol.py - Rename some variables. - Write debian/rules.gen. * debian/rules: Use debian/rules.gen. r3746: waldi | 2005-08-08 15:51:26 +0000 debian/bin/gencontrol.py: Simplify rules. r3747: waldi | 2005-08-08 16:22:29 +0000 Use generated rules for unpack, effectively remove second flavour resolver. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate unpack rules. * debian/rules: Use new rules. r3748: waldi | 2005-08-08 17:03:32 +0000 Use generated rules for build. * debian/Makefile - Updates. - Generate bin/touch.orig. * debian/bin/gencontrol.py: Generate build rules. * debian/rules: Remove bin/touch.orig creation. r3752: waldi | 2005-08-08 18:13:27 +0000 Use generated rules for binary target. * debian/Makefile: Updates. * debian/bin/gencontrol.py: Generate binary rules. r3753: waldi | 2005-08-08 19:00:05 +0000 * debian/Makefile - Overwrite env. - Split binary target. * debian/bin/gencontrol.py: Update. * debian/rules: Call correct targets. r3756: waldi | 2005-08-08 20:07:31 +0000 * debian/Makefile - Split unpack target. - Don't generate stamp files for install targets. - Update dir names. * debian/bin/gencontrol.py: Split unpack target. * debian/rules: Remove new stamp files. r3793: waldi | 2005-08-09 19:57:44 +0000 * debian/Makefile - Fix directories. - Build anything in one subdir. * debian/bin/gencontrol.py: Call debian/Makefile from package root. * debian/rules: Updates. r3794: waldi | 2005-08-09 21:43:07 +0000 debian/bin/gencontrol.py: Updates. r3795: waldi | 2005-08-09 22:26:53 +0000 * debian/Makefile - Include debian/rules.defs. - Simplify kpkg command specs. * debian/rules - Move directory definitions to debian/rules.defs. - Include debian/rules.defs. * debian/rules.defs: Add. r3796: waldi | 2005-08-09 22:30:23 +0000 * debian/bin/gencontrol.py: Use debian/rules.real. * debian/rules.real: Move from debian/Makefile. r3797: waldi | 2005-08-09 22:39:24 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Rename unpack to setup. r3798: waldi | 2005-08-09 22:52:43 +0000 debian/bin/gencontrol.py, debian/rules.real: Use DH_OPTIONS. r3799: waldi | 2005-08-09 22:53:37 +0000 debian/rules: Use host, not build architecture. r3815: waldi | 2005-08-10 11:53:38 +0000 debian/rules.real: Update targets. r3816: waldi | 2005-08-10 12:06:13 +0000 debian/rules.real: Move patch rules from debian/rules. r3817: waldi | 2005-08-10 12:22:26 +0000 debian/bin/gencontrol.py, debian/rules.real: Small fixes. r3818: waldi | 2005-08-10 12:29:17 +0000 debian/rules.real: Add seperate setup step for headers package. r3819: waldi | 2005-08-10 12:36:57 +0000 debian/bin/gencontrol.py, debian/rules, debian/rules.real: Add binary-indep. r3820: waldi | 2005-08-10 12:40:10 +0000 debian/bin/gencontrol.py: Fix typo. r3821: waldi | 2005-08-10 12:56:58 +0000 * debian/bin/gencontrol.py: Use binary-indep. * debian/rules.real: Move source package rules from debian/rules. r3822: waldi | 2005-08-10 13:11:24 +0000 * debian/bin/gencontrol.py: Use install-dummy. * debian/rules.real: Move tree package rules from debian/rules. r3823: waldi | 2005-08-10 13:41:30 +0000 * debian/bin/gencontrol.py: Fix typos. * debian/rules.real - Move doc package rules from debian/rules. - Fix some installation rules. r3824: waldi | 2005-08-10 13:55:41 +0000 debian/rules.real: Move patch package rules from debian/rules. r3825: waldi | 2005-08-10 14:17:33 +0000 debian/rules: Cleanup. r3826: waldi | 2005-08-10 14:37:03 +0000 debian/rules.real: Fix typos. r3827: waldi | 2005-08-10 14:57:07 +0000 debian: Update svn:ignore property. r3828: waldi | 2005-08-10 15:07:29 +0000 debian/rules.real - Move some install rules. - Support cross compilation. r3829: waldi | 2005-08-10 15:39:14 +0000 debian/rules.real: Realy rename the rules. r3830: waldi | 2005-08-10 17:35:54 +0000 debian/rules.real - Move one rule. - Fix permissions of source tar ball. Closes: 322409 r3832: waldi | 2005-08-10 18:57:51 +0000 debian/templates/control.headers.main.in: Fix command to install headers. r3833: waldi | 2005-08-10 20:30:48 +0000 * debian/bin/gencontrol.py: Remove dash from ABINAME. * debian/rules.real - Use abiname without dash. - Install patches with correct permissions. r3847: waldi | 2005-08-13 09:11:40 +0000 debian/templates/post-install.in: Install any executable file and files which matches *.sh and *.pl in the scripts directory. Closes: 322612 r3848: waldi | 2005-08-13 09:32:54 +0000 * arch/powerpc/defines: Add pseries definitions. * arch/powerpc/config.pseries: Move from arch/powerpc/noconfig.pseries. * bin/gencontrol.py - Export KPKG_SUBARCH. - Updates. * rules.real: Use KPKG_SUBARCH. r3853: waldi | 2005-08-14 10:01:06 +0000 debian/rules.real - Fix cross compile options for make-kpkg. - Fix architecture patches. - Remove asm-offsets.s workaround, pending real fix. r3854: waldi | 2005-08-14 12:07:36 +0000 debian/rules.real: Export version informations. r3855: waldi | 2005-08-14 12:39:57 +0000 debian/templates/post-install.in: Always install generated files. r3858: waldi | 2005-08-14 14:51:28 +0000 debian/rules.real: Integrate headers install fix. r3859: waldi | 2005-08-14 15:29:21 +0000 * debian/arch/powerpc/config.powerpc64 - Fix wrong formated entries. - Enable vscsi client. * debian/arch/powerpc/defines: Fix flavour name. * debian/README.PPC64: Remove. svn path=/trunk/kernel/source/linux-2.6/; revision=3860
2005-08-14 19:59:43 +00:00
dh_testdir
dh_testroot
dh_install $(DH_OPTIONS) $< /usr/src
dh_installdocs $(DH_OPTIONS) README
dh_installchangelogs $(DH_OPTIONS)
$(MAKE) -f debian/rules.real install-base DH_OPTIONS=$(DH_OPTIONS)
install-tree: DH_OPTIONS = -plinux-tree-$(VERSION)
install-tree:
$(MAKE) -f debian/rules.real install-dummy DH_OPTIONS=$(DH_OPTIONS)