2022-05-23 06:56:18 +01:00
|
|
|
SPDX-FileCopyrightText: 2021-22 fosslinux <fosslinux@aussies.space>
|
2022-03-07 07:58:20 +00:00
|
|
|
|
|
|
|
SPDX-License-Identifier: Artistic-1.0
|
|
|
|
|
|
|
|
Set some things that cannot be overriden in the perl Configure script to
|
|
|
|
generate with correct values for live-bootstrap.
|
|
|
|
|
|
|
|
NOTE: this patch CANNOT be applied to a non-live-bootstrap environment.
|
|
|
|
|
2022-05-12 10:50:28 +01:00
|
|
|
--- ../metaconfig-5.32.1~rc1/U/threads/archname.U 2022-02-27 21:30:03.155396204 +1100
|
|
|
|
+++ ../metaconfig-5.32.1~rc1/U/threads/archname.U 2022-02-27 21:30:49.392396204 +1100
|
2022-03-07 07:58:20 +00:00
|
|
|
@@ -79,7 +79,7 @@
|
|
|
|
?X: Very GCCian.
|
|
|
|
*) archname=`echo $targetarch|sed 's,^[^-]*-,,'` ;;
|
|
|
|
esac
|
|
|
|
-myarchname="$tarch"
|
|
|
|
+myarchname="i686-linux"
|
|
|
|
case "$archname" in
|
|
|
|
'') dflt="$tarch";;
|
|
|
|
*) dflt="$archname";;
|
2022-05-12 10:50:28 +01:00
|
|
|
--- ../metaconfig-5.32.1~rc1/U/modified/Oldconfig.U 2022-02-27 21:31:26.911396204 +1100
|
|
|
|
+++ ../metaconfig-5.32.1~rc1/U/modified/Oldconfig.U 2022-02-27 21:32:31.846396204 +1100
|
2022-03-07 07:58:20 +00:00
|
|
|
@@ -117,16 +117,13 @@
|
|
|
|
?X: on some machines to avoid the error message when uname is not found; e.g.
|
|
|
|
?X: old SUN-OS 3.2 would not execute hostname in (uname -a || hostname). Sigh!
|
|
|
|
?X: Now not using a subshell but instead $test.
|
|
|
|
-myuname=`$uname -a 2>/dev/null`
|
|
|
|
-$test -z "$myuname" && myuname=`hostname 2>/dev/null`
|
|
|
|
# Downcase everything to avoid ambiguity.
|
|
|
|
# Remove slashes and single quotes so we can use parts of this in
|
|
|
|
# directory and file names.
|
|
|
|
# Remove newlines so myuname is sane to use elsewhere.
|
|
|
|
# tr '[A-Z]' '[a-z]' would not work in EBCDIC
|
|
|
|
# because the A-Z/a-z are not consecutive.
|
|
|
|
-myuname=`echo $myuname | $sed -e "s,['/],,g" | \
|
|
|
|
- ./tr '[A-Z]' '[a-z]' | $tr $trnl ' '`
|
Upgrade Linux kernel to 4.14.336
This is the last LTS version buildable using GCC 4.0.x. The next one,
version 4.19, requires at least GCC 4.6.
Fortunately, this is also the first version of the Linux kernel
without firmware blobs being included in /firmware, so the FSFLA
deblob scripts aren't needed anymore to ensure a fully auditable
kernel - the 3 remaining drivers that do include blobs masquerading
as source code are removed via a patch, avoiding all the other side
effects of the deblob scripts.
This doesn't compromise the trustworthiness of the bootstrapped
environment, since all the other drivers deblob would remove use
the firmware loader mechanism, which does nothing when the actual
firmware blobs aren't installed on the system separately. Features
dependent on firmware still won't work, but many drivers that load
firmware do so only optionally. This includes r8169, the driver for
the Realtek gigabit NICs found on many x86 motherboards.
This kernel is considerably larger than 4.9.10, and we build more
of it (including drivers that would previously get stripped away by
the deblob script, such as r8169), so to accommodate that, Fiwix
initrd size is increased by 64MiB, while lowering kexec space by
the same amount to ensure enough userspace memory available in Fiwix.
Fiwix's maximum open file count is also bumped from 1.5K to 2.5K.
The Documentation folder is deleted before build, to further save
space in the ramdisk.
2024-02-16 11:58:27 +00:00
|
|
|
+myuname="linux (none) 4.14.336 #1 mon jan 1 00:00:01 1970 i686 gnulinux"
|
2022-03-07 07:58:20 +00:00
|
|
|
?X: Save the value we just computed to reset myuname after we get done here.
|
|
|
|
newmyuname="$myuname"
|
|
|
|
dflt=n
|
|
|
|
@@ -336,7 +333,7 @@
|
|
|
|
?X: Note the hostname on the second one, which will fool Configure
|
|
|
|
?X: into using the SysV case!
|
|
|
|
gnu) osname=gnu
|
|
|
|
- osvers="$3" ;;
|
Upgrade Linux kernel to 4.14.336
This is the last LTS version buildable using GCC 4.0.x. The next one,
version 4.19, requires at least GCC 4.6.
Fortunately, this is also the first version of the Linux kernel
without firmware blobs being included in /firmware, so the FSFLA
deblob scripts aren't needed anymore to ensure a fully auditable
kernel - the 3 remaining drivers that do include blobs masquerading
as source code are removed via a patch, avoiding all the other side
effects of the deblob scripts.
This doesn't compromise the trustworthiness of the bootstrapped
environment, since all the other drivers deblob would remove use
the firmware loader mechanism, which does nothing when the actual
firmware blobs aren't installed on the system separately. Features
dependent on firmware still won't work, but many drivers that load
firmware do so only optionally. This includes r8169, the driver for
the Realtek gigabit NICs found on many x86 motherboards.
This kernel is considerably larger than 4.9.10, and we build more
of it (including drivers that would previously get stripped away by
the deblob script, such as r8169), so to accommodate that, Fiwix
initrd size is increased by 64MiB, while lowering kexec space by
the same amount to ensure enough userspace memory available in Fiwix.
Fiwix's maximum open file count is also bumped from 1.5K to 2.5K.
The Documentation folder is deleted before build, to further save
space in the ramdisk.
2024-02-16 11:58:27 +00:00
|
|
|
+ osvers="4.14.336" ;;
|
2022-03-07 07:58:20 +00:00
|
|
|
?X: HP-UX uname -a gives something like
|
|
|
|
?X: HP-UX foobar B.10.20 A 9000/735 2016483812 two-user license
|
|
|
|
?X: Preserve the full 10.20 string instead of the previous plain '10'.
|