From: Jan Kiszka <jan.kiszka@siemens.com>
To: Uladzimir Bely <ubely@ilbers.de>, <isar-users@googlegroups.com>
Subject: Re: [PATCH v5 6/9] optee-os-stm32mp15x: Do not use shell environment
Date: Wed, 23 Feb 2022 15:01:43 +0100 [thread overview]
Message-ID: <9fdcdb0e-fee6-1c60-19a8-819f40c1059a@siemens.com> (raw)
In-Reply-To: <2574298.lGaqSPkdTl@home>
On 22.02.22 13:29, Uladzimir Bely wrote:
> In the email from Tuesday, 22 February 2022 09:49:38 +03 user Jan Kiszka
> wrote:
>> On 13.02.22 08:41, Uladzimir Bely wrote:
>>> Move export of TEE_IMPL_VERSION variable directly to debian/rules.
>>>
>>> This makes building process more Debian-like.
>>>
>>> Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
>>> ---
>>>
>>> meta-isar/recipes-bsp/optee-os/optee-os-stm32mp15x_3.11.0.bb | 5 ++++-
>>> 1 file changed, 4 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/meta-isar/recipes-bsp/optee-os/optee-os-stm32mp15x_3.11.0.bb
>>> b/meta-isar/recipes-bsp/optee-os/optee-os-stm32mp15x_3.11.0.bb index
>>> 0fa2005d..9c0efaf1 100644
>>> --- a/meta-isar/recipes-bsp/optee-os/optee-os-stm32mp15x_3.11.0.bb
>>> +++ b/meta-isar/recipes-bsp/optee-os/optee-os-stm32mp15x_3.11.0.bb
>>> @@ -21,5 +21,8 @@ OPTEE_BINARIES = "tee-header_v2.stm32
>>> tee-pageable_v2.stm32 tee-pager_v2.stm32">
>>> # Set version manually to PV, the tarball does not contain any hint.
>>> # Alternative: pull from git and add git as build dependency.
>>> dpkg_runbuild_prepend() {
>>>
>>> - export TEE_IMPL_VERSION=${PV}
>>> + cat << EOF >> ${S}/debian/rules
>>> +
>>> +export TEE_IMPL_VERSION=${PV}
>>> +EOF
>>>
>>> }
>>
>> I think I commented on this anti-pattern elsewhere already: This can
>> lead to piled-up extra lines in the target file. Now that it's merged,
>> please fix up on top, e.g. using a sed rule that avoids duplicate
>> patching or appending to the unpack step.
>>
>> Please also check if you used it elsewhere in fix those spots accordingly.
>>
>> Jan
>
> I tried to see the problem with line duplicates you are talking about and I
> couldn't reproduce it. Any way to invalidate do_build (recipe modification,
> manual task invalidation by bitbake, etc) makes ${S} to be renewed, so "old"
> lines are not presented here. So, this kind of export appears only once.
>
Generally, such artifacts come from unpack or patch, and every
stand-along call of do_dpkg_build can cause such aggregation. But you
are right, in this case the debian folder is copied in from clean
source, and we do not see an aggregation. But we may see it if the
underlying include once changes and uses a different way to feed in debian/.
Jan
--
Siemens AG, Technology
Competence Center Embedded Linux
next prev parent reply other threads:[~2022-02-23 14:01 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-13 7:41 [PATCH v5 0/9] Avoid using shell environment during the build Uladzimir Bely
2022-02-13 7:41 ` [PATCH v5 1/9] template: Copy template attributes on transform Uladzimir Bely
2022-02-13 7:41 ` [PATCH v5 2/9] linux-module: Do not use shell environment Uladzimir Bely
2022-02-13 7:41 ` [PATCH v5 3/9] u-boot: " Uladzimir Bely
2022-02-13 7:41 ` [PATCH v5 4/9] trusted-firmware: " Uladzimir Bely
2022-02-13 7:41 ` [PATCH v5 5/9] optee-os: " Uladzimir Bely
2022-02-13 7:41 ` [PATCH v5 6/9] optee-os-stm32mp15x: " Uladzimir Bely
2022-02-22 6:49 ` Jan Kiszka
2022-02-22 12:29 ` Uladzimir Bely
2022-02-23 14:01 ` Jan Kiszka [this message]
2022-02-13 7:41 ` [PATCH v5 7/9] kselftest: " Uladzimir Bely
2022-02-13 7:41 ` [PATCH v5 8/9] linux-mainline: Move cfg fragment test to debian/rules Uladzimir Bely
2022-02-22 6:50 ` Jan Kiszka
2022-02-13 7:41 ` [PATCH v5 9/9] linux-custom: Move cfg fragments applying " Uladzimir Bely
2022-02-23 13:53 ` Henning Schild
2022-02-24 9:09 ` Uladzimir Bely
2022-02-24 12:36 ` Henning Schild
2022-02-24 14:49 ` Uladzimir Bely
2022-02-24 19:53 ` Henning Schild
2022-02-22 6:39 ` [PATCH v5 0/9] Avoid using shell environment during the build Anton Mikanovich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9fdcdb0e-fee6-1c60-19a8-819f40c1059a@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=ubely@ilbers.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox