From patchwork Wed May 5 08:05:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gylstorff Quirin X-Patchwork-Id: 12239287 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33767C433B4 for ; Wed, 5 May 2021 08:05:26 +0000 (UTC) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 906F4613C0 for ; Wed, 5 May 2021 08:05:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 906F4613C0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=siemens.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+64572+6421+4520388+8129055@lists.cip-project.org X-Received: by 127.0.0.2 with SMTP id tYiwYY4521723xreURyjsg2i; Wed, 05 May 2021 01:05:25 -0700 X-Received: from lizzard.sbs.de (lizzard.sbs.de [194.138.37.39]) by mx.groups.io with SMTP id smtpd.web12.4814.1620201921949448849 for ; Wed, 05 May 2021 01:05:22 -0700 X-Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id 14585Jdv030531 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 5 May 2021 10:05:20 +0200 X-Received: from md2dvrtc.fritz.box ([167.87.16.18]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 14585I0R018849; Wed, 5 May 2021 10:05:19 +0200 From: "Quirin Gylstorff" To: jan.kiszka@siemens.com, cip-dev@lists.cip-project.org Cc: Quirin Gylstorff Subject: [cip-dev][isar-cip-core][PATCH v3 1/2] swupdate-config: remove variable U_BOOT Date: Wed, 5 May 2021 10:05:17 +0200 Message-Id: <20210505080518.18186-2-Quirin.Gylstorff@siemens.com> In-Reply-To: <20210505080518.18186-1-Quirin.Gylstorff@siemens.com> References: <20210505080518.18186-1-Quirin.Gylstorff@siemens.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: cip-dev@lists.cip-project.org List-Id: Mailing-List: list cip-dev@lists.cip-project.org; contact cip-dev+owner@lists.cip-project.org Reply-To: cip-dev@lists.cip-project.org X-Gm-Message-State: 3HdGXWDSwp6wF6RU0SPNKD5rx4520388AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.cip-project.org; q=dns/txt; s=20140610; t=1620201925; bh=6ZrrGGATVW738CdUIXqhScNa3C+n5raSlJFZqIHmBl4=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=D91peuWCzZwlCRJTK/O9vDY0MAbpczTwSRZ5G51B7WH7OMKZgiuxZ8eV1MSJCoX/dh9 QdwXbTINA4xjehD/i3fZCkcJMf7ifcvQjls5uLJOagdx8FwHnbvZhgNJN3Hy8Ugm0AkWx 0d8cykFLKN1DRLCMeWk2tJ8juQdbHfntxhc= From: Quirin Gylstorff The dependency to ${U_BOOT} is unnecessary for the SWUPDATE build and the package deployment. The package `u-boot-${MACHINE}-config` is requested for fw_env.config from a custom u-boot build. SWUpdate uses fw_env.config to read/write the u-boot environment. If the Package `u-boot-${MACHINE}-config` is not activated during the build, by setting `U_BOOT_CONFIG_PACKAGE` to '1', then do not add `u-boot-${MACHINE}-config` to the swupdate dependencies. U-Boot build by Debian provides example configurations for different boards with the package u-boot-tools. If u-boot-tools are installed these examples can be found at config /usr/share/doc/u-boot-tools/examples/. Signed-off-by: Quirin Gylstorff --- classes/swupdate-config.bbclass | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/classes/swupdate-config.bbclass b/classes/swupdate-config.bbclass index 9909113..5af4eba 100644 --- a/classes/swupdate-config.bbclass +++ b/classes/swupdate-config.bbclass @@ -45,13 +45,16 @@ KFEATURE_ubi[KCONFIG_SNIPPETS] = "file://swupdate_defconfig_ubi.snippet" KFEATURE_DEPS[ubi] = "mtd" -USE_U_BOOT_CONFIG ?= "true" KFEATURE_u-boot = "" KFEATURE_u-boot[BUILD_DEB_DEPENDS] = "libubootenv-dev" +# we need u-boot-${MACHINE}-config for fw_env.config +# only custom build u-boot provides this package +# for u-boot provided by debian u-boot-tools provides +# example configurations at /usr/share/doc/u-boot-tools/examples KFEATURE_u-boot[DEBIAN_DEPENDS] = "${@ 'libubootenv0.1, u-boot-${MACHINE}-config' \ - if d.getVar("USE_U_BOOT_CONFIG", True) == "true" \ + if d.getVar("U_BOOT_CONFIG_PACKAGE", True) == "1" \ else 'libubootenv0.1'}" -KFEATURE_u-boot[DEPENDS] = "${U_BOOT} libubootenv" +KFEATURE_u-boot[DEPENDS] = "libubootenv" KFEATURE_u-boot[KCONFIG_SNIPPETS] = "file://swupdate_defconfig_u-boot.snippet" SWUPDATE_LUASCRIPT ?= "swupdate_handlers.lua"