]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - examples/Makefile
SPARC: Added generic support for SPARC architecture.
[people/ms/u-boot.git] / examples / Makefile
index 423a79b2dd5a547c1a2e5db5d780e277aa86895f..66b354daaf67d82dd4893f59a7050f2158afa79d 100644 (file)
@@ -30,8 +30,12 @@ LOAD_ADDR = 0x40000
 endif
 
 ifeq ($(ARCH),arm)
+ifeq ($(BOARD),omap2420h4)
+LOAD_ADDR = 0x80300000
+else
 LOAD_ADDR = 0xc100000
 endif
+endif
 
 ifeq ($(ARCH),mips)
 LOAD_ADDR = 0x80200000 -T mips.lds
@@ -61,6 +65,14 @@ ifeq ($(ARCH),avr32)
 LOAD_ADDR = 0x00000000
 endif
 
+ifeq ($(ARCH),sh)
+LOAD_ADDR = 0x8C000000
+endif
+
+ifeq ($(ARCH),sparc)
+LOAD_ADDR = 0x00000000 -L $(gcclibdir) -T sparc.lds
+endif
+
 include $(TOPDIR)/config.mk
 
 ELF    = hello_world
@@ -68,9 +80,9 @@ SREC  = hello_world.srec
 BIN    = hello_world.bin
 
 ifeq ($(CPU),mpc8xx)
-ELF    = test_burst
-SREC   = test_burst.srec
-BIN    = test_burst.bin
+ELF    += test_burst
+SREC   += test_burst.srec
+BIN    += test_burst.bin
 endif
 
 ifeq ($(ARCH),i386)
@@ -88,7 +100,7 @@ endif
 ifeq ($(ARCH),blackfin)
 ELF    += smc91111_eeprom
 SREC   += smc91111_eeprom.srec
-BIN    += smc91111_eeprom.bin
+BIN    += smc91111_eeprom.bin
 endif
 
 # The following example is pretty 8xx specific...
@@ -157,7 +169,7 @@ $(LIB):     $(obj).depend $(LIBOBJS)
 $(ELF):
 $(obj)%:       $(obj)%.o $(LIB)
                $(LD) -g $(EX_LDFLAGS) -Ttext $(LOAD_ADDR) \
-                       -o $@ -e $(notdir $(<:.o=)) $< $(LIB) \
+                       -o $@ -e $(SYM_PREFIX)$(notdir $(<:.o=)) $< $(LIB) \
                        -L$(gcclibdir) -lgcc
 
 $(SREC):