mkosi: Pass build script arguments to ninja

mkosi recently gained support to pass arguments to the build script.
Let's take advantage of this in systemd's build script to allow
passing which target to build to ninja in the build script.
This commit is contained in:
Daan De Meyer 2021-01-24 14:13:02 +00:00
parent 664e54b1bb
commit 5a89c7972a

View File

@ -97,7 +97,7 @@ if [ ! -f "$BUILDDIR"/build.ninja ] ; then
fi
cd "$BUILDDIR"
ninja
ninja $@
if [ "$WITH_TESTS" = 1 ] ; then
for id in 1 2 3; do
getent group $id > /dev/null || groupadd -g $id testgroup$id