1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:37:35 +00:00

Meta: Improve build compatibility with non-GNU userspaces

We depend on GNU-specific du switch `--apparent-size`. Busybox has this
implemented, but as `-b` instead.
Another part of the build system uses `cp --preserve=timestamps`. This
can be replaced by `rsync -t`, and rsync is already used through the
file.

Thanks to those changes, Serenity can be built on a Busybox system,
without GNU coreutils.
This commit is contained in:
Dominique Liberda 2023-07-08 07:46:49 +02:00 committed by Linus Groh
parent fddbd11baa
commit d7644d1d86
6 changed files with 23 additions and 56 deletions

View file

@ -35,14 +35,6 @@ if [ -z $syslinux_dir ]; then
exit 1
fi
disk_usage() {
if [ "$(uname -s)" = "Darwin" ]; then
du -sm "$1" | cut -f1
else
du -sm --apparent-size "$1" | cut -f1
fi
}
DISK_SIZE=$(($(disk_usage "$SERENITY_SOURCE_DIR/Base") + $(disk_usage Root) + 300))
echo "setting up disk image..."