Skip to content
Snippets Groups Projects
Commit c1bdd1c4 authored by Luis Guzmán's avatar Luis Guzmán
Browse files

linux-hwe-5.19: replace script with dctrl-tools

parent 85c184da
No related branches found
No related tags found
1 merge request!1124linux-hwe-5.19: replace script with dctrl-tools
Pipeline #1025 failed
...@@ -40,7 +40,7 @@ index fe52711..b2d1921 100755 ...@@ -40,7 +40,7 @@ index fe52711..b2d1921 100755
+ 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)
......
#!/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);
...@@ -112,9 +112,7 @@ Description: Metapackage depending on kernel udebs ...@@ -112,9 +112,7 @@ Description: Metapackage depending on kernel udebs
for easier version and migration tracking. for easier version and migration tracking.
EOF EOF
for i in debian.master debian.hwe-$HWEKR cat << EOF >> debian.hwe-$HWEKR/control.d/flavour-control.stub
do
cat << EOF >> $i/control.d/flavour-control.stub
Package: SRCPKGNAME-udebs-FLAVOUR Package: SRCPKGNAME-udebs-FLAVOUR
Build-Profiles: <!stage1> <!noudeb> <!cross> <!autopkgtest> Build-Profiles: <!stage1> <!noudeb> <!cross> <!autopkgtest>
XC-Package-Type: udeb XC-Package-Type: udeb
...@@ -125,13 +123,14 @@ Description: Metapackage depending on kernel udebs ...@@ -125,13 +123,14 @@ Description: Metapackage depending on kernel udebs
This package depends on the all udebs that the kernel build generated, This package depends on the all udebs that the kernel build generated,
for easier version and migration tracking. for easier version and migration tracking.
EOF EOF
done
sed '/include.*2-binary-arch.mk/a\\n# Rules for building the udebs ($(DEBIAN)-installer)\ninclude $(DROOT)/rules.d/5-udebs.mk' -i debian/rules sed '/include.*2-binary-arch.mk/a\\n# Rules for building the udebs ($(DEBIAN)-installer)\ninclude $(DROOT)/rules.d/5-udebs.mk' -i debian/rules
sed 's/+= binary-debs/+= binary-udebs/' -i debian/rules.d/2-binary-arch.mk sed 's/+= binary-debs/+= binary-udebs/' -i debian/rules.d/2-binary-arch.mk
sed '/Build-Depends:/a\ kernel-wedge <!stage1>,' -i debian/control \ for i in dctrl-tools kernel-wedge
debian.master/control.stub.in \ do
debian.hwe-$HWEKR/control.stub.in sed "/Build-Depends:/a\ $i <\!stage1> <\!noudeb> <\!cross> <\!autopkgtest>," -i debian/control \
debian.hwe-$HWEKR/control.stub.in
done
# Wipe dkms-versions # Wipe dkms-versions
# lists zfs / v4l2loopback versions # lists zfs / v4l2loopback versions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment