]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Use mkosi.tools.conf for tools tree configuration
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 1 Apr 2025 11:25:47 +0000 (13:25 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 2 Apr 2025 08:34:01 +0000 (10:34 +0200)
This allows us to use the regular settings instead of having to bother
with ToolsTreeXXX variants. It'll also allow us to share configuration
between the regular images and the tools tree image, which we'll make
use of in the next commit.

14 files changed:
mkosi.conf.d/tools/mkosi.conf.d/centos-fedora.conf [deleted file]
mkosi.conf.d/tools/mkosi.conf.d/debian-ubuntu.conf [deleted file]
mkosi.conf.d/ubuntu/mkosi.conf.d/non-x86.conf
mkosi.conf.d/ubuntu/mkosi.conf.d/x86.conf
mkosi.tools.conf/mkosi.conf [moved from mkosi.conf.d/tools/mkosi.conf with 70% similarity]
mkosi.tools.conf/mkosi.conf.d/arch.conf [moved from mkosi.conf.d/tools/mkosi.conf.d/arch.conf with 53% similarity]
mkosi.tools.conf/mkosi.conf.d/centos-fedora.conf [new file with mode: 0644]
mkosi.tools.conf/mkosi.conf.d/debian-ubuntu.conf [new file with mode: 0644]
mkosi.tools.conf/mkosi.conf.d/fedora.conf [moved from mkosi.conf.d/tools/mkosi.conf.d/fedora.conf with 66% similarity]
mkosi.tools.conf/mkosi.conf.d/opensuse.conf [moved from mkosi.conf.d/tools/mkosi.conf.d/opensuse.conf with 51% similarity]
mkosi.tools.conf/mkosi.conf.d/ubuntu/mkosi.conf [moved from mkosi.conf.d/tools/mkosi.conf.d/ubuntu/mkosi.conf with 65% similarity]
mkosi.tools.conf/mkosi.conf.d/ubuntu/mkosi.conf.d/non-x86.conf [moved from mkosi.conf.d/tools/mkosi.conf.d/ubuntu/mkosi.conf.d/non-x86.conf with 51% similarity]
mkosi.tools.conf/mkosi.conf.d/ubuntu/mkosi.conf.d/x86.conf [moved from mkosi.conf.d/tools/mkosi.conf.d/ubuntu/mkosi.conf.d/x86.conf with 53% similarity]
test/integration-tests/README.md

diff --git a/mkosi.conf.d/tools/mkosi.conf.d/centos-fedora.conf b/mkosi.conf.d/tools/mkosi.conf.d/centos-fedora.conf
deleted file mode 100644 (file)
index 2645e6d..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-# SPDX-License-Identifier: LGPL-2.1-or-later
-
-[Match]
-ToolsTreeDistribution=|fedora
-ToolsTreeDistribution=|centos
-
-[Build]
-ToolsTreePrepareScripts=%D/mkosi.images/build/mkosi.conf.d/centos-fedora/mkosi.prepare
-ToolsTreePackages=
-        python3-mypy
-        rpm-build
diff --git a/mkosi.conf.d/tools/mkosi.conf.d/debian-ubuntu.conf b/mkosi.conf.d/tools/mkosi.conf.d/debian-ubuntu.conf
deleted file mode 100644 (file)
index b6715b5..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# SPDX-License-Identifier: LGPL-2.1-or-later
-
-[Match]
-ToolsTreeDistribution=|debian
-ToolsTreeDistribution=|ubuntu
-
-[Build]
-ToolsTreePrepareScripts=%D/mkosi.images/build/mkosi.conf.d/debian-ubuntu/mkosi.prepare
-ToolsTreePackages=
-        gh
-        lcov
-        mypy
-        shellcheck
index 8e0e3c0d7858339dc28b553eef0824724999abb1..255358967c8733bd3ad2446a00469f99e7029db8 100644 (file)
@@ -7,4 +7,4 @@ Architecture=!x86
 Release=noble
 
 [Build]
-SandboxTrees=noble-backports-ports.sources:/etc/apt/sources.list.d/noble-backports-ports.sources
+SandboxTrees=%D/mkosi.conf.d/ubuntu/noble-backports-ports.sources:/etc/apt/sources.list.d/noble-backports-ports.sources
index e0e96b2c1848c492bec7f2beb567e3700c0d5515..5463bd794a2b87426bc3b500089b5131bd8f928b 100644 (file)
@@ -7,4 +7,4 @@ Architecture=|x86
 Release=noble
 
 [Build]
-SandboxTrees=noble-backports.sources:/etc/apt/sources.list.d/noble-backports.sources
+SandboxTrees=%D/mkosi.conf.d/ubuntu/noble-backports.sources:/etc/apt/sources.list.d/noble-backports.sources
similarity index 70%
rename from mkosi.conf.d/tools/mkosi.conf
rename to mkosi.tools.conf/mkosi.conf
index adbbf98ebff02dc451bf026b41614ca82ef0ca93..a83e07a13e6b8877038ebf9f82f218a56b9fe415 100644 (file)
@@ -1,8 +1,8 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
-[Build]
-ToolsTreeSyncScripts=%D/mkosi.sync
-ToolsTreePackages=
+[Content]
+SyncScripts=%D/mkosi.sync
+Packages=
         gdb
         llvm
         meson # Also needed in the NO_BUILD case so we list it explicitly.
similarity index 53%
rename from mkosi.conf.d/tools/mkosi.conf.d/arch.conf
rename to mkosi.tools.conf/mkosi.conf.d/arch.conf
index 4de8b2bd5884c0cccc133f940d6d7fe2df37eebb..2ccbf7c192e8993ae298019fa2418c6bbaca5fd8 100644 (file)
@@ -1,11 +1,11 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
 [Match]
-ToolsTreeDistribution=arch
+Distribution=arch
 
-[Build]
-ToolsTreePrepareScripts=%D/mkosi.images/build/mkosi.conf.d/arch/mkosi.prepare
-ToolsTreePackages=
+[Content]
+PrepareScripts=%D/mkosi.images/build/mkosi.conf.d/arch/mkosi.prepare
+Packages=
         base-devel
         github-cli
         lcov
diff --git a/mkosi.tools.conf/mkosi.conf.d/centos-fedora.conf b/mkosi.tools.conf/mkosi.conf.d/centos-fedora.conf
new file mode 100644 (file)
index 0000000..b360b1d
--- /dev/null
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Distribution=|fedora
+Distribution=|centos
+
+[Content]
+PrepareScripts=%D/mkosi.images/build/mkosi.conf.d/centos-fedora/mkosi.prepare
+Packages=
+        python3-mypy
+        rpm-build
diff --git a/mkosi.tools.conf/mkosi.conf.d/debian-ubuntu.conf b/mkosi.tools.conf/mkosi.conf.d/debian-ubuntu.conf
new file mode 100644 (file)
index 0000000..2b962da
--- /dev/null
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Distribution=|debian
+Distribution=|ubuntu
+
+[Content]
+PrepareScripts=%D/mkosi.images/build/mkosi.conf.d/debian-ubuntu/mkosi.prepare
+Packages=
+        gh
+        lcov
+        mypy
+        shellcheck
similarity index 66%
rename from mkosi.conf.d/tools/mkosi.conf.d/fedora.conf
rename to mkosi.tools.conf/mkosi.conf.d/fedora.conf
index 66592b86ad435a300580b3befda456651f0fcfb2..e32cf27e986e9b3b4c4228f709c7250b9f69a5ff 100644 (file)
@@ -1,10 +1,10 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
 [Match]
-ToolsTreeDistribution=fedora
+Distribution=fedora
 
-[Build]
-ToolsTreePackages=
+[Content]
+Packages=
         lcov
         gh
         ruff
similarity index 51%
rename from mkosi.conf.d/tools/mkosi.conf.d/opensuse.conf
rename to mkosi.tools.conf/mkosi.conf.d/opensuse.conf
index b7af1419645f2f15bde67c3a77792a5fe3a6fe77..9e016bcfb27b6d9357545a714cc326435496aeda 100644 (file)
@@ -1,11 +1,11 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
 [Match]
-ToolsTreeDistribution=opensuse
+Distribution=opensuse
 
-[Build]
-ToolsTreePrepareScripts=%D/mkosi.images/build/mkosi.conf.d/opensuse/mkosi.prepare
-ToolsTreePackages=
+[Content]
+PrepareScripts=%D/mkosi.images/build/mkosi.conf.d/opensuse/mkosi.prepare
+Packages=
         gh
         lcov
         mypy
similarity index 65%
rename from mkosi.conf.d/tools/mkosi.conf.d/ubuntu/mkosi.conf
rename to mkosi.tools.conf/mkosi.conf.d/ubuntu/mkosi.conf
index 3078782ae302ff479cecbfb4491693168f1237f5..b9fd7bcf3420376b99193f4636f891a131bc3466 100644 (file)
@@ -1,4 +1,4 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
 [Match]
-ToolsTreeDistribution=ubuntu
+Distribution=ubuntu
similarity index 51%
rename from mkosi.conf.d/tools/mkosi.conf.d/ubuntu/mkosi.conf.d/non-x86.conf
rename to mkosi.tools.conf/mkosi.conf.d/ubuntu/mkosi.conf.d/non-x86.conf
index ac5676a90995be7eba429b542b2b6ee32b343a89..255358967c8733bd3ad2446a00469f99e7029db8 100644 (file)
@@ -4,7 +4,7 @@
 [Match]
 Architecture=!x86-64
 Architecture=!x86
-ToolsTreeRelease=noble
+Release=noble
 
 [Build]
-ToolsTreeSandboxTrees=%D/mkosi.conf.d/ubuntu/noble-backports-ports.sources:/etc/apt/sources.list.d/noble-backports-ports.sources
+SandboxTrees=%D/mkosi.conf.d/ubuntu/noble-backports-ports.sources:/etc/apt/sources.list.d/noble-backports-ports.sources
similarity index 53%
rename from mkosi.conf.d/tools/mkosi.conf.d/ubuntu/mkosi.conf.d/x86.conf
rename to mkosi.tools.conf/mkosi.conf.d/ubuntu/mkosi.conf.d/x86.conf
index ef4c494561b978956e4249c3fa6beb23e45d5f00..5463bd794a2b87426bc3b500089b5131bd8f928b 100644 (file)
@@ -4,7 +4,7 @@
 [Match]
 Architecture=|x86-64
 Architecture=|x86
-ToolsTreeRelease=noble
+Release=noble
 
 [Build]
-ToolsTreeSandboxTrees=%D/mkosi.conf.d/ubuntu/noble-backports.sources:/etc/apt/sources.list.d/noble-backports.sources
+SandboxTrees=%D/mkosi.conf.d/ubuntu/noble-backports.sources:/etc/apt/sources.list.d/noble-backports.sources
index 3f477dcba6dee355efbd2c2e05d8d03e5e467189..1314bf013106476d72b08b94a885ebf86adea1e4 100644 (file)
@@ -169,9 +169,9 @@ ToolsTree=
 
 On the other hand, if the rpms are available but not installed on the host
 system, you'll want to make sure they're installed into the mkosi tools tree so
-that they're used to build the image by using either
-`ToolsTreePackageDirectories=` or `ToolsTreeSandboxTrees=` similarly to
-`PackageDirectories=` or `SandboxTrees=` mentioned above.
+that they're used to build the image by again using either
+`PackageDirectories=` or `SandboxTrees=`, but this time in
+`mkosi.tools.conf/mkosi.local.conf` instead of `mkosi.local.conf`.
 
 Finally, we'll make use of the standalone mode of running the integration tests
 to avoid having to install any build dependencies.