u-boot-brain/tools
Wolfgang Denk 16a354f920 include/asm-offsets.h: automatically generate assembler constants
A recurrent issue is that certain C level constructs like sizeof() or
offsetof() cannot be used in assembler files, which is inconvenient
when such constructs are used in the definition of macro names etc.

To avoid duplication of such definitions (and thus another cause of
problems), we adapt the Linux way to automatically generate the
respective definitions from the respective C header files.

In Linux, this is implemented in include/linux/kbuild.h, Kbuild, and
arch/*/kernel/asm-offsets.c; we adapt the code from the Linux v2.6.36
kernel tree.

We also copy the concept of the include/generated/ directory which can
be used to hold other automatically generated files as well.

We start with an architecture-independent lib/asm-offsets.c which
generates include/generated/generic-asm-offsets.h (included by
include/asm-offsets.h, which is what will be referred to in the actual
source code).  Later this may be extended by architecture-specific
arch/*/lib/asm-offsets.c files that will generate a
include/generated/asm-offsets.h.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
2010-10-26 21:04:34 +02:00
..
bddb Update Hymod Board Database PHP code in "tools" directory 2005-08-12 23:27:18 +02:00
easylogo easylogo: add support for 16-bit RGB565 2010-01-18 00:21:05 +01:00
env tools/env: use host build flags 2010-09-19 19:29:49 +02:00
gdb makefiles: fixes for building build tools 2009-12-02 22:58:46 +01:00
imls tools/imls: fix comment in Makefile 2010-10-12 21:49:28 +02:00
logos logos: add Freescale logo 2010-09-21 22:44:53 +02:00
scripts include/asm-offsets.h: automatically generate assembler constants 2010-10-26 21:04:34 +02:00
updater cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
.gitignore tools: update .gitignore 2010-09-19 19:29:49 +02:00
bin2header.c Add 'license' command to U-Boot command line 2008-08-18 23:21:49 +02:00
bmp_logo.c compiler.h: unify system ifdef cruft here 2009-07-19 21:41:46 +02:00
default_image.c tools: mkimage: split code into core, default and FIT image specific 2009-09-10 22:58:48 +02:00
envcrc.c Revert "env: only build env_embedded and envcrc when needed" 2009-10-27 20:46:31 +01:00
fdt_host.h [new uImage] Add libfdt support to mkimage 2008-02-29 16:00:24 +01:00
fit_image.c tools/fit_image.c: Remove unused fit_set_header() 2009-12-05 01:12:45 +01:00
gen_eth_addr.c gen_eth_addr: Use POSIX rand() and srand() 2009-04-04 01:09:56 +02:00
getline.c getline: split out for darwin systems 2010-01-26 00:07:13 +01:00
getline.h getline: split out for darwin systems 2010-01-26 00:07:13 +01:00
img2brec.sh Fix file permissions 2005-07-21 11:22:21 +02:00
img2srec.c img2srec: use standard types 2009-11-24 23:43:18 +01:00
imximage.c mkimage: correct spelling error in imximage 2010-04-30 05:23:25 -05:00
imximage.h mkimage: SEGFAULT with imximage on 64 bit systems 2010-02-24 00:04:03 +01:00
inca-swap-bytes.c * Patch by Arun Dharankar, 4 Apr 2003: 2003-04-05 00:53:31 +00:00
jtagconsole Blackfin: jtagconsole: disable output processing 2010-07-25 15:17:23 -04:00
kwbimage.c kwbimage.c: Fix compile warning when building on 64 bit systems (again) 2009-09-15 21:32:19 +02:00
kwbimage.h mkimage: Add Kirkwood Boot Image support (kwbimage) 2009-09-10 22:58:48 +02:00
Makefile Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE 2010-10-18 22:07:10 +02:00
mingw_support.c getline: split out for darwin systems 2010-01-26 00:07:13 +01:00
mingw_support.h getline: split out for darwin systems 2010-01-26 00:07:13 +01:00
mkimage.c mkimage: Fix strict-aliasing compiler warning 2010-04-10 00:30:26 +02:00
mkimage.h mkimage: Add Freescale imx Boot Image support (imximage) 2010-01-25 23:58:29 +01:00
mpc86x_clk.c * Patch by Anders Larsen, 18 Sep 2003: 2003-10-08 22:14:02 +00:00
ncb.c ncb: Check return value of write() 2009-04-28 01:16:46 +02:00
netconsole tools/netconsole: use ncb automatically if available 2009-09-15 22:55:45 +02:00
os_support.c getline: split out for darwin systems 2010-01-26 00:07:13 +01:00
os_support.h getline: split out for darwin systems 2010-01-26 00:07:13 +01:00
setlocalversion setlocalversion: add some more fallbacks for git describe 2010-09-21 21:33:16 +02:00
ubsha1.c ubsha1: drop unnecessary includes/prototypes 2010-01-21 22:59:29 +01:00