diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 21:00:47 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 21:00:47 +0000 |
commit | 8c065e72d7829ba7efeb3c93d98c602f7ba3d158 (patch) | |
tree | 6a0028be8b6ccf05cb17febc6abafbfbdd0569ec /debian/signing_templates/rules.real | |
parent | Merging upstream version 6.9.2. (diff) | |
download | linux-8c065e72d7829ba7efeb3c93d98c602f7ba3d158.tar.xz linux-8c065e72d7829ba7efeb3c93d98c602f7ba3d158.zip |
Adding debian version 6.9.2-1~exp1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/signing_templates/rules.real')
-rw-r--r-- | debian/signing_templates/rules.real | 54 |
1 files changed, 35 insertions, 19 deletions
diff --git a/debian/signing_templates/rules.real b/debian/signing_templates/rules.real index 1b6ed6f084..c4d47c9903 100644 --- a/debian/signing_templates/rules.real +++ b/debian/signing_templates/rules.real @@ -2,6 +2,8 @@ include /usr/share/dpkg/default.mk SHELL := bash -e +include debian/rules.defs + export DH_OPTIONS export DEB_RULES_REQUIRES_ROOT ?= no @@ -9,6 +11,8 @@ export DEB_RULES_REQUIRES_ROOT ?= no GENCONTROL_ARGS := -v@signedtemplate_binaryversion@ BUILDDEB_ARGS := -Zxz $(if $(filter pkg.linux.quick,$(DEB_BUILD_PROFILES)),-z0) +stamp = [ -d $(dir $@) ] || mkdir $(dir $@); touch $@ + define dh_binary_pre dh_testroot dh_prep @@ -43,6 +47,7 @@ define dh_binary_post dh_makeshlibs -Xvmlinux -Xvmlinuz dh_shlibdeps $(DH_SHLIBDEPS_ARGS) dh_installdeb + if command -v dh_movetousr >/dev/null; then dh_movetousr; fi dh_gencontrol -- $(GENCONTROL_ARGS) dh_md5sums dh_builddeb -- $(BUILDDEB_ARGS) @@ -50,30 +55,41 @@ endef build-indep: +$(STAMPS_DIR)/install_$(ARCH)_$(FEATURESET)_$(FLAVOUR): REAL_VERSION = $(ABINAME)$(LOCALVERSION) +$(STAMPS_DIR)/install_$(ARCH)_$(FEATURESET)_$(FLAVOUR): IMAGE_PACKAGE_NAME = linux-image-$(REAL_VERSION)-unsigned +$(STAMPS_DIR)/install_$(ARCH)_$(FEATURESET)_$(FLAVOUR): SIGNATURE_DIR = debian/signatures/$(IMAGE_PACKAGE_NAME) +$(STAMPS_DIR)/install_$(ARCH)_$(FEATURESET)_$(FLAVOUR): INSTALL_DIR=$(BUILD_DIR)/install_$(ARCH)_$(FEATURESET)_$(FLAVOUR) +$(STAMPS_DIR)/install_$(ARCH)_$(FEATURESET)_$(FLAVOUR): + mkdir -p $(INSTALL_DIR)/boot + rsync -a $(patsubst %,/boot/%-$(REAL_VERSION),config System.map $(IMAGE_INSTALL_STEM)) \ + $(INSTALL_DIR)/boot/ + sbattach --attach $(SIGNATURE_DIR)/boot/vmlinuz-$(REAL_VERSION).sig \ + $(INSTALL_DIR)/boot/vmlinuz-$(REAL_VERSION) + mkdir -p $(INSTALL_DIR)/lib/modules/$(REAL_VERSION) + rsync -a $(addprefix /lib/modules/$(REAL_VERSION)/,kernel modules.builtin modules.builtin.modinfo modules.order) \ + $(INSTALL_DIR)/lib/modules/$(REAL_VERSION)/ +# Copy any device tree files + if [ -d /usr/lib/linux-image-$(REAL_VERSION) ]; then \ + mkdir -p $(INSTALL_DIR)/usr/lib/linux-image-$(REAL_VERSION); \ + rsync -a /usr/lib/linux-image-$(REAL_VERSION)/ \ + $(INSTALL_DIR)/usr/lib/linux-image-$(REAL_VERSION)/; \ + fi + $(stamp) + build_image: binary_image: DH_OPTIONS = -p$(PACKAGE_NAME) binary_image: DH_STRIP_ARGS = --no-automatic-dbgsym -binary_image: KERNEL_VERSION = $(ABINAME)$(LOCALVERSION) -binary_image: IMAGE_PACKAGE_NAME = linux-image-$(KERNEL_VERSION)-unsigned +binary_image: REAL_VERSION = $(ABINAME)$(LOCALVERSION) +binary_image: IMAGE_PACKAGE_NAME = linux-image-$(REAL_VERSION)-unsigned +binary_image: DIR2 = $(BUILD_DIR)/install_$(ARCH)_$(FEATURESET)_$(FLAVOUR) binary_image: PACKAGE_DIR = debian/$(PACKAGE_NAME) -binary_image: SIGNATURE_DIR = debian/signatures/$(IMAGE_PACKAGE_NAME) +binary_image: $(STAMPS_DIR)/install_$(ARCH)_$(FEATURESET)_$(FLAVOUR) binary_image: $(dh_binary_pre) - mkdir -p $(PACKAGE_DIR)/boot - rsync -a $(patsubst %,/boot/%-$(KERNEL_VERSION),config System.map $(IMAGE_INSTALL_STEM)) \ - $(PACKAGE_DIR)/boot/ - sbattach --attach $(SIGNATURE_DIR)/boot/vmlinuz-$(KERNEL_VERSION).sig \ - $(PACKAGE_DIR)/boot/vmlinuz-$(KERNEL_VERSION) - mkdir -p $(PACKAGE_DIR)/lib/modules/$(KERNEL_VERSION) - rsync -a $(addprefix /lib/modules/$(KERNEL_VERSION)/,kernel modules.builtin modules.builtin.modinfo modules.order) \ - $(PACKAGE_DIR)/lib/modules/$(KERNEL_VERSION)/ -# Copy any device tree files - if [ -d /usr/lib/linux-image-$(KERNEL_VERSION) ]; then \ - mkdir -p $(PACKAGE_DIR)/usr/lib/linux-image-$(KERNEL_VERSION); \ - rsync -a /usr/lib/linux-image-$(KERNEL_VERSION)/ \ - $(PACKAGE_DIR)/usr/lib/linux-image-$(KERNEL_VERSION)/; \ - fi + dh_install --sourcedir=$(DIR2) boot + dh_install --sourcedir=$(DIR2) lib + if [ -d $(DIR2)/usr ]; then dh_install --sourcedir=$(DIR2) usr; fi # Copy bug scripts but change the info file to refer to the right package mkdir -p $(PACKAGE_DIR)/usr/share/bug/$(PACKAGE_NAME) rsync -a /usr/share/bug/$(IMAGE_PACKAGE_NAME)/ \ @@ -94,9 +110,9 @@ build_installer: binary_installer: REAL_VERSION = $(ABINAME)$(LOCALVERSION) binary_installer: export KW_DEFCONFIG_DIR=debian/installer binary_installer: export KW_CONFIG_DIR=debian/installer -# XXX No make dependency exists for this directory -binary_installer: export SOURCEDIR = debian/linux-image-$(REAL_VERSION) +binary_installer: export SOURCEDIR = $(BUILD_DIR)/install_$(ARCH)_$(FEATURESET)_$(FLAVOUR) binary_installer: DH_OPTIONS_IMAGE = -p$(IMAGE_PACKAGE_NAME) --sourcedir=$(SOURCEDIR) +binary_installer: $(STAMPS_DIR)/install_$(ARCH)_$(FEATURESET)_$(FLAVOUR) binary_installer: $(dh_binary_pre) DH_OPTIONS="$(DH_OPTIONS_IMAGE)" dh_install boot/$(IMAGE_INSTALL_STEM)-$(REAL_VERSION) |