[En-Nut-Discussion] Linking for ARM fails
Harald Kipp
harald.kipp at egnite.de
Tue Mar 9 12:26:20 CET 2010
Thiago A. Corrêa wrote:
> Ops, looks like I forgot to take the path into account. I will try
> to get a function that does that, and will commit shortly.
> Sorry for the inconvenience.
Hi Thiago,
no problem. Just want to get a confirmation.
How about
makedefs =
function()
if c_is_provided("TOOL_CC_AVR32") then
return { "LDNAME",
"LDSCRIPT=$(top_srcdir)/arch/avr32/ldscripts/$(LDNAME).ld" }
end
return { "LDNAME",
"LDSCRIPT=$(top_srcdir)/arch/arm/ldscripts/$(LDNAME).ld" }
end
As far as I can see, this will add additional entries to the AVR8
NutConf.mk as well, but it shouldn't harm.
It's really annoying, that the "require" keyword only works with logical
AND, but not OR.
Harald
More information about the En-Nut-Discussion
mailing list