[U-Boot] MPC5200: possible to "reserve" embedded flash sectors ?
André Schwarz
andre.schwarz at matrix-vision.de
Mon Mar 15 10:00:15 CET 2010
Wolfgang,
...
> > This is because all boards used the same script anyway, so there was
> > no use in keeping multiple copies of the same file. But please note
> > that nothing prevents you to use a local, customized linker script.
> > All you need to do is set it's name in you config.mk (add a line
> > "LDSCRIPT=<your name>").
Created the board dir and added this line to config.mk:
LDSCRIPT := $(SRCTREE)/board/matrix-vision/mvsmr/u-boot.lds
which results in failure during make :
swa at swa-m460:~/u-boot.git$ CROSS_COMPILE=ppc_6xx- ARCH=powerpc make
for dir in tools examples/standalone examples/api
cpu/mpc5xxx /home/swa/u-boot.git/board/matrix-vision/mvsmr/ ; do \
make -C $dir _depend ; done
make[1]: Entering directory `/home/swa/u-boot.git/tools'
make[1]: Nothing to be done for `_depend'.
...
make[1]: Leaving directory `/home/swa/u-boot.git/cpu/mpc5xxx'
make: *** /home/swa/u-boot.git/board/matrix-vision/mvsmr/: No such file
or directory. Stop.
make: *** [depend] Error 2
At first glance I thought there's a make target missing.
But looking at other boards doing the same thing showed no difference.
Using "LDSCRIPT := $(SRCTREE)/cpu/mpc5xxx/u-boot-customlayout.lds"
withing config.mk compiles cleanly and results in working U-Boot.
What am I missing ?
>
> excellent - that's what I've been looking for.
> At first glance I'd expected custom linker scripts to be refused ...
>
> >
> > > Since I want to submit the board files as soon as the merge window will
> > > open I'm asking for a reasonable way to implement this in current
> > > U-Boot.
> >
> > Use a customized linker script.
>
> will do - thanks for the help.
>
Regards,
André
MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner, Hans-Joachim Reich
More information about the U-Boot
mailing list