From: Christian Melki <christian.melki@t2data.com>
To: Michael Olbrich <m.olbrich@pengutronix.de>
Cc: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 3/3] u-boot: Move image copying from targetinstall to install.
Date: Tue, 30 Aug 2022 09:41:10 +0200 [thread overview]
Message-ID: <d60e3d6c-8f72-6129-86bc-f33535b154fa@t2data.com> (raw)
In-Reply-To: <Yw27Vg5SOvIdog9M@pengutronix.de>
On 8/30/22 9:25 AM, Michael Olbrich wrote:
> On Fri, Aug 26, 2022 at 03:35:37PM +0200, Christian Melki wrote:
>> This seems like a potential issue in several packages.
>> When signing u-boot images in tf-a, tf-a has u-boot as
>> a dependency. But u-boot doesn't install images to be processed
>> until targetinstall, which leads to problems.
>>
>> Some things might be targetinstall. But resulting images destined
>> for the imagedir aren't really targetinstall unless
>> they are also copied to rootfs.
>
> This is broken. 'ptxdist clean root' will remove the files from images/ and
> then only targetinstall is executed. So the files won't be copied again.
>
> If other packages need those files, then they must be copied to
> $(U_BOOT_PKGDIR) in the install stage.
>
> Michael
>
Hmm. Not sure how that is supposed to work?
Do you mean that they need to be copied to pkgdir as well
as imagedir?
install:
-> pkgdir
-> imagedir
targetinstall:
pkgdir -> imagedir
?
/C
>> Signed-off-by: Christian Melki <christian.melki@t2data.com>
>> ---
>> rules/u-boot.make | 15 ++++++++-------
>> 1 file changed, 8 insertions(+), 7 deletions(-)
>>
>> diff --git a/rules/u-boot.make b/rules/u-boot.make
>> index 0b632e8b2..bdbe03ffe 100644
>> --- a/rules/u-boot.make
>> +++ b/rules/u-boot.make
>> @@ -133,14 +133,7 @@ endif
>>
>> $(STATEDIR)/u-boot.install:
>> @$(call targetinfo)
>> - @$(call touch)
>> -
>> -# ----------------------------------------------------------------------------
>> -# Target-Install
>> -# ----------------------------------------------------------------------------
>>
>> -$(STATEDIR)/u-boot.targetinstall:
>> - @$(call targetinfo)
>> @$(call world/image-clean, U_BOOT)
>> ifdef PTXCONF_U_BOOT_INSTALL_U_BOOT_BIN
>> @$(call ptx/image-install, U_BOOT, $(U_BOOT_BUILD_DIR)/u-boot.bin)
>> @@ -194,6 +187,14 @@ ifndef PTXCONF_U_BOOT_ENV_IMAGE_NONE
>> @$(call ptx/image-install, U_BOOT, $(U_BOOT_BUILD_DIR)/u-boot-env.img)
>> endif
>>
>> + @$(call touch)
>> +
>> +# ----------------------------------------------------------------------------
>> +# Target-Install
>> +# ----------------------------------------------------------------------------
>> +
>> +$(STATEDIR)/u-boot.targetinstall:
>> + @$(call targetinfo)
>> ifdef PTXCONF_U_BOOT_BOOT_SCRIPT
>> @$(call install_init, u-boot)
>> @$(call install_fixup, u-boot, PRIORITY, optional)
>> --
>> 2.34.1
>>
>>
>>
>
next prev parent reply other threads:[~2022-08-30 7:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-26 13:35 [ptxdist] [PATCH 1/3] u-boot: Move u-boot URL to github Christian Melki
2022-08-26 13:35 ` [ptxdist] [PATCH 2/3] u-boot: Add two new u-boot image targets Christian Melki
2022-08-26 13:35 ` [ptxdist] [PATCH 3/3] u-boot: Move image copying from targetinstall to install Christian Melki
2022-08-30 7:25 ` Michael Olbrich
2022-08-30 7:41 ` Christian Melki [this message]
2022-08-29 8:49 ` [ptxdist] [PATCH 1/3] u-boot: Move u-boot URL to github Alexander Dahl
2022-08-29 16:57 ` Christian Melki
2022-08-30 7:23 ` Michael Olbrich
2022-08-30 7:58 ` Christian Melki
2022-08-30 9:13 ` Alexander Dahl
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=d60e3d6c-8f72-6129-86bc-f33535b154fa@t2data.com \
--to=christian.melki@t2data.com \
--cc=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.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