From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7044759803119271936 X-Received: by 2002:a05:600c:643:: with SMTP id p3mr385349wmm.130.1640235960540; Wed, 22 Dec 2021 21:06:00 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:3b56:: with SMTP id i83ls3315112wma.0.canary-gmail; Wed, 22 Dec 2021 21:05:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwfd8ShwSGTPD/Wl12rJzgPokra2H7lzVYiz4UYQh9zOE0EKKD7bFEYOoRjDv/3nSDyodA X-Received: by 2002:a1c:a70f:: with SMTP id q15mr372636wme.143.1640235959535; Wed, 22 Dec 2021 21:05:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1640235959; cv=none; d=google.com; s=arc-20160816; b=jL4/IMTR/cXsuXIvUKunW+tuj3OkLjMqBe4PuRf5+Dknuc8AKhFyRX1y1BC6/5tsXk IpFkBQj0NA0cxgKe0v64tdRFX9GJiJGHVLdYR23Jd8zn6BnrDrfmRyUPh/j1YD37HZ5W DKRgko/SQeoeyltIW3Hz4RXt0s0XMwI9jjE3L0XWCV35/wYN/hi8Zcu23155HqQSIs42 yQAhX0LATaobNDk2rpXnCANjBKf0G6hFOPeWLlVda5ZmXxey3Dm5f3YLqbUFqtnd/Osl xd8qnnh2zBdlduit2uXd4zTX1aSKXWEkHEhJtRvKMqWAcP8D5p0n4ktCOUBITTb2V9fH 5aEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=wzmISBXdgkRZv7l+7mrO3luzBlkhNAlGlcz86gq07fY=; b=Ps6Rhibrq/zk6sKG7Z9Dfg7+M1tyB5K5clBPLtpOrLIIBGiejuerRYdAeYs4U6CKA0 6AJV4IlR0hyEaF1iFzDqMHd3FonDxaoeh0Pqb3wMZVZPLkDrrWiuTxj47zAwoA5qmDio DixAgbFn9skDhiGMC8LBK+K7sZIL2l05nSqF0mUzWGP+ygb0fSgd26gHluKdkY9s6svJ rI9mjJcqsaZJAMDhBMxYJnT88i+8uDDuwINKjEZnPl0i4h1zXcEjmw8Jhyaaz/92tIN2 GlWcVdHYBTHq7sE+O1jCv8o3Itne6wEaHaBvpUyu+zUslZiW6EYskrO1d6Ti5efT6mBL sObA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id m12si163718wrp.3.2021.12.22.21.05.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Dec 2021 21:05:59 -0800 (PST) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from baighyz.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 1BN55vqD009371 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 23 Dec 2021 06:05:59 +0100 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH 3/7] u-boot: Do not use shell environment Date: Thu, 23 Dec 2021 06:05:53 +0100 Message-Id: <20211223050557.28269-4-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211223050557.28269-1-ubely@ilbers.de> References: <20211223050557.28269-1-ubely@ilbers.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: S+Jm3tWdiHku From: Anton Mikanovich To make package build process independent of the shell environment we should remove U_BOOT_CONFIG and U_BOOT_BIN passing through export call. So we migrate to template-based debian/rules file. Signed-off-by: Anton Mikanovich Signed-off-by: Uladzimir Bely --- .../u-boot/files/debian/{rules => rules.tmpl} | 2 +- meta/recipes-bsp/u-boot/u-boot-custom.inc | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) rename meta/recipes-bsp/u-boot/files/debian/{rules => rules.tmpl} (94%) diff --git a/meta/recipes-bsp/u-boot/files/debian/rules b/meta/recipes-bsp/u-boot/files/debian/rules.tmpl similarity index 94% rename from meta/recipes-bsp/u-boot/files/debian/rules rename to meta/recipes-bsp/u-boot/files/debian/rules.tmpl index 3d667620..806b01fe 100755 --- a/meta/recipes-bsp/u-boot/files/debian/rules +++ b/meta/recipes-bsp/u-boot/files/debian/rules.tmpl @@ -13,7 +13,7 @@ SET_CROSS_BUILD_TOOLS=CROSS_BUILD_TOOLS=y endif override_dh_auto_build: - $(MAKE) $(PARALLEL_MAKE) $(U_BOOT_CONFIG) + $(MAKE) $(PARALLEL_MAKE) ${U_BOOT_CONFIG} $(MAKE) $(PARALLEL_MAKE) ${U_BOOT_BIN} $(MAKE) -n u-boot-initial-env >/dev/null 2>&1; if [ $$? -ne 2 ]; then \ $(MAKE) $(PARALLEL_MAKE) u-boot-initial-env; \ diff --git a/meta/recipes-bsp/u-boot/u-boot-custom.inc b/meta/recipes-bsp/u-boot/u-boot-custom.inc index 9984d8cc..2af7ada1 100644 --- a/meta/recipes-bsp/u-boot/u-boot-custom.inc +++ b/meta/recipes-bsp/u-boot/u-boot-custom.inc @@ -26,8 +26,8 @@ python() { DEBIAN_BUILD_DEPENDS ?= "bc, bison, flex, device-tree-compiler, git" -TEMPLATE_FILES = "debian/control.tmpl" -TEMPLATE_VARS += "MACHINE DEBIAN_BUILD_DEPENDS" +TEMPLATE_FILES = "debian/control.tmpl debian/rules.tmpl" +TEMPLATE_VARS += "MACHINE DEBIAN_BUILD_DEPENDS U_BOOT_CONFIG U_BOOT_BIN" U_BOOT_TOOLS_PACKAGE ?= "0" U_BOOT_CONFIG_PACKAGE ?= "0" @@ -71,8 +71,3 @@ fw_env.config /etc EOF fi } - -dpkg_runbuild_prepend() { - export U_BOOT_CONFIG="${U_BOOT_CONFIG}" - export U_BOOT_BIN="${U_BOOT_BIN}" -} -- 2.20.1