u-boot/drivers/serial
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
..
altera_jtag_uart.c altera_jtag_uart: bypass when no jtag connection 2010-04-24 18:21:23 -04:00
altera_uart.c nios2: Fix outx/writex parameter order in io.h 2010-04-02 12:28:41 -04:00
arm_dcc.c stdio/device: rework function naming convention 2009-07-18 00:27:46 +02:00
atmel_usart.c ATMEL: fix related common atmel driver files 2011-05-18 07:56:51 +02:00
atmel_usart.h Coding Style cleanup 2010-10-27 22:48:30 +02:00
Makefile sandbox: Add serial uart 2011-10-17 23:56:58 +02:00
mcfuart.c ColdFire: Update uart_port_conf in serial driver 2010-03-24 11:09:08 -05:00
ns9750_serial.c serial: move CFG_NS9750_UART to CONFIG_NS9750_UART 2008-08-13 01:40:39 +02:00
ns16550.c ns16550: change to allow 32 bit access to registers 2011-10-01 21:54:16 +02:00
opencores_yanu.c Coding style cleanup, update CHANGELOG. 2010-05-26 23:51:22 +02:00
s3c64xx.c Move DECLARE_GLOBAL_DATA_PTR to file scope 2010-12-21 11:33:36 +01:00
s3c4510b_uart.c drivers/serial: Move conditional compilation to Makefile for CONFIG_* macros 2008-08-03 02:24:52 +02:00
s3c4510b_uart.h drivers/serial : move serial drivers to drivers/serial 2007-11-25 23:24:16 +01:00
sandbox.c sandbox: Add serial uart 2011-10-17 23:56:58 +02:00
serial.c serial: drop useless ctlr field 2011-07-26 16:38:05 +02:00
serial_clps7111.c arm720t/clps7111: move serial driver to drivers/serial 2009-03-29 23:01:42 +02:00
serial_imx.c imx: move serial driver to drivers/serial 2009-03-30 18:58:38 +02:00
serial_ixp.c trigger hardware watchdog in IXP42x serial driver 2011-06-23 08:24:55 +02:00
serial_ks8695.c ks8695: move serial driver to drivers/serial 2009-03-29 23:01:42 +02:00
serial_lh7a40x.c lh7a40x: move serial driver to drivers/serial 2009-06-12 20:39:53 +02:00
serial_lpc2292.c Update CHANGELOG, coding style cleanup. 2009-04-05 00:27:57 +02:00
serial_max3100.c drivers/serial: Move conditional compilation to Makefile for CONFIG_* macros 2008-08-03 02:24:52 +02:00
serial_mxc.c IMX: MX31: Cleanup include files and drop nasty #ifdef in drivers 2011-04-27 19:38:05 +02:00
serial_netarm.c ppc4xx: Remove now unused CONFIG_UART1_CONSOLE 2010-09-23 09:02:05 +02:00
serial_pl01x.c Serial: p1011: new vendor init options 2011-05-12 19:09:07 +02:00
serial_pl01x.h Serial: p1011: new vendor init options 2011-05-12 19:09:07 +02:00
serial_pxa.c serial: drop useless ctlr field 2011-07-26 16:38:05 +02:00
serial_s3c24x0.c serial: drop useless ctlr field 2011-07-26 16:38:05 +02:00
serial_s3c44b0.c s3c44b0: move serial driver to drivers/serial 2009-03-29 23:01:41 +02:00
serial_s5p.c serial: drop useless ctlr field 2011-07-26 16:38:05 +02:00
serial_sa1100.c sa1100: move serial driver to drivers/serial 2009-03-29 23:01:41 +02:00
serial_sh.c sh: serial: Update serial driver for SH 2011-01-11 21:03:25 +09:00
serial_sh.h sh: Add Renesas rsk7264 board 2011-08-22 13:16:08 +09:00
serial_tegra2.c serial: Add Tegra2 serial port support 2011-02-21 08:30:55 +01:00
serial_tegra2.h serial: Add Tegra2 serial port support 2011-02-21 08:30:55 +01:00
serial_xuartlite.c serial: uartlite: Support for SERIAL_MULTI 2011-10-09 23:24:47 +02:00
usbtty.c stdio/device: rework function naming convention 2009-07-18 00:27:46 +02:00
usbtty.h Move timestamp and version files into 'generated' subdir 2011-10-17 23:57:00 +02:00