-----Original Message-----
From: Vaibhav Bhandari [mailto:vaibhav_at_east.isi.edu]
Sent: Tuesday, July 30, 2002 1:54 PM
To: Hicks, Jamey
Cc: cworth_at_east.isi.edu
Subject: boot-arm.s etc
hi jamey,
Wo thought it would be nice if we could had a modulat structure for the architectures and processor. All the bootldr architecture depend on SA1100 and they seems to split in to each plaform file (skiff/sa1100) with addition of PXA250 etc tjhe code might become messy. Does the following make any attempt to solve this?
<Makefile>
..
ifeq ($(CONFIG_ARCH), gator)
BOOTO = boot-sa.o mmu-strongarm.o
ARCH_FLAGS=-DARCH_GATOR
endif
ifeq ($(CONFIG_ARCH), h3900)
BOOTO = boot-sa.o mmu-strongarm.o
ARCH_DEFS += -DCONFIG_H3900
..
<boot-sa.s>
..
#ifdef CONFIG_PXA250
# include "pxa250.h"
#else
# include "sa1100.h"
#endif
..
the registers in the code will go as REGNAME_REG instead of <ARCH>_RERGNAME_REG . Some non-common code can be put in <boot-sa<platform>.s>.
regards,
vaibhav
PS: Code snippnets thanks to Carl.
Received on Tue Jul 30 2002 - 19:17:50 EDT
This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:10:43 EDT