summaryrefslogtreecommitdiff
path: root/mmc_spl
diff options
context:
space:
mode:
authorChander Kashyap <chander.kashyap@linaro.org>2011-06-02 18:07:32 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-08-04 12:57:34 +0200
commit43c52f9f94b2678e46ebb1ee2d2242de1c7f513b (patch)
treec949e55478f21644b4a0f9ff503a19b60e912053 /mmc_spl
parentfd90b0d0501715531358d8e4ddc5a82fd1782e91 (diff)
downloadu-boot-imx-43c52f9f94b2678e46ebb1ee2d2242de1c7f513b.zip
u-boot-imx-43c52f9f94b2678e46ebb1ee2d2242de1c7f513b.tar.gz
u-boot-imx-43c52f9f94b2678e46ebb1ee2d2242de1c7f513b.tar.bz2
SMDKV310: MMC_SPL: Fix building when using "make O="
Fixes dependency build error with "make O=" option. "make O=" option is used to specify output directory. Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Diffstat (limited to 'mmc_spl')
-rw-r--r--mmc_spl/board/samsung/smdkv310/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/mmc_spl/board/samsung/smdkv310/Makefile b/mmc_spl/board/samsung/smdkv310/Makefile
index de2c1a2..fdfd015 100644
--- a/mmc_spl/board/samsung/smdkv310/Makefile
+++ b/mmc_spl/board/samsung/smdkv310/Makefile
@@ -40,7 +40,7 @@ CFLAGS += -DCONFIG_SPL_BUILD
SOBJS = start.o mem_setup.o lowlevel_init.o
COBJS = mmc_boot.o
-SRCS := $(addprefix $(obj),$(SOBJS:.o=.S) $(COBJS:.o=.c))
+SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
__OBJS := $(SOBJS) $(COBJS)
LNDIR := $(OBJTREE)/mmc_spl/board/$(BOARDDIR)
@@ -76,25 +76,25 @@ $(mmcobj)u-boot.lds: $(LDSCRIPT)
# create symbolic links for common files
# from cpu directory
-$(obj)start.S:
+start.S:
@rm -f $@
@ln -s $(TOPDIR)/arch/arm/cpu/armv7/start.S $@
# from board directory
-$(obj)mem_setup.S:
+mem_setup.S:
@rm -f $@
@ln -s $(TOPDIR)/board/samsung/smdkv310/mem_setup.S $@
-$(obj)lowlevel_init.S:
+lowlevel_init.S:
@rm -f $@
@ln -s $(TOPDIR)/board/samsung/smdkv310/lowlevel_init.S $@
#########################################################################
-$(obj)%.o: $(obj)%.S
+$(obj)%.o: %.S
$(CC) $(AFLAGS) -c -o $@ $<
-$(obj)%.o: $(obj)%.c
+$(obj)%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
# defines $(obj).depend target