u-boot/drivers
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
..
bios_emulator Replace space and tab checks with isblank 2011-10-17 22:25:34 +02:00
block fsl_sata: Fix compile error when CONFIG_LBA48 is not defined 2011-10-09 17:57:54 -05:00
dma fsl_dma: fix support for 83xx DMA engine 2011-07-06 19:09:27 -05:00
fpga FPGA: constify Lattice FPGA code 2011-09-05 11:41:42 +02:00
gpio kw_gpio: fix error in kw_gpio_direction_input 2011-10-17 22:25:33 +02:00
hwmon hwmon: do not init sensors on startup 2011-08-04 23:30:38 +02:00
i2c I2C: mv_i2c: fix multi-bus init issue 2011-10-03 11:50:09 +02:00
input Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
misc cosmetic: fsl_pmic: cosmetic for the help message 2011-09-30 22:01:00 +02:00
mmc mmc: omap: config VMMC, MMC1_PBIAS 2011-09-30 22:00:55 +02:00
mtd Merge branch 'master' of git://git.denx.de/u-boot-mips 2011-10-12 22:47:15 +02:00
net DM9000:Add a byte swap macro for dm9000 io operation. 2011-10-17 22:25:33 +02:00
pci pci: move pcidelay code to new location just before PCI bus scan 2011-10-15 22:16:53 +02:00
pcmcia PPC: Cleanup tqm8xx_pcmcia.c 2011-10-05 22:03:09 +02:00
power mmc: omap: config VMMC, MMC1_PBIAS 2011-09-30 22:00:55 +02:00
qe fsl: Change fsl_phy_enet_if to phy_interface_t 2011-04-20 15:09:35 -05:00
rtc rtc, davinci: add support for davinci internal RTC 2011-09-30 22:00:58 +02:00
serial Move timestamp and version files into 'generated' subdir 2011-10-17 23:57:00 +02:00
spi Blackfin: bfin_spi: fix build error when DEBUG is defined 2011-10-17 22:25:33 +02:00
twserial Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
usb drivers/usb/host/ohci-hcd.c: fix warning: variable ... set but not used 2011-10-09 23:24:49 +02:00
video video: Moving mx3fb.c to CONFIG_VIDEO 2011-10-17 22:25:32 +02:00
watchdog AT91: fix at91sam_wdt.c to reworked header files 2011-05-18 07:56:51 +02:00