linux-hwe-6.2: initial release of linux-hwe-6.2 build

This commit is contained in:
Luis Guzmán 2023-07-26 16:08:17 +00:00
parent 3ba849d1fd
commit a4fcc4a91b
335 changed files with 17182 additions and 0 deletions

View file

@ -0,0 +1,79 @@
# Do udebs if not disabled in the arch-specific makefile
binary-udebs: binary-debs
@echo Debug: $@
ifeq ($(disable_d_i),)
@$(MAKE) --no-print-directory -f $(DROOT)/rules DEBIAN=$(DEBIAN) \
do-binary-udebs
endif
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
@echo Debug: $@
dh_testdir
dh_testroot
# unpack the kernels into a temporary directory
mkdir -p debian/d-i-${arch}
imagelist=$$(cat $(CURDIR)/$(DEBIAN)/d-i/kernel-versions | grep ^${arch} | gawk '{print $$3}') && \
for f in $$imagelist; do \
i=$(release)-$(abinum)-$$f; \
for f in \
../linux-image-$$i\_$(release)-$(revision)_${arch}.deb \
../linux-image-unsigned-$$i\_$(release)-$(revision)_${arch}.deb \
../linux-modules-$$i\_$(release)-$(revision)_${arch}.deb \
../linux-modules-extra-$$i\_$(release)-$(revision)_${arch}.deb; \
do \
[ -f $$f ] && dpkg -x $$f debian/d-i-${arch}; \
done; \
/sbin/depmod -b debian/d-i-${arch} $$i; \
done
# kernel-wedge will error if no modules unless this is touched
touch $(DEBIAN)/d-i/no-modules
touch $(CURDIR)/$(DEBIAN)/d-i/ignore-dups
export KW_DEFCONFIG_DIR=$(CURDIR)/$(DEBIAN)/d-i && \
export KW_CONFIG_DIR=$(CURDIR)/$(DEBIAN)/d-i && \
export SOURCEDIR=$(CURDIR)/debian/d-i-${arch} && \
kernel-wedge install-files $(release)-$(abinum) && \
kernel-wedge check
# Build just the udebs
dilist=$$(dh_listpackages -s | grep "\-di$$") && \
[ -z "$dilist" ] || \
for i in $$dilist; do \
dh_fixperms -p$$i; \
$(lockme) dh_gencontrol -p$$i; \
dh_builddeb -p$$i; \
done
# Generate the meta-udeb dependancy lists.
@gawk ' \
/^Package:/ { \
package=$$2; flavour=""; parch="" } \
(/Package-Type: udeb/ && package !~ /^$(linux_udeb_name)-udebs-/) { \
match(package, "'$(release)'-'$(abinum)'-(.*)-di", bits); \
flavour = bits[1]; \
} \
(/^Architecture:/ && $$0 " " ~ / '$(arch)'/) { \
parch=$$0; \
} \
(flavour != "" && parch != "") { \
udebs[flavour] = udebs[flavour] package ", "; \
flavour=""; parch=""; \
} \
END { \
for (flavour in udebs) { \
package="$(linux_udeb_name)-udebs-" flavour; \
file="debian/" package ".substvars"; \
print("udeb:Depends=" udebs[flavour]) > file; \
metas="'$(builddir)'/udeb-meta-packages"; \
print(package) >metas \
} \
} \
' <$(CURDIR)/debian/control
@while read i; do \
$(lockme) dh_gencontrol -p$$i; \
dh_builddeb -p$$i; \
done <$(builddir)/udeb-meta-packages

View file

@ -0,0 +1,7 @@
#!/bin/bash
files=`find -type f`
while read -r line
do
./deblob-check $line
done <<< "$files"

View file

@ -0,0 +1,70 @@
diff --git a/debian/rules b/debian/rules
index fe52711..b2d1921 100755
--- a/debian/rules
+++ b/debian/rules
@@ -128,12 +128,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)-$* \

View file

@ -0,0 +1,4 @@
#
# Place the names of udeb modules into this directory that require
# runtime firmware.
#

View file

@ -0,0 +1,4 @@
#
# Place the names of udeb modules into this directory that require
# runtime firmware.
#

View file

@ -0,0 +1 @@
#include <nic-modules>

View file

@ -0,0 +1 @@
#include <scsi-modules>

View file

@ -0,0 +1,4 @@
#
# Place the names of udeb modules into this directory that require
# runtime firmware.
#

View file

@ -0,0 +1 @@
#include <nic-modules>

View file

@ -0,0 +1 @@
#include <scsi-modules>

View file

@ -0,0 +1,4 @@
#
# Place the names of udeb modules into this directory that require
# runtime firmware.
#

View file

@ -0,0 +1,4 @@
#
# Place the names of udeb modules into this directory that require
# runtime firmware.
#

View file

@ -0,0 +1 @@
#include <nic-modules>

View file

@ -0,0 +1 @@
#include <scsi-modules>

View file

@ -0,0 +1 @@

View file

@ -0,0 +1,4 @@
#
# Place the names of udeb modules into this directory that require
# runtime firmware.
#

View file

@ -0,0 +1 @@
#include <nic-modules>

View file

@ -0,0 +1 @@
#include <scsi-modules>

View file

@ -0,0 +1,4 @@
#
# Place the names of udeb modules into this directory that require
# runtime firmware.
#

View file

@ -0,0 +1 @@
#include <nic-modules>

View file

@ -0,0 +1 @@
#include <scsi-modules>

View file

@ -0,0 +1,4 @@
#
# Place the names of udeb modules into this directory that require
# runtime firmware.
#

View file

@ -0,0 +1 @@
#include <nic-modules>

View file

@ -0,0 +1 @@
#include <scsi-modules>

View file

@ -0,0 +1 @@

View file

@ -0,0 +1,16 @@
# arch version flavour installedname suffix bdep
amd64 - generic - - -
i386 - generic - - -
armhf - generic - - -
armhf - generic-lpae - - -
arm64 - generic - - -
ppc64el - generic - - -
s390x - generic - - -
# Ports
# arch version flavour installedname suffix bdep

View file

@ -0,0 +1 @@
#include <block-modules>

View file

@ -0,0 +1 @@
#include <crc-modules>

View file

@ -0,0 +1 @@
#include <crypto-modules>

View file

@ -0,0 +1 @@
#include <fat-modules>

View file

@ -0,0 +1 @@
#include <fb-modules>

View file

@ -0,0 +1 @@
#include <floppy-modules>

View file

@ -0,0 +1 @@
#include <fs-core-modules>

View file

@ -0,0 +1 @@
#include <fs-secondary-modules>

View file

@ -0,0 +1 @@
#include <isofs-modules>

View file

@ -0,0 +1 @@
#include <kernel-image>

View file

@ -0,0 +1 @@
#include <md-modules>

View file

@ -0,0 +1 @@
#include <message-modules>

View file

@ -0,0 +1 @@
#include <mouse-modules>

View file

@ -0,0 +1 @@
#include <multipath-modules>

View file

@ -0,0 +1 @@
#include <nic-modules>

View file

@ -0,0 +1 @@
#include <nic-shared-modules>

View file

@ -0,0 +1 @@
#include <nic-wireless-modules>

View file

@ -0,0 +1 @@
#include <parport-modules>

View file

@ -0,0 +1,4 @@
#include <scsi-core-modules>
# Needed by hv_storvsc in hyperv-modules as well as scsi-modules
scsi_transport_fc

View file

@ -0,0 +1,2 @@
#include <scsi-modules>
ipr ?

View file

@ -0,0 +1 @@
#include <serial-modules>

View file

@ -0,0 +1 @@
#include <storage-core-modules>

View file

@ -0,0 +1 @@
#include <usb-storage-modules>

View file

@ -0,0 +1 @@
#include <virtio-modules>

View file

@ -0,0 +1 @@
#include <vlan-modules>

View file

@ -0,0 +1 @@
#include <block-modules>

View file

@ -0,0 +1 @@
#include <crc-modules>

View file

@ -0,0 +1 @@
#include <crypto-modules>

View file

@ -0,0 +1 @@
#include <fat-modules>

View file

@ -0,0 +1,5 @@
#include <fb-modules>
vesafb ?
vga16fb

View file

@ -0,0 +1 @@
#include <firewire-core-modules>

View file

@ -0,0 +1 @@
#include <floppy-modules>

View file

@ -0,0 +1 @@
#include <fs-core-modules>

View file

@ -0,0 +1 @@
#include <fs-secondary-modules>

View file

@ -0,0 +1 @@
#include <i2c-modules>

View file

@ -0,0 +1 @@
#include <input-modules>

View file

@ -0,0 +1 @@
#include <ipmi-modules>

View file

@ -0,0 +1 @@
#include <isofs-modules>

View file

@ -0,0 +1 @@
#include <kernel-image>

View file

@ -0,0 +1 @@
#include <md-modules>

View file

@ -0,0 +1 @@
#include <message-modules>

View file

@ -0,0 +1 @@
#include <mouse-modules>

View file

@ -0,0 +1 @@
#include <mtd-core-modules>

View file

@ -0,0 +1 @@
#include <multipath-modules>

View file

@ -0,0 +1 @@
#include <nfs-modules>

View file

@ -0,0 +1 @@
#include <nic-modules>

View file

@ -0,0 +1 @@
#include <nic-pcmcia-modules>

View file

@ -0,0 +1 @@
#include <nic-shared-modules>

View file

@ -0,0 +1 @@
#include <nic-usb-modules>

View file

@ -0,0 +1 @@
#include <nic-wireless-modules>

View file

@ -0,0 +1 @@
#include <parport-modules>

View file

@ -0,0 +1 @@
#include <pata-modules>

View file

@ -0,0 +1 @@
#include <pcmcia-modules>

View file

@ -0,0 +1 @@
#include <pcmcia-storage-modules>

View file

@ -0,0 +1 @@
#include <plip-modules>

View file

@ -0,0 +1 @@
#include <ppp-modules>

View file

@ -0,0 +1 @@
#include <sata-modules>

View file

@ -0,0 +1,4 @@
#include <scsi-core-modules>
# Needed by hv_storvsc in hyperv-modules as well as scsi-modules
scsi_transport_fc

View file

@ -0,0 +1,2 @@
#include <scsi-modules>
ipr ?

View file

@ -0,0 +1 @@
#include <serial-modules>

View file

@ -0,0 +1 @@
#include <speakup-modules>

View file

@ -0,0 +1 @@
#include <storage-core-modules>

View file

@ -0,0 +1 @@
#include <usb-modules>

View file

@ -0,0 +1 @@
#include <usb-storage-modules>

View file

@ -0,0 +1 @@
#include <virtio-modules>

View file

@ -0,0 +1 @@
#include <vlan-modules>

View file

@ -0,0 +1 @@
#include <block-modules>

View file

@ -0,0 +1 @@
#include <crc-modules>

View file

@ -0,0 +1 @@
#include <crypto-modules>

View file

@ -0,0 +1 @@
#include <fat-modules>

View file

@ -0,0 +1,21 @@
#include <fb-modules>
ast
tegra-drm
rockchipdrm
hibmc-drm
# For panel/backlight on some chromeos devices
panel-simple
pwm_bl
pwm-cros-ec
# For panel/backlight on Pinebook
analogix-anx6345
pwm-sun4i
sun4i-drm
sun8i-mixer
# For panel/backlight on Pinebook Pro
pwm-rockchip

View file

@ -0,0 +1 @@
#include <fs-core-modules>

View file

@ -0,0 +1 @@
#include <fs-secondary-modules>

View file

@ -0,0 +1,5 @@
#include <i2c-modules>
i2c-tegra
i2c-rk3x
i2c-mv64xxx
i2c-imx

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