summaryrefslogtreecommitdiff
path: root/rules.mk
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2011-09-05 04:32:28 +0000
committerWolfgang Denk <wd@denx.de>2011-09-07 21:41:27 +0200
commita4814a69d3bca6ee05f4bfc4c4e965e8fcd544e6 (patch)
treedee5379d7a265ab6c91a560252f83e7cacc1831a /rules.mk
parent99ffccbd3e5b7bc715e2eed6ea6d36f4020b56d8 (diff)
downloadu-boot-imx-a4814a69d3bca6ee05f4bfc4c4e965e8fcd544e6.zip
u-boot-imx-a4814a69d3bca6ee05f4bfc4c4e965e8fcd544e6.tar.gz
u-boot-imx-a4814a69d3bca6ee05f4bfc4c4e965e8fcd544e6.tar.bz2
Makefile : fix generation of cpu related asm-offsets.h
commit 0edf8b5b2fa0d210ebc4d6da0fd1aceeb7e44e47 breaks building on a different directory with the O= parameter. The patch wil fix this issue, generating always asm-offsets.h before the other targets. Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Matthias Weisser <weisserm@arcor.de> CC: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk10
1 files changed, 0 insertions, 10 deletions
diff --git a/rules.mk b/rules.mk
index a6bae62..d79fcd3 100644
--- a/rules.mk
+++ b/rules.mk
@@ -42,14 +42,4 @@ $(HOSTOBJS): $(obj)%.o: %.c
$(NOPEDOBJS): $(obj)%.o: %.c
$(HOSTCC) $(HOSTCFLAGS_NOPED) $(HOSTCFLAGS_$(@F)) $(HOSTCFLAGS_$(BCURDIR)) -o $@ $< -c
-$(TOPDIR)/include/asm/arch/asm-offsets.h: $(TOPDIR)/include/autoconf.mk.dep \
- $(TOPDIR)/$(CPUDIR)/$(SOC)/asm-offsets.s
- @echo Generating $@
- $(TOPDIR)/tools/scripts/make-asm-offsets $(TOPDIR)/$(CPUDIR)/$(SOC)/asm-offsets.s $@
-
-$(TOPDIR)/$(CPUDIR)/$(SOC)/asm-offsets.s: $(TOPDIR)/include/autoconf.mk.dep \
- $(TOPDIR)/$(CPUDIR)/$(SOC)/asm-offsets.c
- $(CC) -DDO_DEPS_ONLY \
- $(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \
- -o $@ $(TOPDIR)/$(CPUDIR)/$(SOC)/asm-offsets.c -c -S
#########################################################################