linux: initial restoration udeb binaries in ecne

This commit is contained in:
Luis Guzmán 2025-01-13 04:50:32 +00:00
parent 664272f6d9
commit 2c02a4e8f2
8 changed files with 35 additions and 30 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright (C) 2024 Luis Guzman <ark@switnet.org>
# Copyright (C) 2025 Luis Guzman <ark@switnet.org>
# Copyright (C) 2008-2023 Ruben Rodriguez <ruben@trisquel.info>
# Copyright (C) 2019 David Trudgian <dave@trudgian.net>
#
@ -19,14 +19,13 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
VERSION=31
VERSION=33
HWEKR=6.8
# DI_ENABLED = 1 enables udeb build, 0 or any other value disables them.
DI_ENABLED=0
# HWE_ENABLED = 1 enables HWE stack build, 0 or any other value disables it.
DI_ENABLED=1
HWE_ENABLED=0
# DI_ENABLED = 1 enables udeb build, 0 or any other value disables them.
# HWE_ENABLED = 1 enables HWE stack build, 0 or any other value disables it.
[ $HWE_ENABLED != 1 ] && \
DEBIAN_PATH=debian.master && \
CONTROL_PACKAGE=linux
@ -63,7 +62,7 @@ drivers/net/wireless/broadcom/brcm80211
PRESERVEDIRS="$PRESERVEDIRS"
TMPDIR=$(mktemp -d preserve-XXXX)
PRESERVE=$(grep '^+++' $DATA/silent-accept-firmware.patch | /bin/sed 's/+++ //; s/\t.*//;' | cut -d/ -f2- | sort -u )
PRESERVE=$(grep '^+++' $DATA/000-silent-accept-firmware.patch | /bin/sed 's/+++ //; s/\t.*//;' | cut -d/ -f2- | sort -u )
for FILE in $PRESERVE; do
cp $FILE $TMPDIR --parents -a
done
@ -73,7 +72,7 @@ done
sh $DATA/deblob-$HWEKR
echo "Reverting deblobbing for files patched by silent-accept-firmware"
echo "Reverting deblobbing for files patched by 000-silent-accept-firmware"
cp $TMPDIR/* . -av
rm -rf $TMPDIR
@ -253,10 +252,6 @@ for i in $(grep -rl family=ubuntu debian/rules.d/)
do
sed -i s/family=ubuntu/family=trisquel/ $i
done
#cat << EOF > $DEBIAN_PATH/etc/kernelconfig
#archs="i386 amd64 armhf arm64 ppc64el"
#family='trisquel'
#EOF
rename s/ubuntu/trisquel/ debian.*/config/config.common.ubuntu
for i in $(grep -lr config.common.ubuntu debian*/)