From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.mars-solutions.de ([213.239.212.107]) by metis.ext.pengutronix.de with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hhzco-0006ik-2Y for ptxdist@pengutronix.de; Mon, 01 Jul 2019 18:57:54 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.mars-solutions.de (Postfix) with ESMTP id 92D284F43462 for ; Mon, 1 Jul 2019 18:57:53 +0200 (CEST) Received: from mail.mars-solutions.de ([127.0.0.1]) by localhost (mars-solutions.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eKTUdCJhndwn for ; Mon, 1 Jul 2019 18:57:53 +0200 (CEST) Received: from ws-apr-old.office.loc (ipbcc2a7fd.dynamic.kabel-deutschland.de [188.194.167.253]) by mail.mars-solutions.de (Postfix) with ESMTPA id 68FC54F43462 for ; Mon, 1 Jul 2019 18:57:53 +0200 (CEST) From: Andreas Pretzsch Date: Mon, 1 Jul 2019 18:57:53 +0200 Message-Id: <1562000273-13003-1-git-send-email-apr@cn-eng.de> In-Reply-To: <1559322118-9072-1-git-send-email-apr@cn-eng.de> References: <1559322118-9072-1-git-send-email-apr@cn-eng.de> Subject: [ptxdist] [PATCH v2] rauc: select on-target tools depending on bootloader List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de RAUC relies on tools on the target to interact with the bootloader. As the bootloader selection is not part of ptxconfig, but platformconfig, have the user select the bootloader used on the target. Based on this, auto-select the appropriate package: barebox: dt-utils (barebox-state) U-Boot: u-boot-tools (fw_printenv, fw_setenv) EFI: efibootmgr (efibootmgr) Regarding GRUB support, grub-editenv from GRUB2 is required. Currently, there is no "GRUB2" package in ptxdist, so no active option for it. Signed-off-by: Andreas Pretzsch --- Changes v1->v2: - add "if RUNTIME", as these are runtime dependencies - reorder down to the other runtime dependencies - omit RAUC_GRUB (no GRUB2 in ptxdist), but keep as comment - do not use choice, but single selections Reason for single selections: Beside possible use cases where no specific bootloader support at all is desired, symbols might be used later for other decisions, even with multi-bootloader support. rules/rauc.in | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/rules/rauc.in b/rules/rauc.in index 213a1211e..3c5f64b00 100644 --- a/rules/rauc.in +++ b/rules/rauc.in @@ -14,6 +14,10 @@ menuconfig RAUC select JSON_GLIB if RAUC_JSON select SQUASHFS_TOOLS if RUNTIME select SQUASHFS_TOOLS_UNSQUASHFS if RUNTIME + select DT_UTILS if RUNTIME && RAUC_BAREBOX + select U_BOOT_TOOLS if RUNTIME && RAUC_U_BOOT + #select GRUB2 if RUNTIME && RAUC_GRUB + select EFIBOOTMGR if RUNTIME && RAUC_EFI help Robust Auto-Update Controller. RAUC controls the update process on embedded linux systems. @@ -78,4 +82,29 @@ config RAUC_BUNDLE_VERSION endif +config RAUC_BAREBOX + bool "barebox support" + help + To interact with barebox, barebox-state from dt-utils is used. + Auto-select this package for installation on the target. +config RAUC_U_BOOT + bool "U-Boot support" + help + To interact with U-Boot, fw_printenv and fw_setenv from + u-boot-tools are used. + Auto-select this package for installation on the target. +# Currently, there is no "GRUB2" package in ptxdist. Even with depends +# on BROKEN, ptxdist will complain about undefined symbol GRUB2. +# Still, keep this as reference, to have a complete bootloader list. +#config RAUC_GRUB +# bool "GRUB support" +# help +# To interact with GRUB2, grub-editenv from grub is used. +# Auto-select this package for installation on the target. +config RAUC_EFI + bool "EFI support" + help + To interact with EFI, efibootmgr from efibootmgr is used. + Auto-select this package for installation on the target. + endif -- 2.19.1 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de