linux: merge linux/linux-hwe helpers for both.

This commit is contained in:
Luis Guzmán 2024-04-09 08:18:23 +00:00
parent 63ffabcd4a
commit dcc7af2408
328 changed files with 180 additions and 105 deletions

View file

@ -1,26 +0,0 @@
#!/usr/bin/perl
#
# kernel-wedge-arch.pl -- select only specifiers for the supplied arch.
#
use strict;
require Dpkg::Control;
require Dpkg::Deps;
my $fh = \*STDIN;
my @entries;
my $wanted = $ARGV[0];
my $entry;
while (!eof($fh)) {
$entry = Dpkg::Control->new();
$entry->parse($fh, '???');
if ($entry->{'Architecture'} eq $wanted) {
print("\n" . $entry);
}
}
close($fh);

View file

@ -6,7 +6,7 @@ ifeq ($(disable_d_i),)
do-binary-udebs do-binary-udebs
endif endif
do-binary-udebs: linux_udeb_name=$(shell if echo $(src_pkg_name)|egrep -q '(linux-lts|linux-hwe)'; then echo $(src_pkg_name); else echo linux; fi) do-binary-udebs: linux_udeb_name=$(shell if echo $(src_pkg_name)|egrep -q '(linux-lts|linux-hwe|linux-[0-9]+\.[0-9]+)'; then echo $(src_pkg_name); else echo linux; fi)
do-binary-udebs: debian/control do-binary-udebs: debian/control
@echo Debug: $@ @echo Debug: $@
dh_testdir dh_testdir

View file

@ -1,6 +1,8 @@
--- a/debian/rules 2023-02-10 11:40:38.000000000 -0600 diff --git a/debian/rules b/debian/rules
+++ b/debian/rules 2023-02-10 11:53:56.313708852 -0600 index 0f238b32..d96c732e 100755
@@ -128,12 +128,19 @@ --- a/debian/rules
+++ b/debian/rules
@@ -122,12 +122,19 @@ clean: debian/control debian/canonical-certs.pem debian/canonical-revoked-certs.
dh_testroot dh_testroot
dh_clean dh_clean
@ -10,7 +12,7 @@
+ rm -f $(DEBIAN)/d-i/firmware/$(arch)/kernel-image + rm -f $(DEBIAN)/d-i/firmware/$(arch)/kernel-image
+ +
# normal build junk # normal build junk
rm -rf $(DEBIAN)/abi/$(release)-$(revision) rm -rf $(DEBIAN)/abi
rm -rf $(builddir) rm -rf $(builddir)
rm -f $(stampdir)/stamp-* rm -f $(stampdir)/stamp-*
rm -rf $(DEBIAN)/linux-* rm -rf $(DEBIAN)/linux-*
@ -37,7 +39,7 @@
+ export KW_DEFCONFIG_DIR=$(DEBIAN)/d-i && \ + export KW_DEFCONFIG_DIR=$(DEBIAN)/d-i && \
+ export KW_CONFIG_DIR=$(DEBIAN)/d-i && \ + export KW_CONFIG_DIR=$(DEBIAN)/d-i && \
+ LANG=C kernel-wedge gen-control $(release)-$(abinum) | \ + LANG=C kernel-wedge gen-control $(release)-$(abinum) | \
+ perl -f $(DROOT)/scripts/misc/kernel-wedge-arch.pl $(arch) \ + grep-dctrl -FArchitecture $(arch) \
+ >>$(CURDIR)/debian/control + >>$(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) debian/canonical-certs.pem: $(wildcard $(DROOT)/certs/*-all.pem) $(wildcard $(DROOT)/certs/*-$(arch).pem) $(wildcard $(DEBIAN)/certs/*-all.pem) $(wildcard $(DEBIAN)/certs/*-$(arch).pem)

Some files were not shown because too many files have changed in this diff Show more