[U-Boot-Users] [PATCH] Generic Support for Motorola i.MX architecture
Steven Scholz
steven.scholz at imc-berlin.de
Tue Aug 3 15:37:30 CEST 2004
Wolfgang Denk wrote:
> In message <410F766F.2020106 at imc-berlin.de> you wrote:
>>A while ago I suggested to create cpu/imx, cpu/s3c24x0 etc. and put all the
>>cpu specific stuff in there.
>
>
> Agreed. Please submit a patch.
> ARM9 generic code should stay in cpu/arm920t/
>
>>1.) cpu/at91rm9200/Makefile:
>>
>> OBJS = ../arm920t/interrupts.o ../arm920t/cpu.o \
>> serial.o at91rm9200_ether.o at45.o
>>
>> start.S has to be a link "start.S -> ../arm920t/start.S" since
>
>
> No.
>
>
>>2.) Or creating (by Makefile) links to the generic sources:
>>
>> LINKS = start.S interrupts.c cpu.c
>>
>> $(LINKS)
>> ln -s ../arm920t/$@ $@ (oder s.ä.)
>
>
> No.
>
>
>>Comments?
>
>
> Both methods don't look really attractive to me. If ther eis common
> code, it shall remain in the common directory.
But how else could we solve this?
If we leave the common arm920t code in cpu/arm920t and put the specific
stuff in - let's say - cpu/s3c24x0...
The main makefile only takes one cpu type. How can we achieve that the code
in cpu/arm920t _and_ in cpu/s3c24x0 is built?
--
Steven Scholz
More information about the U-Boot
mailing list