linux-hwe-5.19: enable udeb for linux-hwe-5.19
This commit is contained in:
parent
a01dd44cba
commit
1f230cf4a5
328 changed files with 2110 additions and 4 deletions
|
|
@ -19,7 +19,9 @@
|
|||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
|
||||
VERSION=21
|
||||
VERSION=22
|
||||
|
||||
HWEKR=5.19
|
||||
|
||||
. ./config
|
||||
|
||||
|
|
@ -56,7 +58,7 @@ for DIR in $PRESERVEDIRS; do
|
|||
cp $DIR $TMPDIR --parents -a
|
||||
done
|
||||
|
||||
sh $DATA/deblob-5.19
|
||||
sh $DATA/deblob-$HWEKR
|
||||
|
||||
echo "Reverting deblobbing for files patched by silent-accept-firmware"
|
||||
cp $TMPDIR/* . -av
|
||||
|
|
@ -73,6 +75,67 @@ done
|
|||
# grep -i "load.*ucode.*%" $PRESERVEDIRS -r
|
||||
#done
|
||||
|
||||
# Re-enable udebs
|
||||
cp $DATA/5-udebs.mk debian/rules.d
|
||||
for i in debian.master debian.hwe-$HWEKR
|
||||
do
|
||||
cp -a $DATA/d-i $i
|
||||
done
|
||||
/bin/sed 's/\.ko//' -i debian.master/d-i/modules/*-modules
|
||||
cp $DATA/kernel-wedge-arch.pl debian/scripts/misc/
|
||||
|
||||
cat << EOF >> debian/control
|
||||
Package: linux-hwe-$HWEKR-udebs-generic
|
||||
Build-Profiles: <!stage1> <!noudeb> <!cross> <!autopkgtest>
|
||||
XC-Package-Type: udeb
|
||||
Section: debian-installer
|
||||
Architecture: amd64 armhf arm64 ppc64el s390x
|
||||
Depends: \${udeb:Depends}
|
||||
Description: Metapackage depending on kernel udebs
|
||||
This package depends on the all udebs that the kernel build generated,
|
||||
for easier version and migration tracking.
|
||||
|
||||
Package: linux-hwe-$HWEKR-udebs-generic-lpae
|
||||
Build-Profiles: <!stage1> <!noudeb> <!cross> <!autopkgtest>
|
||||
XC-Package-Type: udeb
|
||||
Section: debian-installer
|
||||
Architecture: armhf
|
||||
Depends: \${udeb:Depends}
|
||||
Description: Metapackage depending on kernel udebs
|
||||
This package depends on the all udebs that the kernel build generated,
|
||||
for easier version and migration tracking.
|
||||
|
||||
Package: linux-hwe-$HWEKR-udebs-lowlatency
|
||||
Build-Profiles: <!stage1> <!noudeb> <!cross> <!autopkgtest>
|
||||
XC-Package-Type: udeb
|
||||
Section: debian-installer
|
||||
Architecture: amd64
|
||||
Depends: \${udeb:Depends}
|
||||
Description: Metapackage depending on kernel udebs
|
||||
This package depends on the all udebs that the kernel build generated,
|
||||
for easier version and migration tracking.
|
||||
EOF
|
||||
|
||||
for i in debian.master debian.hwe-$HWEKR
|
||||
do
|
||||
cat << EOF >> $i/control.d/flavour-control.stub
|
||||
Package: SRCPKGNAME-udebs-FLAVOUR
|
||||
Build-Profiles: <!stage1> <!noudeb> <!cross> <!autopkgtest>
|
||||
XC-Package-Type: udeb
|
||||
Section: debian-installer
|
||||
Architecture: ARCH
|
||||
Depends: \${udeb:Depends}
|
||||
Description: Metapackage depending on kernel udebs
|
||||
This package depends on the all udebs that the kernel build generated,
|
||||
for easier version and migration tracking.
|
||||
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 's/+= binary-debs/+= binary-udebs/' -i debian/rules.d/2-binary-arch.mk
|
||||
sed '/Build-Depends:/a\ kernel-wedge <!stage1>,' -i debian/control \
|
||||
debian.master/control.stub.in
|
||||
|
||||
# Wipe dkms-versions
|
||||
# lists zfs / v4l2loopback versions
|
||||
echo > debian/dkms-versions
|
||||
|
|
@ -167,11 +230,15 @@ sed -i "/AAEON/d" debian.master/config/annotations
|
|||
sed -i '/CONFIG_INIT_STACK_ALL_ZERO/s|y|-|g' debian.master/config/annotations
|
||||
sed -i '/CONFIG_SHADOW_CALL_STACK/s|y|-|g' debian.master/config/annotations
|
||||
|
||||
cp debian.master/config debian.hwe-5.19 -a
|
||||
cp debian.master/config debian.hwe-$HWEKR -a
|
||||
|
||||
# HWE specific changes, check against the current one.
|
||||
sed -i "/CONFIG_ZERO_CALL_USED_REGS/s|y|-|g" debian.master/config/annotations
|
||||
sed -i "/CONFIG_SLS/s|y|-|g" debian.master/config/annotations
|
||||
|
||||
changelog "Removed non-free bits"
|
||||
|
||||
cp debian/changelog debian.master/changelog
|
||||
cp debian/changelog debian.hwe-5.19/changelog
|
||||
cp debian/changelog debian.hwe-$HWEKR/changelog
|
||||
|
||||
compile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue