diff --git a/.gitattributes b/.gitattributes index fef60f3..d7f1bfa 100644 --- a/.gitattributes +++ b/.gitattributes @@ -40,3 +40,4 @@ sources/gawk-5.3.1.tar.xz filter=lfs diff=lfs merge=lfs -text sources/openssl-3.4.0.tar.gz filter=lfs diff=lfs merge=lfs -text sources/sed-4.9.tar.xz filter=lfs diff=lfs merge=lfs -text sources/tar-1.35.tar.xz filter=lfs diff=lfs merge=lfs -text +sources/systemd-257.2.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/build.sh b/build.sh index 9092627..7eb5666 100755 --- a/build.sh +++ b/build.sh @@ -1585,6 +1585,42 @@ if [ ! -f "$STEPS_DIR/libcap2" ]; then touch "$STEPS_DIR/libcap2" fi +# build systemd +if [ ! -f "$STEPS_DIR/systemd" ]; then + if [ ! -d "$TMP_BUILD_DIR/systemd" ]; then + tar -xf "$BASE_DIR/sources/systemd-257.2.tar.gz" + mv "systemd-257.2" "$TMP_BUILD_DIR/systemd" + fi + cd "$TMP_BUILD_DIR/systemd" + + LANG=en_US.UTF-8 \ + meson --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + -Dblkid=enabled \ + -Dbuildtype=release \ + -Ddefault-dnssec=no \ + -Dfirstboot=false \ + -Dinstall-tests=false \ + -Dkmod-path=/bin/kmod \ + -Dldconfig=false \ + -Dmount-path=/bin/mount \ + -Drootprefix= \ + -Drootlibdir=/lib \ + -Dsplit-usr=true \ + -Dsulogin-path=/sbin/sulogin \ + -Dsysusers=false \ + -Dumount-path=/bin/umount \ + -Db_lto=false \ + -Drpmmacrosdir=no \ + . --cross-file "$CROSS_TOOLS_DIR/meson_cross.txt" build-$TARGET_MACHINE_TRIPLET + + + cd "$BASE_DIR" + rm -rf "$TMP_BUILD_DIR/systemd" + #touch "$STEPS_DIR/systemd" +fi + for f in "$LFS"/usr/bin/*; do if "$READELF" -h $f | grep -Fq "Executable"; then echo "Stripping $f..." diff --git a/sources/systemd-257.2.tar.gz b/sources/systemd-257.2.tar.gz new file mode 100644 index 0000000..51cd810 Binary files /dev/null and b/sources/systemd-257.2.tar.gz differ