diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-10-24 17:51:57 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-01-07 02:59:50 -0500 |
commit | e7e684b10d73a303902208594c7c3e7e0d753282 (patch) | |
tree | aa4007ad041b74e275116dfce3cd7010b5191968 /board/bf537-stamp/Makefile | |
parent | b9eecc342f767b50e1476fbc1aad7d88dd4ce5eb (diff) | |
download | u-boot-imx-e7e684b10d73a303902208594c7c3e7e0d753282.zip u-boot-imx-e7e684b10d73a303902208594c7c3e7e0d753282.tar.gz u-boot-imx-e7e684b10d73a303902208594c7c3e7e0d753282.tar.bz2 |
Blackfin: fix out-of-tree building with ldscripts
Many of the Blackfin board linker scripts are preprocessed, so make sure we
output the linker script into the build tree rather than the source tree.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board/bf537-stamp/Makefile')
-rw-r--r-- | board/bf537-stamp/Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/board/bf537-stamp/Makefile b/board/bf537-stamp/Makefile index e5481bf..e5ef9af 100644 --- a/board/bf537-stamp/Makefile +++ b/board/bf537-stamp/Makefile @@ -35,12 +35,11 @@ SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS)) SOBJS := $(addprefix $(obj),$(SOBJS)) -$(LIB): $(obj).depend $(OBJS) $(SOBJS) u-boot.lds +$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS) -u-boot.lds: u-boot.lds.S - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P -Ubfin $^ > $@.tmp - mv -f $@.tmp $@ +$(obj)u-boot.lds: u-boot.lds.S + $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@ clean: rm -f $(SOBJS) $(OBJS) |