Commit Graph

975 Commits

Author SHA1 Message Date
Andrius Štikonas abb46a27b3 Update to mes-0.25. 2023-11-14 00:37:11 +00:00
Andrius Štikonas aae7c4a672 Update stage0-posix to 1.6.0 2023-11-12 20:31:17 +00:00
fosslinux 7747e86834
Merge pull request #325 from nanonyme/python2.5
Fix Python 2.5.6 for parallel pgen invocation
2023-11-07 23:44:31 +00:00
Seppo Yli-Olli f9ed2d7a42 Fix Python 2.5.6 for parallel pgen invocation
Backported from 9828b56347.patch
2023-11-07 09:08:34 +02:00
fosslinux 47feb75b08 Move to a different HTTP source for pkg-config 2023-11-07 10:54:13 +11:00
Andrius Štikonas 493ddfa829 Fix a typo.
Closes #318
2023-08-20 01:43:13 +01:00
fosslinux 80e65b7c23
Merge pull request #315 from ajherchenroder/Add-dev-nodes-to-sysc
Add dev nodes to sysc
2023-08-09 22:23:04 +00:00
ajherchenroder 7be4933ab1 Update after.sh to add dev nodes for 3 disks and 3 NVME drives with 3 partitions each.
Update after.sh to add dev nodes for 3 disks and 3 NVME drives with 3 partitions each
fix HD and NVME device major and minor numbers add cd drive
correct indentation
2023-08-09 08:23:35 -04:00
fosslinux fd9e8d547f
Merge pull request #314 from pder/gcc-13-disable-ssp
gcc 13.1.0: don't enable default ssp or pie
2023-07-29 00:21:28 +00:00
Paul Dersey 184535e2df gcc 13.1.0: don't enable default ssp or pie and remove libssp_nonshared.patch 2023-07-24 10:08:26 -04:00
fosslinux 46d80b8605
Merge pull request #313 from stikonas/meslibc+tcc
Build libc+tcc with mes rather than mes-m2.
2023-07-24 06:29:36 +00:00
Andrius Štikonas 10fd92f9c7 Build libc+tcc with mes rather than mes-m2. 2023-07-23 17:03:32 +01:00
Andrius Štikonas 8d96234d22
Merge pull request #311 from doraskayo/missing-dev-nodes
Mount a few missing device nodes in chroot bootstrap modes
2023-07-16 20:55:40 +01:00
Dor Askayo 2227a2053a Mount a few missing device nodes in chroot bootstrap modes
The gap between the chroot and non-chroot bootstrap modes started in,
7ecad37 because BuildStream's sandbox was missing some device nodes.

With the latest version of buildbox-run-bubblewrap, a few of the
missing devices were made available to BuildStream's sandbox and
there is no longer a need to keep this gap. In fact, compatibilty
with newer BuildStream versions now requires these devices to be
present.

This change also partially reverts d0a5221, which had to remove
/dev/ptmx as a consequence of the aforementioned gap.
2023-07-16 01:41:01 +03:00
Andrius Štikonas b3ffe8bb19
Merge pull request #310 from doraskayo/avoid-variable-export-2
Avoid exporting variables
2023-07-14 20:05:27 +01:00
Andrius Štikonas 9638a796e9
Merge pull request #309 from doraskayo/clean-run-env 2023-07-14 08:52:59 +01:00
Dor Askayo 7123b48876 Use "declare -x" to export variables in openssl-1.1.1l.sh
This avoid polluting the environment of every package build that
follows.
2023-07-14 09:57:18 +03:00
Dor Askayo 5b058a2b81 Use "declare -x" to export variables in autogen-5.18.16
Using the "declare -x" build-in instead of "export" allows variables
to be exported only to child processes that are executed in the scope
of the function in which the variables are declared, including nested
function calls.

This avoid polluting the environment of every package build that
follows.
2023-07-14 09:57:18 +03:00
Dor Askayo 6276da59cd Avoid exporting base_dir in linux-headers-5.10.41
It's not expected to be used by child processes.
2023-07-14 09:57:18 +03:00
Dor Askayo 1026440104 Avoid exporting the DISK variable
It's not expected to be used by child processes.
2023-07-14 09:57:18 +03:00
Dor Askayo 3da50962fd Run run.sh with a clean environment
All expected environment variables are passed through the .env file.
Any other variable passed from /init and the environment in which it
is executed only "pollutes" the build environment.

No change in package hashes.
2023-07-13 20:56:36 +03:00
Dor Askayo b58c513e8f Define PATH in the sysb .env file 2023-07-13 20:56:36 +03:00
Dor Askayo 3479d65f58 Remove unnecessary definition of environment variables
These are already made available to run2.sh through the .env file.
2023-07-13 18:42:56 +03:00
Dor Askayo 5899991961 Avoid defining environment variables twice
No change in behavior.
2023-07-13 18:42:56 +03:00
fosslinux 49a2676551
Merge pull request #308 from rick-masters/fix-collect2-faults-with-new-fiwix
Update Fiwix to v1.4.0-lb3 to pull in timestamp improvements
2023-07-07 23:21:08 +00:00
rick-masters 5e5f309db7 Update Fiwix to v1.4.0-lb3 to pull in timestamp improvements and other fixes. 2023-07-06 23:29:37 +00:00
Andrius Štikonas 83013cea5e
Merge pull request #305 from pder/bare-metal-no-serial-console
Boot Fiwix and Linux without serial console on bare metal
2023-06-25 14:01:19 +01:00
Paul Dersey 5b9fd08dc0 Don't use serial console with bare metal option and user provided kernel 2023-06-19 09:24:55 -04:00
Paul Dersey c61b4afd8a Boot Fiwix and Linux without serial console on bare metal 2023-06-15 11:18:51 -04:00
Andrius Štikonas 7a31257eaa
Merge pull request #302 from eduardosm/reuse-cleanup
Clean up reuse information of files that do not exist any longer
2023-06-13 19:44:58 +01:00
Eduardo Sánchez Muñoz d75114d4a4 Clean up reuse information of files that do not exist any longer 2023-06-13 18:03:23 +02:00
fosslinux 48df095226
Merge pull request #301 from stikonas/musl-1.2.4
Update to musl 1.2.4.
2023-06-13 08:03:24 +00:00
Andrius Štikonas 914b84377a Update to musl 1.2.4. 2023-06-12 19:31:30 +01:00
Andrius Štikonas f531e1cc5f Remove -nostdlib when linking mes. 2023-06-09 23:22:30 +01:00
fosslinux e3a2ca1b3f
Merge pull request #299 from pder/gzip-regen-crc
gzip: Regenerate crc table in util.c using makecrc
2023-06-06 07:49:32 +00:00
Paul Dersey 247b2a2a89 gzip: Regenerate crc table in util.c using makecrc 2023-06-05 10:50:57 -04:00
Paul Dersey 87601931b2 Write simple-patch binary to ${bindir} and remove hard coded paths 2023-06-05 10:50:57 -04:00
fosslinux 82f2204f91
Merge pull request #298 from rick-masters/fix-baremetal-config
Generate bootstrap.cfg for bare metal.
2023-05-27 23:25:36 +00:00
rick-masters d2870cf17a Generate bootstrap.cfg for bare metal. 2023-05-26 12:16:06 +00:00
fosslinux 9dffcd7c8a
Merge pull request #296 from emilytrau/uniq-fopen
Backport `uniq` fopen patch
2023-05-22 21:38:00 +00:00
Emily Trau a8752029f6 Backport `uniq` fopen patch 2023-05-22 21:30:22 +10:00
Andrius Štikonas 87e9d7db9d
Merge pull request #295 from rick-masters/kernel-bootstrap-phase2-v1
Kernel bootstrap phase2 v1
2023-05-21 01:26:04 +01:00
rick-masters ef08891401 Convert file size to 32-bit type before writing. 2023-05-21 00:11:37 +00:00
rick-masters 1603b81602 Fix printf calls and use puts when possible. 2023-05-20 15:20:01 +00:00
rick-masters 0d4394aa0d Build kexec-linux later as a package for musl lib calls instead of asm. 2023-05-20 15:16:27 +00:00
Andrius Štikonas 26552a928f Increase disk size to 16G. 2023-05-20 12:46:22 +01:00
rick-masters 8604871997 Pull builder-hex0-x86-stage1 from updated stage0-posix and lint fixes. 2023-05-18 10:59:46 +00:00
rick-masters 68429917c0 Use code blocks and capitalize consistently and other improvements. 2023-05-18 10:58:53 +00:00
rick-masters 12026cb100 Document the new builder-hex0-x86 boot stages.
Describe the kernel bootstrap steps first to avoid confusion because
we do not actually start with the stage0-posix binary seeds if the default
kernel bootstrap option is used.
2023-05-10 17:21:16 +00:00
rick-masters a2fcf1ced9 Complete the kernel bootstrap by adding kexec of Linux from Fiwix.
A tiny bootloader bootstrap has been added to compile the builder-hex0 kernel from hex0 source.
The boot compiler is builder-hex0-x86-stage1.hex0 and builder-hex0-x86-stage1.bin.
The builder-hex0 kernel is now named builder-hex0-x86-stage2.hex0.
The inclusion of a binary seed resolves the problem with the previous strategy which used an
architecture-specific hex0 compiler.

If sysb detects a full disk (i.e. DISK=sda) it now partitions the disk unconditionally because
previously fdisk was reporting existing but empty partitions which resulted in no
parititions being created.

e2fsprogs is now built with --disable-tls because musl was built on Fiwix without full threading
support and mkfs.ext4 was crashing without disabling thread local storage.

kexec-linux writes the linux kernel and initramfs to a RAM drive on Fiwix which ensure
a pre-allocated contiguous memory block. The following is written to the ram drive:
a 32-bit number which is the size of the kernel in bytes, a 32-bit number which is the size
of the initramfs in bytes, followed by the Linux kernel image, followed by the initramfs.

kexec-fiwix invokes a sync syscall to ensure all writes are flushed to
the ram drive and then initiates the kexec by shutting down Fiwix with a reboot syscall.
Fiwix knows whether and how to perform the kexec based on kernel parameters passed to it.
2023-05-10 14:33:42 +00:00