Initial import: build and boot Everest Linux in QEMU
everest.sh builds Everest's signed packages in an Alpine container, publishes the base, extra and extra-src repositories, installs the system with glacier-bootstrap into an initramfs and boots it in QEMU. The image carries glacier, a toolchain and the repositories, and builds packages from source inside the VM. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
f687558b66
43 files changed
+2058
No files matched your search
@@ -0,0 +1,38 @@
|
||||
# A toolchain package: built for /usr, not PREFIX (see binutils). The
|
||||
# same configuration as Everest's binary gcc (scripts/container.sh),
|
||||
# whose runtime libraries are the separate gcc-libs package (base), so
|
||||
# they are left out here. --with-local-prefix: headers of extra's
|
||||
# packages, in /glacier/sys/links/include, are searched too.
|
||||
T=x86_64-everest-linux-musl
|
||||
|
||||
prepare() {
|
||||
cd gcc-16.2.0
|
||||
for p in gmp-6.3.0 mpfr-4.2.2 mpc-1.3.1 isl-0.24; do
|
||||
ln -s "../$p" "${p%%-*}"
|
||||
done
|
||||
# One libdir: x86_64 would otherwise put its libraries in lib64.
|
||||
sed -i 's,m64=../lib64,m64=../lib,' gcc/config/i386/t-linux64
|
||||
}
|
||||
|
||||
configure() {
|
||||
mkdir build && cd build
|
||||
../configure --prefix=/usr --build=$T --host=$T --target=$T \
|
||||
--enable-languages=c,c++ --disable-multilib --disable-bootstrap \
|
||||
--disable-nls --disable-libsanitizer --disable-libssp \
|
||||
--disable-symvers --enable-default-pie --enable-default-ssp \
|
||||
--enable-shared --enable-threads=posix --enable-__cxa_atexit \
|
||||
--enable-checking=release --with-system-zlib \
|
||||
--with-local-prefix=/glacier/sys/links \
|
||||
--with-pkgversion="Everest"
|
||||
}
|
||||
|
||||
compile() { make; }
|
||||
|
||||
package() {
|
||||
make DESTDIR="$DESTDIR" install-strip
|
||||
rm -f "$DESTDIR/usr/share/info/dir"
|
||||
# POSIX's name for the C compiler: plain Makefiles (zstd's) call cc.
|
||||
ln -s gcc "$DESTDIR/usr/bin/cc"
|
||||
# gcc-libs' files (libcc1, GDB's plugin, stays here)
|
||||
find "$DESTDIR/usr/lib" -maxdepth 1 -name 'lib*.so.*' ! -name '*.py' ! -name 'libcc1.*' -delete
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
NAME = "gcc";
|
||||
VER = "16.2.0";
|
||||
REPO = "extra";
|
||||
DESC = "The GNU C and C++ compilers";
|
||||
MAINT = "liamwaldron@everestlinux.org";
|
||||
COPYRIGHT = "GPL-3.0-or-later";
|
||||
# gmp, mpfr, mpc and isl are built into gcc; their hashes match the
|
||||
# sha512s in gcc's own contrib/prerequisites.sha512.
|
||||
SOURCES = (
|
||||
{ URL = "https://ftp.gnu.org/gnu/gcc/gcc-16.2.0/gcc-16.2.0.tar.xz";
|
||||
SHA256 = "sha256:e6738e29597f733270731aa90600f37ffdc045079dfc27ec7e8192cc81085c3e"; },
|
||||
{ URL = "https://gcc.gnu.org/pub/gcc/infrastructure/gmp-6.3.0.tar.bz2";
|
||||
SHA256 = "sha256:ac28211a7cfb609bae2e2c8d6058d66c8fe96434f740cf6fe2e47b000d1c20cb"; },
|
||||
{ URL = "https://gcc.gnu.org/pub/gcc/infrastructure/mpfr-4.2.2.tar.bz2";
|
||||
SHA256 = "sha256:9ad62c7dc910303cd384ff8f1f4767a655124980bb6d8650fe62c815a231bb7b"; },
|
||||
{ URL = "https://gcc.gnu.org/pub/gcc/infrastructure/mpc-1.3.1.tar.gz";
|
||||
SHA256 = "sha256:ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8"; },
|
||||
{ URL = "https://gcc.gnu.org/pub/gcc/infrastructure/isl-0.24.tar.bz2";
|
||||
SHA256 = "sha256:fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"; }
|
||||
);
|
||||
BUILD = "hooks";
|
||||
DEPS = ( { NAME = "musl"; VER = "1.2.5"; }, { NAME = "gcc-libs"; VER = "16.2.0"; },
|
||||
{ NAME = "binutils"; VER = "2.47.0"; }, { NAME = "zlib"; VER = "1.3.2"; } );
|
||||
Reference in new issue
Block a user