Richard Purdie schrieb am Do 04. Jul, 20:38 (GMT):
> On Thu, 2024-07-04 at 21:18 +0200, Jörg Sommer via
> lists.openembedded.org wrote:
> > From: Jörg Sommer <[email protected]>
> > 
> > The u-boot Makefile (even v2024.07) doesn't like it, when `O=…` is
> > the same
> > directory as the source directory and complains about a dirty source
> > directory; see below. This happens when `UBOOT_MACHINE` is set and
> > not
> > `UBOOT_CONFIG`.
> > 
> > ```
> > % make O=$PWD all
> > make[1]: Entering directory '/home/joerg/git/u-boot'
> >   UPD     include/generated/timestamp_autogenerated.h
> >   Using /home/joerg/git/u-boot as source for U-Boot
> >   /home/joerg/git/u-boot is not clean, please run 'make mrproper'
> >   in the '/home/joerg/git/u-boot' directory.
> > make[1]: *** [/home/joerg/git/u-boot/Makefile:1928: prepare3] Error 1
> > make[1]: Leaving directory '/home/joerg/git/u-boot'
> > make: *** [Makefile:177: sub-make] Error 2
> > ```
> > 
> > Signed-off-by: Jörg Sommer <[email protected]>
> > ---
> >  meta/recipes-bsp/u-boot/u-boot.inc | 8 ++++++--
> >  1 file changed, 6 insertions(+), 2 deletions(-)
> 
> Can we not just always ensure B is set to somewhere different to S?
> 
> Building in S is generally a bad idea and we try to avoid that with
> anything that supports it.

I did some tests and yes, setting $B solves my build issue and does not harm
a build with UBOOT_CONFIG. But I must admit, I could only test this with
kirkstone.

Would it be possible to get this patch in kirkstone and scarthgap, too?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#201596): 
https://lists.openembedded.org/g/openembedded-core/message/201596
Mute This Topic: https://lists.openembedded.org/mt/107043175/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to