summaryrefslogtreecommitdiff
path: root/board/lpc2292sodimm/Makefile
diff options
context:
space:
mode:
authorGary Jennejohn <garyj@jennejohn.org>2007-05-18 17:41:22 +0100
committerPeter Pearse <peter.pearse@arm.com>2007-05-18 17:41:22 +0100
commit7bfebfe484137afcbc0b5e39928dd6243ae3ef68 (patch)
tree2f8d461030a62106c2314451ee149e9ab55e9a11 /board/lpc2292sodimm/Makefile
parent879027daa838d245bf433ca2bb446bedace724f0 (diff)
parent3e3b956906eba9e4ad7931581ecedaad10eccce8 (diff)
downloadu-boot-imx-7bfebfe484137afcbc0b5e39928dd6243ae3ef68.zip
u-boot-imx-7bfebfe484137afcbc0b5e39928dd6243ae3ef68.tar.gz
u-boot-imx-7bfebfe484137afcbc0b5e39928dd6243ae3ef68.tar.bz2
Add support for the Siemens SMN42 board.
Diffstat (limited to 'board/lpc2292sodimm/Makefile')
-rw-r--r--board/lpc2292sodimm/Makefile35
1 files changed, 14 insertions, 21 deletions
diff --git a/board/lpc2292sodimm/Makefile b/board/lpc2292sodimm/Makefile
index 5a30198..18a95d7 100644
--- a/board/lpc2292sodimm/Makefile
+++ b/board/lpc2292sodimm/Makefile
@@ -1,7 +1,6 @@
#
-# (C) Copyright 2002
-# Sysgo Real-Time Solutions, GmbH <www.elinos.com>
-# Marius Groeger <mgroeger@sysgo.de>
+# (C) Copyright 2007
+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# See file CREDITS for list of people who contributed to this
# project.
@@ -24,35 +23,29 @@
include $(TOPDIR)/config.mk
-LIB = lib$(BOARD).a
+LIB = $(obj)lib$(BOARD).a
-OBJS := lpc2292sodimm.o flash.o mmc.o spi.o mmc_hw.o eth.o
-SOBJS := lowlevel_init.o iap_entry.o
+COBJS := flash.o lpc2292sodimm.o
+SOBJTS := lowlevel_init.o
-$(LIB): $(OBJS) $(SOBJS)
- $(AR) crv $@ $(OBJS) $(SOBJS)
+SRCS := $(SOBJTS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+SOBJS := $(addprefix $(obj),$(SOBJTS))
-# this MUST be compiled as thumb code!
-iap_entry.o:
- arm-linux-gcc -D__ASSEMBLY__ -g -Os -fno-strict-aliasing \
- -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ \
- -DTEXT_BASE=0x81500000 -I/home/garyj/proj/LPC/u-boot/include \
- -fno-builtin -ffreestanding -nostdinc -isystem \
- /opt/eldk/arm/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe \
- -DCONFIG_ARM -D__ARM__ -march=armv4t -mtune=arm7tdmi -mabi=apcs-gnu \
- -c -o iap_entry.o iap_entry.S
+$(LIB): $(obj).depend $(OBJS) $(SOBJS)
+ $(AR) crv $@ $(OBJS) $(SOBJS)
clean:
rm -f $(SOBJS) $(OBJS)
distclean: clean
- rm -f $(LIB) core *.bak .depend
+ rm -f $(LIB) core *.bak $(obj).depend
#########################################################################
-.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
- $(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
--include .depend
+sinclude $(obj).depend
#########################################################################