From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7057120643105423360 X-Received: by 2002:adf:f4d1:: with SMTP id h17mr1729611wrp.111.1644475400975; Wed, 09 Feb 2022 22:43:20 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:1d02:: with SMTP id l2ls261058wms.0.gmail; Wed, 09 Feb 2022 22:43:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHYMZxYoedUwtLAdIE3KydkqXL8Oue9BBFTh1TtdV3Y3uY3ZUb0MalgRwhqkyxdwyLjlgf X-Received: by 2002:a1c:29c3:: with SMTP id p186mr872811wmp.22.1644475400096; Wed, 09 Feb 2022 22:43:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644475400; cv=none; d=google.com; s=arc-20160816; b=PeeqmOuWWarOSI5a8czH1+zdW501JYrj+z15gk02X4EivqsYMEItpTUOOxMSgsX50X h53SOjAoipT9ZDwk+mArP1o2idJUHEsB4losaNpuDAKeozqiialcKkkQGj+W+nJv6dc0 oN9k9OOffa3ucnl8bgQSpjiRpYG3Ttdlpq9y3KzPOpIO204DpK9/66YCVD0xyLIRYB4e 2onfFjEfJHy6XToqY/LYgTGNc3hLnoo5a8PDwqqJWjzzYX9SDaxIrm1FyiYZ6NYxhkK/ 6eb7ja1q03R6poY/1YLphg1UJF8rNYdr+AdQpniG50c6++AhFil5soHN2BtFMS7WuPJj wXdA== 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=o65ruSohxHUji0znhapcaj+b8u3WvLDjSRIGFAd0+uE=; b=kcvUWAr6DUcSwYmcqIlcHOal+NAoGJjgH8pNkb3gB3UfLxuF7x/irmqwHXm0YwIo/x Lu328ZxxlZelaORFHRGtPXrzcZR43rnwKE02K2HckbK4fpr74NX/cKmltdrQnP7spiV4 rCTsARCmhCuYpS4A7KTp7HHBwTTpRT+WXjAbszhZxRheR9JpFEseyAXmGjvfv39vig8a s/3P9H1qElAFMBhzWmZivNjw44tUP2z4sMP3aZ84svtw3PHp6zlaDt7tG/k1iMdx5CnO GQMByXx5pCmGnoIv25iq02YImgCp65JB1IqQHmj9oixx9rB2EferHPJ+MD4JPJ7wWthd IRGg== 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 x19si46228wmh.0.2022.02.09.22.43.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Feb 2022 22:43:20 -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 21A6hHmn027943 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 10 Feb 2022 07:43:19 +0100 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 5/9] optee-os: Do not use shell environment Date: Thu, 10 Feb 2022 07:43:13 +0100 Message-Id: <20220210064317.3712-6-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220210064317.3712-1-ubely@ilbers.de> References: <20220210064317.3712-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: F6MmcRWIQs87 From: Anton Mikanovich To make package build process independent of the shell environment we should remove OPTEE_PLATFORM and OPTEE_EXTRA_BUILDARGS passing through export call. So we migrate to template-based debian/rules file. Signed-off-by: Anton Mikanovich --- .../optee-os/files/debian/{rules => rules.tmpl} | 4 ++-- meta/recipes-bsp/optee-os/optee-os-custom.inc | 9 ++------- 2 files changed, 4 insertions(+), 9 deletions(-) rename meta/recipes-bsp/optee-os/files/debian/{rules => rules.tmpl} (75%) diff --git a/meta/recipes-bsp/optee-os/files/debian/rules b/meta/recipes-bsp/optee-os/files/debian/rules.tmpl similarity index 75% rename from meta/recipes-bsp/optee-os/files/debian/rules rename to meta/recipes-bsp/optee-os/files/debian/rules.tmpl index d2e9900f..9ab80dfe 100755 --- a/meta/recipes-bsp/optee-os/files/debian/rules +++ b/meta/recipes-bsp/optee-os/files/debian/rules.tmpl @@ -12,8 +12,8 @@ export CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)- endif override_dh_auto_build: - CFLAGS= LDFLAGS= $(MAKE) $(PARALLEL_MAKE) PLATFORM=$(OPTEE_PLATFORM) \ - $(OPTEE_EXTRA_BUILDARGS) + CFLAGS= LDFLAGS= $(MAKE) $(PARALLEL_MAKE) PLATFORM=${OPTEE_PLATFORM} \ + ${OPTEE_EXTRA_BUILDARGS} %: dh $@ diff --git a/meta/recipes-bsp/optee-os/optee-os-custom.inc b/meta/recipes-bsp/optee-os/optee-os-custom.inc index 1bd51969..23612d81 100644 --- a/meta/recipes-bsp/optee-os/optee-os-custom.inc +++ b/meta/recipes-bsp/optee-os/optee-os-custom.inc @@ -22,8 +22,8 @@ DEBIAN_BUILD_DEPENDS ?= "python3-pycryptodome:native, python3-pyelftools" PROVIDES += "optee-os-${OPTEE_NAME}" -TEMPLATE_FILES = "debian/control.tmpl" -TEMPLATE_VARS += "OPTEE_NAME DEBIAN_BUILD_DEPENDS" +TEMPLATE_FILES = "debian/control.tmpl debian/rules.tmpl" +TEMPLATE_VARS += "OPTEE_NAME DEBIAN_BUILD_DEPENDS OPTEE_PLATFORM OPTEE_EXTRA_BUILDARGS" # split strip platform flavor, if any, from the specified platform string OPTEE_PLATFORM_BASE = "${@d.getVar('OPTEE_PLATFORM').split('-')[0]}" @@ -39,8 +39,3 @@ do_prepare_build() { ${S}/debian/optee-os-${OPTEE_NAME}.install done } - -dpkg_runbuild_prepend() { - export OPTEE_PLATFORM="${OPTEE_PLATFORM}" - export OPTEE_EXTRA_BUILDARGS="${OPTEE_EXTRA_BUILDARGS}" -} -- 2.20.1