WAF build system: configure to prepend .o to all links?

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jul 6 05:54:10 UTC 2021


Hello Peter,

On 04/07/2021 15:02, Peter Dufault wrote:
> I want to build the i.MX RT BSP with a custom DTS file.  It's easy to build an application using ones own "dts.o" file, but I want to build all the BSP tests with my dts.o.  For now I just change the one in the tree but I don't want to do that.  I don't want a BSP variant, either, since it's a custom board that shouldn't have changes in the tree.
> 
> I want to get my "dts.o" in the link commands before the "-lrtemsbsp".  I looked through what is in "config.ini" and don't see what I need.  I can't over-ride LDFLAGS since that is appended in the command line after the libraries were already added.  So I want to add a .o to the sources or a flag that goes in after the "-o" for the program output.
> 
> Is there a way to do that?  I even tried setting LINK_CC but though "waf configure" warned be it was set it didn't use it.

I checked in a patch which should help to address this problem:

https://git.rtems.org/rtems/commit/?id=c9e0445932691b3b34c7fff979e5799d53d58d59

Could you try if this works in config.ini

LINKFLAGS = dts.o

?

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list