initial commit
imported from https://salsa.debian.org/kernel-team/linux.git commit 9d5cc9d9d6501d7f1dd7e194d4b245bd0b6c6a22 version 6.11.4-1
This commit is contained in:
4
debian/signing_templates/README.source
vendored
Normal file
4
debian/signing_templates/README.source
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
This source package is generated by the Debian signing service from a
|
||||
template built by the linux package. It should never be updated directly.
|
||||
|
||||
-- Ben Hutchings <ben@decadent.org.uk> Fri, 06 Apr 2018 10:23:29 +0100
|
24
debian/signing_templates/rules
vendored
Executable file
24
debian/signing_templates/rules
vendored
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
include /usr/share/dpkg/architecture.mk
|
||||
|
||||
SHELL := sh -e
|
||||
|
||||
include debian/rules.defs
|
||||
|
||||
build: build-arch build-indep
|
||||
build-arch:
|
||||
build-indep:
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
rm -rf $(BUILD_DIR) $(STAMPS_DIR)
|
||||
dh_clean
|
||||
|
||||
binary: binary-arch binary-indep
|
||||
binary-arch: debian/control
|
||||
dh_testdir
|
||||
$(MAKE) -f debian/rules.gen binary-arch_$(DEB_HOST_ARCH)
|
||||
binary-indep:
|
||||
|
||||
.PHONY: build build-arch build-indep clean binary binary-arch binary-indep
|
2
debian/signing_templates/rules.defs
vendored
Normal file
2
debian/signing_templates/rules.defs
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
BUILD_DIR = debian/build
|
||||
STAMPS_DIR = debian/stamps
|
132
debian/signing_templates/rules.real
vendored
Normal file
132
debian/signing_templates/rules.real
vendored
Normal file
@@ -0,0 +1,132 @@
|
||||
include /usr/share/dpkg/default.mk
|
||||
|
||||
SHELL := bash -e
|
||||
|
||||
include debian/rules.defs
|
||||
|
||||
export DH_OPTIONS
|
||||
|
||||
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
|
||||
dh_installdirs
|
||||
endef
|
||||
|
||||
define dh_binary_post
|
||||
dh_install $(DH_INSTALL_ARGS)
|
||||
# Workaround #1068189. By Debian policy and aligned debhelper behaviour /usr/share/doc/package
|
||||
# is permitted to be a symbolic link to another directory in /usr/share/doc only if the two
|
||||
# packages come from the same source package. The package build will fail with the new debhelper
|
||||
# version since debhelper/13.15. As the linux-signed-* packages are quite special in the eco-
|
||||
# system, make the workaround to fallback to the old behaviour until it is agreed on how to
|
||||
# resolve the situation policy conformant.
|
||||
# https://www.debian.org/doc/debian-policy/ch-docs.html#copyright-information
|
||||
$(if $(INSTALLDOCS_LINK_DOC),
|
||||
mkdir -p debian/$(PACKAGE_NAME)/usr/share/doc && ln -sf $(INSTALLDOCS_LINK_DOC) debian/$(PACKAGE_NAME)/usr/share/doc/$(PACKAGE_NAME),
|
||||
dh_installdocs)
|
||||
dh_installchangelogs
|
||||
dh_installexamples
|
||||
dh_installman
|
||||
dh_installudev
|
||||
dh_bugfiles
|
||||
dh_ucf
|
||||
dh_lintian
|
||||
dh_icons
|
||||
dh_link
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
dh_missing
|
||||
dh_strip $(DH_STRIP_ARGS) -Xvmlinux -Xvmlinuz
|
||||
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)
|
||||
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: 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: $(STAMPS_DIR)/install_$(ARCH)_$(FEATURESET)_$(FLAVOUR)
|
||||
binary_image:
|
||||
$(dh_binary_pre)
|
||||
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)/ \
|
||||
$(PACKAGE_DIR)/usr/share/bug/$(PACKAGE_NAME)/
|
||||
sed -i -e 's/^PACKAGE_NAME=.*/PACKAGE_NAME=$(PACKAGE_NAME)/' \
|
||||
-e 's/^PACKAGE_VERSION=.*/PACKAGE_VERSION=$(PACKAGE_VERSION)/' \
|
||||
$(PACKAGE_DIR)/usr/share/bug/$(PACKAGE_NAME)/info
|
||||
$(dh_binary_post)
|
||||
|
||||
build_meta:
|
||||
|
||||
binary_meta:
|
||||
$(dh_binary_pre)
|
||||
$(dh_binary_post)
|
||||
|
||||
build_installer:
|
||||
|
||||
binary_installer: REAL_VERSION = $(ABINAME)$(LOCALVERSION)
|
||||
binary_installer: export KW_DEFCONFIG_DIR=debian/installer
|
||||
binary_installer: export KW_CONFIG_DIR=debian/installer
|
||||
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)
|
||||
DH_OPTIONS="$(DH_OPTIONS_IMAGE)" dh_install lib/modules/$(REAL_VERSION)/modules.builtin
|
||||
DH_OPTIONS="$(DH_OPTIONS_IMAGE)" dh_install lib/modules/$(REAL_VERSION)/modules.order
|
||||
ifneq ($(filter arm64 armel armhf mipsel mips64el mipsr6 mipsr6el mips64r6 mips64r6el riscv64,$(ARCH)),)
|
||||
DH_OPTIONS="$(DH_OPTIONS_IMAGE)" dh_install usr/lib/linux-image-$(REAL_VERSION)
|
||||
endif
|
||||
kernel-wedge copy-modules $(ABINAME) $(FLAVOUR) $(REAL_VERSION)
|
||||
kernel-wedge find-dups $(REAL_VERSION)
|
||||
kernel-wedge find-unpackaged $(REAL_VERSION) $(REAL_VERSION)
|
||||
kernel-wedge check $$(dh_listpackages)
|
||||
dh_fixperms
|
||||
dh_gencontrol -- $(GENCONTROL_ARGS)
|
||||
dh_builddeb -- $(BUILDDEB_ARGS)
|
||||
|
||||
.PHONY: build_% binary_%
|
1
debian/signing_templates/source/format
vendored
Normal file
1
debian/signing_templates/source/format
vendored
Normal file
@@ -0,0 +1 @@
|
||||
3.0 (native)
|
Reference in New Issue
Block a user