Add systemd

This commit is contained in:
Denis Benato 2025-01-22 22:42:16 +01:00
parent 82093d1889
commit f43f6c2bb2
3 changed files with 37 additions and 0 deletions

1
.gitattributes vendored
View file

@ -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

View file

@ -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..."

Binary file not shown.