]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Pass build script arguments to ninja
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 24 Jan 2021 14:13:02 +0000 (14:13 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 24 Jan 2021 14:13:02 +0000 (14:13 +0000)
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.

mkosi.build

index 0fa0f0aa17d971802e02238e43c2c03e661fe8a9..f28c2892c3d327a4070c2eae0595ef31d36ce0a3 100755 (executable)
@@ -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