All of lore.kernel.org
 help / color / mirror / Atom feed
* Build of u-boot with gold is broken
@ 2016-08-19  9:33 Andrew Goodbody
  2016-08-23 20:25 ` Burton, Ross
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Goodbody @ 2016-08-19  9:33 UTC (permalink / raw)
  To: openembedded-core

Hi,

It looks like the recent change to meta/recipes-bsp/u-boot/u-boot.inc to enable out of tree builds for u-boot does not work with gold.
The sed at line 70 fails as it is being executed in an empty build directory and so there is no config.mk.

Andrew


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Build of u-boot with gold is broken
  2016-08-19  9:33 Build of u-boot with gold is broken Andrew Goodbody
@ 2016-08-23 20:25 ` Burton, Ross
  2016-08-30  9:57   ` Andrew Goodbody
  0 siblings, 1 reply; 8+ messages in thread
From: Burton, Ross @ 2016-08-23 20:25 UTC (permalink / raw)
  To: Andrew Goodbody; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 276 bytes --]

On 19 August 2016 at 10:33, Andrew Goodbody <andrew.goodbody@cambrionix.com>
wrote:

> The sed at line 70 fails as it is being executed in an empty build
> directory and so there is no config.mk.
>

For fame and glory, can you send a tested patch to fix this?

Ross

[-- Attachment #2: Type: text/html, Size: 741 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Build of u-boot with gold is broken
  2016-08-23 20:25 ` Burton, Ross
@ 2016-08-30  9:57   ` Andrew Goodbody
  2016-08-30 20:55     ` Manjukumar Harthikote Matha
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Goodbody @ 2016-08-30  9:57 UTC (permalink / raw)
  To: Burton, Ross; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1317 bytes --]

From: Burton, Ross <ross.burton@intel.com>
On 19 August 2016 at 10:33, Andrew Goodbody <andrew.goodbody@cambrionix.com<mailto:andrew.goodbody@cambrionix.com>> wrote:
The sed at line 70 fails as it is being executed in an empty build directory and so there is no config.mk<http://config.mk>.

For fame and glory, can you send a tested patch to fix this?

Ross

Sorry but I am not sure about the best way to fix this.

Andrew

PS This is a resend (with additions below) as I neglected to copy the list, sorry - I was out of the office at the time.
It would be possible to simply cd into the source directory, apply the sed, then cd back to the build directory. However this seems to go against the point of having a separate build directory in that you are attempting to leave the source tree alone, or so I assume.
In my local tree I simply revert

commit 36f110594506fbee5dc18de3a04981f019f2024d
Author: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Date:   Tue Aug 9 10:15:07 2016 -0700

    u-boot.inc: Enable out-of-tree builds

    This patch enabled out-of-tree builds for u-boot. This also helps building
    u-boot using EXTERNALSRC flow

    Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
    Signed-off-by: Ross Burton <ross.burton@intel.com>

[-- Attachment #2: Type: text/html, Size: 6529 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Build of u-boot with gold is broken
  2016-08-30  9:57   ` Andrew Goodbody
@ 2016-08-30 20:55     ` Manjukumar Harthikote Matha
  2016-08-31 14:08       ` Andrew Goodbody
  0 siblings, 1 reply; 8+ messages in thread
From: Manjukumar Harthikote Matha @ 2016-08-30 20:55 UTC (permalink / raw)
  To: Andrew Goodbody, Burton, Ross; +Cc: openembedded-core

Hi All,

On 08/30/2016 02:57 AM, Andrew Goodbody wrote:
> *From:*Burton, Ross <ross.burton@intel.com>
>
> On 19 August 2016 at 10:33, Andrew Goodbody
> <andrew.goodbody@cambrionix.com <mailto:andrew.goodbody@cambrionix.com>>
> wrote:
>
>     The sed at line 70 fails as it is being executed in an empty build
>     directory and so there is no config.mk <http://config.mk>.
>
>
>
> For fame and glory, can you send a tested patch to fix this?
>
>
>
> Ross
>
>
> Sorry but I am not sure about the best way to fix this.
>
> Andrew
>
>
>
> PS This is a resend (with additions below) as I neglected to copy the
> list, sorry – I was out of the office at the time.
>
> It would be possible to simply cd into the source directory, apply the
> sed, then cd back to the build directory. However this seems to go
> against the point of having a separate build directory in that you are
> attempting to leave the source tree alone, or so I assume.
>
Can we do ${S}/config.mk ? Meaning
sed -i 's/$(CROSS_COMPILE)ld$/$(CROSS_COMPILE)ld.bfd/g' ${S}/config.mk
I dont have a setup for gold linker, If you can send the instructions I 
will give it a try

Thanks
Manju


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Build of u-boot with gold is broken
  2016-08-30 20:55     ` Manjukumar Harthikote Matha
@ 2016-08-31 14:08       ` Andrew Goodbody
  0 siblings, 0 replies; 8+ messages in thread
From: Andrew Goodbody @ 2016-08-31 14:08 UTC (permalink / raw)
  To: Manjukumar Harthikote Matha, Burton, Ross; +Cc: openembedded-core

> From: Manjukumar Harthikote Matha [mailto:manjukumar.harthikote-
> matha@xilinx.com]
> 
> Can we do ${S}/config.mk ? Meaning
> sed -i 's/$(CROSS_COMPILE)ld$/$(CROSS_COMPILE)ld.bfd/g' ${S}/config.mk I
> dont have a setup for gold linker, If you can send the instructions I will give it
> a try
> 
> Thanks
> Manju

That works. I have sent a patch.

Andrew


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Build of u-boot with gold is broken
  2016-08-18 17:45 ` Khem Raj
@ 2016-08-19  9:37   ` Andrew Goodbody
  0 siblings, 0 replies; 8+ messages in thread
From: Andrew Goodbody @ 2016-08-19  9:37 UTC (permalink / raw)
  To: openembedded-devel

> > On Aug 18, 2016, at 6:44 AM, Andrew Goodbody
> <andrew.goodbody@cambrionix.com> wrote:
> >
> > Hi,
> >
> > It looks like the recent change to meta/recipes-bsp/u-boot/u-boot.inc to
> enable out of tree builds for u-boot does not work with gold.
> > The sed at line 70 fails as it is being executed in an empty build directory
> and so there is no config.mk.
> >
> 
> Send this to OE-core list you might need to add cd ${B} at beginning of
> do_compile

I wish it were that simple, but it does a cd ${B} before the call to do_compile, but ${B} is empty. Anyway I have resent this to oe-core, sorry for the noise.

Andrew


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Build of u-boot with gold is broken
  2016-08-18 13:44 Andrew Goodbody
@ 2016-08-18 17:45 ` Khem Raj
  2016-08-19  9:37   ` Andrew Goodbody
  0 siblings, 1 reply; 8+ messages in thread
From: Khem Raj @ 2016-08-18 17:45 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 665 bytes --]


> On Aug 18, 2016, at 6:44 AM, Andrew Goodbody <andrew.goodbody@cambrionix.com> wrote:
> 
> Hi,
> 
> It looks like the recent change to meta/recipes-bsp/u-boot/u-boot.inc to enable out of tree builds for u-boot does not work with gold.
> The sed at line 70 fails as it is being executed in an empty build directory and so there is no config.mk.
> 

Send this to OE-core list you might need to add cd ${B} at beginning of do_compile


> Andrew
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Build of u-boot with gold is broken
@ 2016-08-18 13:44 Andrew Goodbody
  2016-08-18 17:45 ` Khem Raj
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Goodbody @ 2016-08-18 13:44 UTC (permalink / raw)
  To: openembedded-devel

Hi,

It looks like the recent change to meta/recipes-bsp/u-boot/u-boot.inc to enable out of tree builds for u-boot does not work with gold.
The sed at line 70 fails as it is being executed in an empty build directory and so there is no config.mk.

Andrew


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-08-31 14:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-19  9:33 Build of u-boot with gold is broken Andrew Goodbody
2016-08-23 20:25 ` Burton, Ross
2016-08-30  9:57   ` Andrew Goodbody
2016-08-30 20:55     ` Manjukumar Harthikote Matha
2016-08-31 14:08       ` Andrew Goodbody
  -- strict thread matches above, loose matches on Subject: below --
2016-08-18 13:44 Andrew Goodbody
2016-08-18 17:45 ` Khem Raj
2016-08-19  9:37   ` Andrew Goodbody

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.