Commit graph

51 commits

Author SHA1 Message Date
rick-masters
ecf99ab08b Implement kernel bootstrap up to building Linux. 2023-03-31 18:08:50 +00:00
Paul Dersey
c67306cfde Update mes to version 0.24.2
A rebuild of mes libc is required after building tcc 0.9.27 for the
first time.
2023-02-21 15:24:14 -05:00
fosslinux
eb607794cd Clean up TCC buildcode
It was unstandard & some files were not correctly in DESTDIR
2023-02-06 16:58:10 +11:00
Dor Askayo
59a13f0d09 Add LIBDIR variable for the musl library directory
LIBDIR should be used where possible to avoid unnecessary
duplication in build scripts that target the musl toolchain.

No change in package hashes.
2023-01-29 00:09:38 +02:00
Andrius Štikonas
20c2d4c36e Build tcc 0.9.27 immediately after tcc 0.9.26. 2022-12-25 01:49:54 +00:00
Andrius Štikonas
70b43cb63c Update to mes 0.24.1 2022-10-17 09:58:03 +02:00
fosslinux
10a55522a2 Change sources getting method.
- Rather than defining the urls where they are gotten (python sysa,
  python sysc, inside sysc), a spec file is now used that is easily
  interpretable and tool-independent.
- This is interpreted by rootfs.py and inside sysc.
- This is also used to make sources available and extract sources.
- Manual dirname selection is no longer required as is tarball renaming
  upon download - all of this is handled automatically.

Fixes #188
2022-10-02 09:48:20 +11:00
Dor Askayo
653f31b59f Add support for --update-checksums in early bootstrap
This allows creating *.checksums files instead of checking against
them when UPDATE_CHECKSUMS is set to True in bootstrap.cfg.

The checksums are also copied to /usr/src so they can be accessed
easily after the bootstrap completes.
2022-05-21 20:51:41 +03:00
Dor Askayo
18fa642100 Rename checksums to ${pkg}.checksums 2022-05-21 02:34:23 +03:00
Andrius Štikonas
6c4b98a17a Some shellcheck fixes. 2022-05-09 22:53:46 +01:00
Andrius Štikonas
424aa5be38 Move from mes-m2 to mes-0.24. 2022-05-05 23:59:52 +01:00
fosslinux
f1600467a7 Variety of improvements
- Rename sources to distfiles for clarity.
- Per sys(a/c) distfiles to reduce rootfs.py processing and reduce RAM
  usage in sysa.
- Canonicalise early kaem mes/tcc files to kaem script conventions.
- Cleanup unused setup in python.
2022-05-05 17:44:47 +10:00
Andrius Štikonas
5b032cb46c rootfs.py refactoring.
Switch to bzip2 packages
Move most of the preprocessing done by rootfs.py
into kaem and bash scripts inside live-bootstrap.
2022-04-21 00:49:56 +01:00
fosslinux
b760b3eb2b Final fixes:
- All QEMU reproducibility issues resolved
- Added SPDX licensing
- Couple other small issues
- Fix guile reproducbility
2022-03-12 16:24:25 +11:00
fosslinux
9543a47f1b Fix up checksums + other fixes 2022-03-12 16:23:24 +11:00
fosslinux
a343dcf6ed Add new tarball-based checksums to all packages 2022-03-07 19:02:12 +11:00
fosslinux
b8ef19150c Fix various things to use ${DESTDIR} 2022-03-07 19:02:12 +11:00
Dor Askayo
206a31fa4c Use the -f flag in gunzip and bunzip2
It allows unpacking hardlinked archives.
2022-01-17 14:05:16 +02:00
fosslinux
b93a931a53 Move to /usr prefix.
- This is much more standard and replaces /image in sysa and is the
  standard in sysc (avoids many issues).
- GCC needs to have a file created for some unknown reason.
- Checksums updated.
2021-08-27 14:54:08 +10:00
Andrius Štikonas
c8784cbcd3 Split installed files out of /after into /image. 2021-06-29 17:49:34 +01:00
Andrius Štikonas
826ff62300 Remove mes-libc submodule. 2021-06-21 22:40:48 +01:00
Andrius Štikonas
ff6d9e5c08 Get rid of mkbuild. 2021-06-20 23:58:04 +01:00
Andrius Štikonas
952ae49590 Fix DESTDIR variable. 2021-05-25 23:05:04 +01:00
Andrius Štikonas
a2c5745da4 helpers.sh: Add a helper function to call appropriate default stage function. 2021-05-03 23:48:06 +01:00
Andrius Štikonas
3dfe3dc0f0 Split mes libc into a separate source package.
Drop one of the mes git submodules.
2021-04-18 13:13:44 +01:00
Andrius Štikonas
419cd74d92 Move tcc 0.9.27 after bzip2.
This also allows to merge two builds of tcc 0.9.27.
Drop tcc 0.9.27 git submodule.
2021-04-17 01:29:31 +01:00
Andrius Štikonas
f030a3a74e Add untar.c 2021-04-17 01:29:31 +01:00
Andrius Štikonas
713fd9143f Port rootfs.sh to Python 2021-04-11 00:06:24 +01:00
Andrius Štikonas
70d1fc4163 Add support for DESTDIR variable in make install. 2021-04-02 12:24:40 +01:00
Andrius Štikonas
aa31fbc95b Patch tcc to ignore static inside array. 2021-03-31 18:14:01 +01:00
Andrius Štikonas
30ebe8ccba Install musl headers directly into /after/include. 2021-03-20 23:29:51 +00:00
Andrius Štikonas
1aeb4c11f7 Get rid of tcc-mes. 2021-03-20 23:20:25 +00:00
Andrius Štikonas
7a4ca8e634 Rebuild tcc against new musl. 2021-03-03 20:36:12 +00:00
Andrius Štikonas
7e9054570e Add cp to coreutils checksums and use cp to unpack tcc sources. 2021-02-21 12:24:05 +00:00
Paul Dersey
7803089a6b Build and install cp from coreutils to replace our minimal cp
Also update tcc-musl.sh to take advantage that cp can now copy
recursively
2021-02-21 12:24:05 +00:00
Paul Dersey
756ba1702b Rebuild musl libc after building tcc-musl, and then rebuild tcc-musl
This fixes an issue with printf not printing doubles or floats
correctly, and probably other subtle issues.

tcc-musl also uses floats extensively, so rebuild it as well, to fix
some other potential issues.

Update checksums for all resulting binaries which have now changed.

Co-authored-by: fosslinux <fosslinux@aussies.space>
2021-02-21 22:25:41 +11:00
fosslinux
77ccf06efc Implement sha256summing in bash build harness
1. Adds sha256sum stage to the bash build harness.
2. Adds a third argument to build(), the checksum file name. This is
   used where there is more than one checksum file, most notably
   in multi-stage compilations.
3. Adds checksum files to all remaining programs.
4. Adds appropriate 3rd argument where needed (coreutils, tcc-musl,
   bison).
2021-02-20 10:52:54 +11:00
fosslinux
8724c94d20 Implement sha256summing for all remaining kaem scripts 2021-02-20 10:52:54 +11:00
fosslinux
372e08e4f9 Implement fletcher16 checksumming up to path
Uses fletcher16 from previous commits.
Next we will use sha-2 to do checksumming.
2021-02-20 10:52:54 +11:00
fosslinux
72b1b30c9b Comply with REUSE 3.0 2021-02-08 20:00:10 +11:00
fosslinux
e9c8313458
Merge pull request #26 from stikonas/musl
Musl
2021-02-04 21:40:08 +11:00
Andrius Štikonas
e0fba919a2 Build tcc-musl. 2021-02-04 08:35:50 +00:00
fosslinux
f7ea086630 Add patch headers
Also cleanup the flex patch a bit
2021-02-04 16:43:20 +11:00
Paul Dersey
b929dc84b4 Fix mes-libc crt1 to allow commands with greater than 255 arguments to run
Also reverse order of tcc-patched and mes-libc-patched stages.
2021-02-03 13:40:56 -05:00
fosslinux
9961c4b75f Remove sources/ directory 2021-01-31 21:12:53 +11:00
Paul Dersey
7c90d5bf4c Add new step mes-libc-patched 2021-01-29 16:43:01 -05:00
Paul Dersey
85ead5582e tcc-0.9.27: move code to compile libc into separate kaem script 2021-01-29 16:37:01 -05:00
fosslinux
5a369dc783 Restructure 2021-01-20 15:24:37 +11:00
fosslinux
90cd17e453 Revert "Revert "Add tcc 0.9.27""
This reverts commit 238bd677d7.

We can just specifiy -static manually.
2021-01-11 10:40:25 +11:00
fosslinux
238bd677d7 Revert "Add tcc 0.9.27"
This reverts commit 1ebbd69c79.

This requruies sed first to make a modification.
2021-01-11 10:33:09 +11:00