[coreboot] v2 patch
Peter Stuge
peter at stuge.se
Sat Aug 15 03:19:01 CEST 2009
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
More information about the coreboot
mailing list