u-boot-brain/arch/arm/cpu/armv7
Simon Glass efb2172ece Move timestamp and version files into 'generated' subdir
There is a rather subtle build problem where the build time stamp is not
updated for out-of-tree builds if there exists an in-tree build which
has a valid timestamp file. So if you do an in-tree build, then an
out-of-tree build your timestamp will not change.

The correct timestamp_autogenerated.h lives in the object tree, but it
is not always found there. The source still lives in the source tree and
when compiling version.h, it includes timestamp_autogenerated.h. Since
the current directory is always searched first, this will come from the
source tree rather than the object tree if it exists there. This affects
dependency generation also, which means that common/cmd_version.o will not
even be rebuilt if you have ever done an in-tree build.

A similar problem exists with the version file.

This change moves both files into the 'generated' subdir, which is already
used for asm-offsets.h. Then timestamp.h and version.h are updated to
include the files from there.

There are other places where these generated files are included, but I
cannot see why these don't just use the timestamp.h and version.h headers.
So this change also tidies that up.

I have tested this with in- and out-of-tree builds, but not SPL. I have
looked at various other options for fixing this, including sed on the dep
files, -I- and -include flags to gcc, but I don't think they can be made
to work. Comments welcome.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
2011-10-17 23:57:00 +02:00
..
mx5 MX5: Clean up the output of "clocks" command 2011-09-30 22:01:05 +02:00
omap-common Move timestamp and version files into 'generated' subdir 2011-10-17 23:57:00 +02:00
omap3 omap3: Fix compile warning 2011-09-30 22:00:55 +02:00
omap4 omap-common/omap4: relocate early UART clock setup 2011-09-30 22:00:54 +02:00
s5p-common Timer: Remove reset_timer() for non-Nios2 arches 2011-07-26 14:53:30 +02:00
s5pc1xx armv7: adapt s5pc1xx to the new cache maintenance framework 2011-07-04 10:55:25 +02:00
s5pc2xx S5PC2XX: clock: support pwm clock for evt1 (cpu revision 1) 2011-05-26 19:33:25 +09:00
tegra2 tegra2: fix warning: "assert" redefined 2011-09-10 16:17:25 +02:00
u8500 Timer: Remove set_timer completely 2011-07-26 14:52:17 +02:00
cache_v7.c armv7: cache: remove flush on un-aligned invalidate 2011-09-04 11:36:16 +02:00
config.mk ARM: Rename arch/arm/cpu/arm_cortexa8 to armv7 2010-07-05 19:59:55 -04:00
cpu.c omap: add MMC and FAT support to SPL 2011-08-03 12:49:20 +02:00
Makefile omap: add basic SPL support 2011-08-03 12:49:20 +02:00
start.S omap: add MMC and FAT support to SPL 2011-08-03 12:49:20 +02:00
syslib.c ARMV7: Vexpress: fix build errors 2010-12-08 23:44:21 +01:00
u-boot.lds armv7: start.S: fixes and enhancements for SPL 2011-08-03 12:49:20 +02:00