make ldscript.ld simpler in the Kconfig case.
Kontron is still badly broken in this branch.
ron
ron minnich schrieb:
make ldscript.ld simpler in the Kconfig case.
I removed that from the system due to the bad experience with the old system. If dependencies work (test please), this is
Acked-by: Patrick Georgi patrick.georgi@coresystems.de
ron minnich wrote:
$(obj)/ldscript.ld: $(ldscripts) $(obj)/ldoptions
- $(Q)printf 'INCLUDE "ldoptions"\n' > $@
- $(Q)printf '$(foreach ldscript,$(ldscripts),INCLUDE "$(ldscript)"\n)' >> $@
- $(Q)cat $(obj)/ldoptions> $@
- $(Q)cat $(ldscripts) >> $@
This could be simplified a little at least with GNU make:
$(Q)cat $^ > $@
$^ will expand to all direct dependencies for the rule.
//Peter
On Fri, Aug 14, 2009 at 6:19 PM, Peter Stugepeter@stuge.se wrote:
ron minnich wrote:
$(obj)/ldscript.ld: $(ldscripts) $(obj)/ldoptions
- $(Q)printf 'INCLUDE "ldoptions"\n' > $@
- $(Q)printf '$(foreach ldscript,$(ldscripts),INCLUDE "$(ldscript)"\n)' >> $@
- $(Q)cat $(obj)/ldoptions> $@
- $(Q)cat $(ldscripts) >> $@
This could be simplified a little at least with GNU make:
$(Q)cat $^ > $@
$^ will expand to all direct dependencies for the rule.
patches welcome.
ron