From patchwork Mon Mar 9 18:35:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Unai Martinez Corral X-Patchwork-Id: 11427749 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3210A92A for ; Mon, 9 Mar 2020 18:36:27 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C100A20848 for ; Mon, 9 Mar 2020 18:36:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C100A20848 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ehu.eus Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:47886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBNGL-00021J-IB for patchwork-qemu-devel@patchwork.kernel.org; Mon, 09 Mar 2020 14:36:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41794) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBNFV-00014V-DV for qemu-devel@nongnu.org; Mon, 09 Mar 2020 14:35:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jBNFT-0002np-0K for qemu-devel@nongnu.org; Mon, 09 Mar 2020 14:35:32 -0400 Received: from smtp.lg.ehu.es ([158.227.0.66]:28613 helo=smtp.ehu.eus) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jBNFS-0002kw-L5 for qemu-devel@nongnu.org; Mon, 09 Mar 2020 14:35:30 -0400 Received: from imsva2.lgp.ehu.es (imsva2.lgp.ehu.es [10.0.3.246]) by postfix.smtp2.imsva2 (Postfix) with ESMTPS id 2D2AB64BB; Mon, 9 Mar 2020 19:35:28 +0100 (CET) Received: from imsva2.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E247B5A04F; Mon, 9 Mar 2020 19:35:27 +0100 (CET) Received: from imsva2.lgp.ehu.es (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D6E945A045; Mon, 9 Mar 2020 19:35:27 +0100 (CET) Received: from smtp.ehu.eus (unknown [10.0.100.76]) by imsva2.lgp.ehu.es (Postfix) with ESMTPS; Mon, 9 Mar 2020 19:35:27 +0100 (CET) Received: from 669c1c222ef4 (static.187.0.0.81.ibercom.com [81.0.0.187]) by smtp2 (Postfix) with ESMTPSA id 881BC64BB; Mon, 9 Mar 2020 19:35:27 +0100 (CET) Date: Mon, 9 Mar 2020 18:35:21 +0000 From: Unai Martinez-Corral To: qemu-devel@nongnu.org Subject: [PATCH v9 0/9] qemu-binfmt-conf.sh Message-ID: <20200309183521.GA9@669c1c222ef4> MIME-Version: 1.0 Content-Disposition: inline X-Greylist: ACL 191 matched, not delayed by milter-greylist-4.6.2 (smtp2 [10.0.100.76]); Mon, 09 Mar 2020 19:35:27 +0100 (CET) X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1631-8.5.0.1020-25280.001 X-TM-AS-Result: No--2.672-7.0-31-10 X-imss-scan-details: No--2.672-7.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1631-8.5.1020-25280.001 X-TMASE-Result: 10--2.672000-10.000000 X-TMASE-MatchedRID: usi4SaTpQZPr0qGBvdXjxLmQWToO0X1/V0QSZ/pNFUFV1lQ/Hn0TOiiq snPUKvF6alU0i33F6RBSCsh9ot3/DqVIsznpoCaYEhGH3CRdKUWpZoxavGZhjoASWMYnDi+T8xf 51HO7e/Wd4idtc2EO8iGbZZp+472ZbI6WQV23HWr4GlcsEXGVMHEONw67gSVcdzLikT92GFEfKF 3OCkQ3ow10tp2psQ1EEvsg7x5dWvFis7UoQ0MxblD5LQ3Tl9H7ZB/U2HvdblH5+tteD5RzhYmUy BBpbWbNmfJeSkrv0+ptu21XpQLmylZNzl1kt5fHSZJFFtJz2zdQdXu/xf76uWj1Mp3lJlelo8WM kQWv6iXGlDvsLUDW2o6HM5rqDwqtBrZu7K+h8NMIPJz6qFJY8zcObSelLVnROty5L5xQa9XVbwa sBExIvaR4827cGaF1DywDxeqQFeO/40RDFdhmE0LhSllS9Q3DK3Ek+KkQM4zmzj3HTjdouUc/AF p917cRrOvT9wALXjAF64gMSa2c/g== X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0-0 X-Greylist: Sender IP whitelisted, Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (postfix.smtp2.imsva2 [10.0.100.76]); Mon, 09 Mar 2020 19:35:28 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 158.227.0.66 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: riku.voipio@iki.fi, laurent@vivier.eu Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" Hi, This series reworks qemu-binfmt-conf.sh: * Argument from option '--systemd' is generalized to , and it is accepted for any mode (default, debian or systemd). It can be a single target arch or a list of them. * Option '-r|--clear' is added, which allows to remove an already registered target interpreter or a list of them. The implementation is functional but partial. Please, see the corresponding commit. * Option '-t|--test' is added, which allows to execute the CHECK according to the provided arguments, but no interpreter is configured. * Support to set options through environment variables: QEMU_TARGETS, QEMU_PATH, QEMU_SUFFIX, QEMU_PERSISTENT, QEMU_CREDENTIAL, QEMU_CLEAR and QEMU_TEST. The following changes are not backward compatible: * Option '--persistent' no longer requires/accepts an argument. * Option '--credential' no longer requires/accepts an argument. * Option '--systemd' no longer requires/accepts an argument. * Option '--qemu-path' is renamed to '--path'. * Option '--qemu-suffix' is renamed to '--suffix'. The functionality of all of them is untouched. Changes are related to syntax only. v9 * Make style coherent with the dominant pattern v8: * Fix typos and address review comments v7: * Check that a interpreter exists before trying to remove it. v6: * Don't need to use "find". * Put the ";;" at the same position. * Set BINFMT_CLEAR to ':', to allow --test to work with --clear. * Do not show DEBIANDIR and SYSTEMDDIR in the Env-variable column. Based on: * [PATCH v5 0/10] qemu-binfmt-conf.sh * should have been [PATCH v5 0/9] qemu-binfmt-conf.sh * [PATCH v4 0/10] qemu-binfmt-conf.sh * [PATCH v3 0/10] qemu-binfmt-conf.sh * [PATCH v2] qemu-binfmt-conf.sh: add CPUS, add --reset, make -p and -c boolean (no arg) * [PATCH] qemu-binfmt-conf.sh: add CPUS, add --reset, make -p and -c boolean (no arg) * scripts/qemu-binfmt-conf.sh: allow clearing of entries Regards Unai Martinez-Corral (9): qemu-binfmt-conf.sh: enforce safe style consistency qemu-binfmt-conf.sh: make opts -p and -c boolean qemu-binfmt-conf.sh: add QEMU_CREDENTIAL and QEMU_PERSISTENT qemu-binfmt-conf.sh: use the same presentation format as for qemu-* qemu-binfmt-conf.sh: remove 'qemu' prefix from cli options qemu-binfmt-conf.sh: honour QEMU_PATH and/or QEMU_SUFFIX qemu-binfmt-conf.sh: generalize to positional TARGETS qemu-binfmt-conf.sh: add option --clear qemu-binfmt-conf.sh: add --test scripts/qemu-binfmt-conf.sh | 221 1 file changed, 138 insertions(+), 83 deletions(-i)