
Dear Stefan Roese,
In message 200910261549.05545.sr@denx.de you wrote:
I'm wondering if and how it's possible to use a "variable" file name for inclusion in a linker script. Reason for this is the consolidation of the ppc4xx linker scripts, where some boards (PPC440) include a board specific file (e.g. board/amcc/canyonlands/init.o) into the section "bootpg":
All linker scripts are run through the C preprocessor...
.bootpg RESET_VECTOR_ADDRESS - 0xffc : { cpu/ppc4xx/start.o (.bootpg) board/amcc/canyonlands/init.o (.bootpg) }
Is there a way to write something like this:
.bootpg RESET_VECTOR_ADDRESS - 0xffc : { cpu/ppc4xx/start.o (.bootpg) board/$(BOARDDIR)/init.o (.bootpg) }
Eventually
board/CONFIG_HOSTNAME/init.o (.bootpg)
might work (untested).
Best regards,
Wolfgang Denk