[libvirt PATCH 09/11] ci: helper: Accept --cross-arch argument

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This argument is accepted by all actions that use containers.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 ci/helper | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/ci/helper b/ci/helper
index 31e05c0e38..e39934d357 100755
--- a/ci/helper
+++ b/ci/helper
@@ -23,6 +23,10 @@ class Parser:
             "target",
             help="perform action on target OS",
         )
+        containerparser.add_argument(
+            "-x", "--cross-arch",
+            help="target architecture for cross-compiler",
+        )
         containerparser.add_argument(
             "--engine",
             choices=["auto", "podman", "docker"],
@@ -188,7 +192,13 @@ class Application:
 
     def _make_run_action(self, action):
         target = self._args.target
-        make_target = f"{action}@{target}"
+        cross = self._args.cross_arch
+
+        if cross:
+            make_target = f"{action}@{target}-cross-{cross}"
+        else:
+            make_target = f"{action}@{target}"
+
         self._make_run(make_target)
 
     def _lcitool_run(self, args):
-- 
2.26.3




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux