
Dear Stefano Babic,
In message 1309426950-20987-1-git-send-email-sbabic@denx.de you wrote:
On i.MX5, the asm-offsets.h file is not yet generated as it should be.
Signed-off-by: Stefano Babic sbabic@denx.de CC: Matthias Weisser weisserm@arcor.de
arch/arm/cpu/armv7/mx5/Makefile | 13 +++++ arch/arm/cpu/armv7/mx5/asm-offsets.c | 76 +++++++++++++++++++++++++++ arch/arm/include/asm/arch-mx5/asm-offsets.h | 55 ------------------- arch/arm/include/asm/arch-mx5/imx-regs.h | 18 ++++++ 4 files changed, 107 insertions(+), 55 deletions(-) create mode 100644 arch/arm/cpu/armv7/mx5/asm-offsets.c delete mode 100644 arch/arm/include/asm/arch-mx5/asm-offsets.h
diff --git a/arch/arm/cpu/armv7/mx5/Makefile b/arch/arm/cpu/armv7/mx5/Makefile index e8be9c9..5d53f6a 100644 --- a/arch/arm/cpu/armv7/mx5/Makefile +++ b/arch/arm/cpu/armv7/mx5/Makefile @@ -45,4 +45,17 @@ include $(SRCTREE)/rules.mk
sinclude $(obj).depend
+lowlevel_init.o : $(TOPDIR)/include/asm/arch/asm-offsets.h
#########################################################################
+$(TOPDIR)/include/asm/arch/asm-offsets.h: $(TOPDIR)/include/autoconf.mk.dep \
- ./asm-offsets.s
- @echo Generating $@
- $(TOPDIR)/tools/scripts/make-asm-offsets ./asm-offsets.s $@
+asm-offsets.s: $(TOPDIR)/include/autoconf.mk.dep \
- ./asm-offsets.c
- $(CC) -DDO_DEPS_ONLY \
$(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \
-o $@ ./asm-offsets.c -c -S
See previous message. It is inherently wrong to copy these lines to several (and potentially many) Makefiles.
Best regards,
Wolfgang Denk