From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7057120643105423360 X-Received: by 2002:a05:6512:2620:: with SMTP id bt32mr19141590lfb.311.1643734392627; Tue, 01 Feb 2022 08:53:12 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:bf1a:: with SMTP id c26ls3342565ljr.10.gmail; Tue, 01 Feb 2022 08:53:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrd82U/oCRGZpzxisp/SE995OIRnInC8M7zzffvaZfvKq85lBfoqchwUB07OJ2tGkw7IRN X-Received: by 2002:a2e:a0d7:: with SMTP id f23mr16914056ljm.27.1643734391681; Tue, 01 Feb 2022 08:53:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643734391; cv=none; d=google.com; s=arc-20160816; b=QmHCFcJDAhZ8ZKCHnOC/QJ3reDsWQ9AB4avtkSl0yfuShYeNFUl8L3iwzx6NvJuHM0 JUXh7vg3wdBiBiSZY4ZH3mCzqzzRMlHx2s4o4/yjgR/hdWaEJIG3fOH1azQKXs6BmiV7 2p0Uw60ou0Wu+kvhoPW0lMrMDCZR7/yQztGP95bmjupfkh47rc/3ae6NPTgamCTKhFXv cbzY1nqmKhB4kotfcDMi96t3zNFuTEZUm0kAUxphS1Mtp0pXSSumBG1AgrvMi6HBpdac sofTZPkGvwjv13tE/j6PLXkIKczMT+GK8Sm9cJ1JnH7F/SZftTXaJjAUKE4mpmAavJRl EsWg== 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=pgqDGrsAcl3mwdSV9AJ657RfHzCLvIn46citH+QnFSUfJA+4FXOFNJ8py4jNt+aKDq gomcUeGPfF5ysJbou2FS4DPzjLXHQv77TaL4TkGyDndOzM7PjQFinngLgdWpQWdbOPhU Si86jznmaAaPqR8YxlkfvIEYhgyDaMeBh6rH6zXRjGPWQIKWMsOEEUakl3/pzBtSAXP8 V5rdNAv3YdjQT/zGW0bkarEE4skeJFTJFtW4lZOevp9FuIGQ4kCBZbkodo63QOWPgFTc 6cO2RF3RO7C+q5zviLc5lDr8ZGrqErVPUGUibtrEzJ1J4aRzrNIG2G7IP6OdKT5DND+k Xd5Q== 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 w6si841556ljw.6.2022.02.01.08.53.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 Feb 2022 08:53:11 -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 211Gr4qi019494 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 1 Feb 2022 17:53:10 +0100 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v3 3/8] u-boot: Do not use shell environment Date: Tue, 1 Feb 2022 17:52:59 +0100 Message-Id: <20220201165304.21976-4-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220201165304.21976-1-ubely@ilbers.de> References: <20220201165304.21976-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: wUYw+KXDvEJB 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