From: Brandon Maier via buildroot <buildroot@buildroot.org>
To: "Frager, Neal" <neal.frager@amd.com>,
"buildroot@buildroot.org" <buildroot@buildroot.org>,
"luca.ceresoli@bootlin.com" <luca.ceresoli@bootlin.com>
Subject: Re: [Buildroot] [PATCH] boot/uboot: fix dependency on xilinx-prebuilt
Date: Mon, 12 Aug 2024 13:01:06 +0000 [thread overview]
Message-ID: <D3DYARJL5VND.19ERKZ05BBC98@collins.com> (raw)
In-Reply-To: <CH2PR12MB5004250FF91D0CADB98CF309F0BB2@CH2PR12MB5004.namprd12.prod.outlook.com>
Hi Neal,
On Sat Aug 10, 2024 at 7:01 AM UTC, Frager, Neal via buildroot wrote:
> Hi Brandon,
>
> > When building with `make -j` and PER_PACKAGE_DIRECTORIES, a race
> > condition occurs between xilinx-prebuilt and u-boot, resulting in the
> > following error.
>
> > objcopy -O binary -I elf32-little .../images/pmufw.elf .../images/pmufw.bin
> > objcopy: '.../images/pmufw.elf': No such file
>
> > U-Boot registers a KCONFIG_FIXUP_CMD that uses the pmufw.elf from
> > xilinx-prebuilt. But KCONFIG_FIXUP_CMDS does not use the normal
> > DEPENDENCIES, so xilinx-prebuilt is not guaranteed to have run before
> > fixup.
>
> > Instead move the `objcopy` call out to a PRE_BUILD_HOOK so it will run
> > after xilinx-prebuilt has finished.
>
> > Signed-off-by: Brandon Maier <brandon.maier@collins.com>
>
> Thank you for looking into this. I am adding Luca on copy as he developed
> the uboot.mk code you are modifying.
>
> Shouldn't line 448 of u-boot.mk prevent this issue?
> UBOOT_DEPENDENCIES += xilinx-prebuilt
It doesn't, the dependency graph looks something like this
UBOOT_KCONFIG_DEPENDENCIES -> uboot-kconfig
uboot-kconfig -> uboot-configure
UBOOT_DEPENDENCIES -> uboot-configure
The `objcopy` call is happening during `uboot-kconfig`, so
UBOOT_DEPENDENCIES is not a prerequisite.
There is a UBOOT_KCONFIG_DEPENDENCIES, but it seemed more appropriate
that the `objcopy` should be a build step.
>
> Do you have the following config when you see this error?
> BR2_TARGET_UBOOT_ZYNQMP_PMUFW_PREBUILT
Yes, this happened when I was building configs/zynqmp_zcu106_defconfig
but with PER_PACKAGE_DIRECTORIES enabled, to speed up build with.
>
> Best regards,
> Neal Frager
> AMD
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-08-12 13:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-09 16:30 [Buildroot] [PATCH] boot/uboot: fix dependency on xilinx-prebuilt Brandon Maier via buildroot
2024-08-10 7:01 ` Frager, Neal via buildroot
2024-08-12 13:01 ` Brandon Maier via buildroot [this message]
2024-08-12 14:42 ` Frager, Neal via buildroot
2024-08-15 9:14 ` Thomas Petazzoni via buildroot
2024-08-15 11:04 ` Frager, Neal via buildroot
2024-08-15 13:58 ` Brandon Maier via buildroot
2024-08-19 7:51 ` Luca Ceresoli via buildroot
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=D3DYARJL5VND.19ERKZ05BBC98@collins.com \
--to=buildroot@buildroot.org \
--cc=brandon.maier@collins.com \
--cc=luca.ceresoli@bootlin.com \
--cc=neal.frager@amd.com \
/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