diff options
author | Wolfgang Denk <wd@denx.de> | 2007-06-06 16:18:01 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-06-06 16:18:01 +0200 |
commit | d1246a4bb1ae9502ff540291423f1bb02d1e808c (patch) | |
tree | 3e71ba3824187fc2334d906ed87cb22f922b9169 /board/lpc2292sodimm/Makefile | |
parent | 1cf67563333b1ae12e9fe19fcdff0c9b220e822a (diff) | |
parent | 7bfebfe484137afcbc0b5e39928dd6243ae3ef68 (diff) | |
download | u-boot-imx-d1246a4bb1ae9502ff540291423f1bb02d1e808c.zip u-boot-imx-d1246a4bb1ae9502ff540291423f1bb02d1e808c.tar.gz u-boot-imx-d1246a4bb1ae9502ff540291423f1bb02d1e808c.tar.bz2 |
Merge with /home/wd/git/u-boot/custodian/u-boot-arm
Diffstat (limited to 'board/lpc2292sodimm/Makefile')
-rw-r--r-- | board/lpc2292sodimm/Makefile | 35 |
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 ######################################################################### |