add '--targets' option to qemu-binfmt-conf.sh
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
I'd like to ask for the addition of option '--targets' to scripts/
qemu-binfmt-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/qemu-
index b5a1674..be4a19b 100644
--- a/qemu-
+++ b/qemu-
@@ -170,6 +170,7 @@ usage() {
Usage: qemu-binfmt-conf.sh [--qemu-path PATH][-
+ [--targets TARGETS]
Configure binfmt_misc to use qemu interpreter
@@ -189,6 +190,8 @@ Usage: qemu-binfmt-conf.sh [--qemu-path PATH][-
+ --targets: comma-separated list of targets. If provided, only
+ the targets in the list are registered.
To import templates with update-binfmts, use :
@@ -324,7 +327,7 @@ CREDENTIAL=no
PERSISTENT=no
QEMU_SUFFIX=""
-options=$(getopt -o ds:Q:S:e:hc:p: -l debian,
+options=$(getopt -o ds:Q:S:e:hc:p:t: -l debian,
eval set -- "$options"
while true ; do
@@ -380,6 +383,10 @@ while true ; do
shift
;;
+ -t|--targets)
+ shift
+ qemu_target_
+ ;;
*)
break
;;
--
2.20.1
On 22/02/2019 04:31, Launchpad Bug Tracker wrote:
> I'd like to ask for the addition of option '--targets' to scripts/qemu-
> binfmt-conf.sh, in order to allow registering the interpreters for the
> given list of architectures only, instead of using all of the ones
> defined in qemu_target_list. The following is a possible patch that
> implements it:
>
> qemu-binfmt-conf.sh | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
Please send your patch to the qemu-devel mailing list.
I think it's a good idea but we should homogenize "--debian" and
"--systemd": remove the parameter from "--systemd" to generate by
default all the targets, and allow the user to provide a subset of the
targets using the newly introduced "--target" parameter.
Thanks,
Laurent