Newer
Older
# Copyright (C) 2009-2020 Rubén Rodríguez <ruben@gnu.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
EXTERNAL='deb-src http://ftp.debian.org/debian bullseye main'
REPOKEY=648ACFD622F3D138
cp $DATA/archs/* kernel/
#sed s/KERNEL_PRIO=medium/KERNEL_PRIO=high/g library.sh -i #already high
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#sed 's/main,restricted/main/; s/ubuntu/trisquel/' -i library.sh ./debian/bootstrap-base.postinst
sed 's/archive.gpg/trisquel-archive-keyring.gpg/' -i ./debian/bootstrap-base.postinst
sed 's/debian-archive-keyring/trisquel-archive-keyring/' -i ./debian/control
#Fix kernel detection
patch -p1 < $DATA/kernel_update_list.patch
cat << EOF > kernel/tests/amd64/cittagazze.test
cpuinfo cittagazze.cpuinfo
majors 2.6
flavour amd64
kernel-2.6 \
linux-generic \
linux-image-generic \
linux-generic-hwe-20.04 \
linux-image-generic-hwe-20.04 \
linux-lowlatency \
linux-image-lowlatency \
linux-lowlatency-hwe-20.04 \
linux-image-lowlatency-hwe-20.04 \
linux-oem-20.04 \
linux-image-oem-20.04 \
linux-virtual \
linux-image-virtual \
linux-image-extra-virtual \
linux-virtual-hwe-20.04 \
linux-image-virtual-hwe-20.04 \
linux-image-extra-virtual-hwe-20.04
usable \
linux-generic \
linux-server \
linux-image-generic \
linux-image-server \
linux-image-2.6.20-15-generic \
linux-image-2.6.20-15-server
EOF
cat << EOF > kernel/tests/i386/cittagazze.test
cpuinfo cittagazze.cpuinfo
majors 2.6
flavour 686-pae 686 586
kernel-2.6 \
linux-generic \
linux-image-generic \
linux-virtual \
linux-image-virtual
usable \
linux-generic \
linux-image-generic \
linux-image-586 \
linux-image-686 \
linux-image-686-pae \
linux-image-3.16-4-586 \
linux-image-2.6.25-1-686 \
linux-image-2.6.36-1-generic \
linux-image-2.6.38-1-686-pae
unusable \
linux-image-amd64 \
linux-image-2.6.25-1-amd64 \
linux-image-686-pae-dbg \
linux-image-3.16-4-686-pae-dbg
env KERNEL_FLAVOUR generic
EOF
#Temporary disable i386
sed -i "/ARCHES =/s|i386 ||" kernel/Makefile
changelog "Rebranded and adapted for Trisquel"
compile