linux-hwe-6.5: work to unify linux and linux-hwe helper.
This commit is contained in:
parent
ff0ea9c6b0
commit
e1d1c6724c
327 changed files with 119 additions and 54 deletions
70
helpers/DATA/linux-hwe-6.5/udeb/d-i.patch
Normal file
70
helpers/DATA/linux-hwe-6.5/udeb/d-i.patch
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
diff --git a/debian/rules b/debian/rules
|
||||
index fe52711..b2d1921 100755
|
||||
--- a/debian/rules
|
||||
+++ b/debian/rules
|
||||
@@ -134,12 +134,19 @@ clean: debian/control debian/canonical-certs.pem debian/canonical-revoked-certs.
|
||||
dh_testroot
|
||||
dh_clean
|
||||
|
||||
+ # d-i stuff
|
||||
+ rm -rf $(DEBIAN)/d-i-$(arch)
|
||||
+ # Generated on the fly.
|
||||
+ rm -f $(DEBIAN)/d-i/firmware/$(arch)/kernel-image
|
||||
+
|
||||
# normal build junk
|
||||
rm -rf $(DEBIAN)/abi/$(release)-$(revision)
|
||||
rm -rf $(builddir)
|
||||
rm -f $(stampdir)/stamp-*
|
||||
rm -rf debian/linux-*/
|
||||
|
||||
+ # This gets rid of the d-i packages in control
|
||||
+ cp -f $(DEBIAN)/control.stub $(DROOT)/control
|
||||
cp $(DEBIAN)/changelog debian/changelog
|
||||
|
||||
# Install the copyright information.
|
||||
@@ -184,7 +191,6 @@ $(DEBIAN)/control.stub: \
|
||||
$(DROOT)/scripts/control-create \
|
||||
$(control_files) \
|
||||
debian/canonical-revoked-certs.pem \
|
||||
- $(DROOT)/control.d/flavour-module.stub \
|
||||
$(DEBIAN)/changelog \
|
||||
$(wildcard $(DEBIAN)/control.d/* $(DEBIAN)/sub-flavours/*.vars)
|
||||
for i in $(control_files); do \
|
||||
@@ -211,7 +217,14 @@ $(DEBIAN)/control.stub: \
|
||||
|
||||
.PHONY: debian/control
|
||||
debian/control: $(DEBIAN)/control.stub
|
||||
+ echo "# placebo control.stub for kernel-wedge flow change" >debian/control.stub
|
||||
cp $(DEBIAN)/control.stub debian/control
|
||||
+ # append udeb packages
|
||||
+ export KW_DEFCONFIG_DIR=$(DEBIAN)/d-i && \
|
||||
+ export KW_CONFIG_DIR=$(DEBIAN)/d-i && \
|
||||
+ LANG=C kernel-wedge gen-control $(release)-$(abinum) | \
|
||||
+ grep-dctrl -FArchitecture $(arch) \
|
||||
+ >>$(CURDIR)/debian/control
|
||||
|
||||
debian/canonical-certs.pem: $(wildcard $(DROOT)/certs/*-all.pem) $(wildcard $(DROOT)/certs/*-$(arch).pem) $(wildcard $(DEBIAN)/certs/*-all.pem) $(wildcard $(DEBIAN)/certs/*-$(arch).pem)
|
||||
for cert in $(sort $(notdir $^)); \
|
||||
diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
|
||||
index b89c61c..ef1ef03 100644
|
||||
--- a/debian/rules.d/2-binary-arch.mk
|
||||
+++ b/debian/rules.d/2-binary-arch.mk
|
||||
@@ -178,10 +178,14 @@ endif
|
||||
install -m600 $(builddir)/build-$*/System.map \
|
||||
$(pkgdir)/boot/System.map-$(abi_release)-$*
|
||||
|
||||
-ifeq ($(do_dtbs),true)
|
||||
- $(build_cd) $(kmake) $(build_O) $(conc_level) dtbs_install \
|
||||
- INSTALL_DTBS_PATH=$(pkgdir)/lib/firmware/$(abi_release)-$*/device-tree
|
||||
-endif
|
||||
+ if [ "$(filter true,$(do_dtbs))" ]; then \
|
||||
+ $(build_cd) $(kmake) $(build_O) $(conc_level) dtbs_install \
|
||||
+ INSTALL_DTBS_PATH=$(pkgdir)/lib/firmware/$(abi_release)-$*/device-tree; \
|
||||
+ ( cd $(pkgdir)/lib/firmware/$(abi_release)-$*/ && find device-tree -print ) | \
|
||||
+ while read dtb_file; do \
|
||||
+ echo "$$dtb_file ?" >> $(DEBIAN)/d-i/firmware/$(arch)/kernel-image; \
|
||||
+ done; \
|
||||
+ fi
|
||||
|
||||
ifeq ($(no_dumpfile),)
|
||||
makedumpfile -g $(pkgdir)/boot/vmcoreinfo-$(abi_release)-$* \
|
||||
Loading…
Add table
Add a link
Reference in a new issue