From patchwork Thu Dec 5 09:42:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Titouan Christophe X-Patchwork-Id: 1204547 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=railnova.eu Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=railnova-eu.20150623.gappssmtp.com header.i=@railnova-eu.20150623.gappssmtp.com header.b="Ui3XeJsh"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47T9lL6g9rz9sNx for ; Thu, 5 Dec 2019 20:43:42 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id C50AD887FE; Thu, 5 Dec 2019 09:43:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vDdw1aey7lSx; Thu, 5 Dec 2019 09:43:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id CCB1588804; Thu, 5 Dec 2019 09:43:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 38FFA1BF3DD for ; Thu, 5 Dec 2019 09:43:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 34D422045A for ; Thu, 5 Dec 2019 09:43:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d51+RtdK0CKc for ; Thu, 5 Dec 2019 09:43:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by silver.osuosl.org (Postfix) with ESMTPS id 4B57120445 for ; Thu, 5 Dec 2019 09:43:36 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id g206so2881485wme.1 for ; Thu, 05 Dec 2019 01:43:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=railnova-eu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OKosf8/txHVObfWyentwN4O38ZuExCkhK1QFBhpLfcM=; b=Ui3XeJsht3LpQceDfu+kvEHhZwkZxh0XNi5RgUk6HWqK7CDhUSFQlgrG1achhaSwL8 TEqAukWXZqBtHWoTAkMqJ2i+9zhpDsDVko+w0F7Wst7f03pwc+5cRCK7CJY0AsOX2Jjl hvBMqL6QQ1ifrAcCkJJjcGc3Z8QTP5ugKN010uhwDEtFSPMeqqqr/iMWpAumfr1SWvll ukCTgchyPtYVboe8CD9U1OpBI/Hx3Y9ON9GqC0EYRne9N5AhuGu5D04ptkrv9qCA85w6 hb8t5nvRJtKjwbvd3rymLFgHrkHXgWnVbAWTcTl1zxx+waIwd9FSBRQnc+9FyDZz2YXG wTFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OKosf8/txHVObfWyentwN4O38ZuExCkhK1QFBhpLfcM=; b=RpRLUDvBoE8+IPyAkdoVoQWIYMq4vFg5Rs6FtjkrgGGazL1kkbc3a8h2bM5vfYLzMW WGSr2JoyZYZimoEOGmxL/9wmb6sq7UtSKY9SVYF7ZiLHpcLOtqQWsxB4mXtnmkKttl5X Uldqd0lMi+iEtz148m8k8Ezi1RL4ifGtyQMhbhv8ZQqxoSjszFE4axAlegf7iFxngZQ0 LYHLswJeuKgmpM8Y4EfUWb5d5AeX+HOU2rwulS+fC7gnC1tN6IpCaUe62vlYIOdBokiR HB3bCg1sRoJlTRAraOj/il5joBYDNUG85TrdBe8odSqhMKblWWspxdpVPz1dBlsAAcDy uJhA== X-Gm-Message-State: APjAAAXASwX0Ff6moKh83rwpMiKFcb9c8mdbK2F7KmKBPolMxU5OYl67 z0wlFscdT7V5kJI9L6J4YmjA8EiWcSilIg== X-Google-Smtp-Source: APXvYqxepbIAPbrY0/2g6grmtDMV4l4YMxckLupzlagvtEvvztp2flZoPMvQVVhVPOKKjjJTJ1gmwA== X-Received: by 2002:a1c:5451:: with SMTP id p17mr4090065wmi.57.1575539014274; Thu, 05 Dec 2019 01:43:34 -0800 (PST) Received: from localhost.localdomain ([2a02:a03f:3c93:3700:d60b:222d:1737:fd89]) by smtp.gmail.com with ESMTPSA id h2sm11968021wrt.45.2019.12.05.01.43.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2019 01:43:33 -0800 (PST) From: Titouan Christophe To: buildroot@buildroot.org Date: Thu, 5 Dec 2019 10:42:38 +0100 Message-Id: <20191205094238.69841-1-titouan.christophe@railnova.eu> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH RFC 1/1] package/rauc: select fw_printenv for uboot based systems X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pierre-Jean Texier , Titouan Christophe , Andrey Yurovsky Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" When operating on a uboot based system, rauc interacts with the bootloader environment using fw_printenv and fw_setenv [1]. These commands should therefore be present on the target if the system being built uses uboot. [1] See: https://github.com/rauc/rauc/blob/v1.2/src/bootchooser.c#L21-L22 https://github.com/rauc/rauc/blob/v1.2/src/bootchooser.c#L644-L645 Signed-off-by: Titouan Christophe --- Note: we should maybe do the same for EFI, Grub and Barebox, but I'm not familiar with these ones. --- package/rauc/Config.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/rauc/Config.in b/package/rauc/Config.in index 4a1516a595..676ff42b51 100644 --- a/package/rauc/Config.in +++ b/package/rauc/Config.in @@ -7,6 +7,8 @@ config BR2_PACKAGE_RAUC select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_DBUS select BR2_PACKAGE_SQUASHFS # run-time dependency + select BR2_PACKAGE_UBOOT_TOOLS if BR2_TARGET_UBOOT # run-time dependency + select BR2_PACKAGE_UBOOT_TOOLS_FWPRINTENV if BR2_TARGET_UBOOT help RAUC is the Robust Auto-Update Controller developed by Pengutronix. It supports updating embedded Linux