u-boot/include/linux
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
..
byteorder Cleanup for GCC-4.x 2005-10-13 16:45:02 +02:00
mtd mtd: OneNAND: add support for OneNAND manufactured by Numonyx 2010-10-11 15:15:45 -05:00
unaligned ARM: Use Linux version for unaligned access code 2009-11-07 15:56:30 -06:00
usb USB-CDC: Fix coding style issues 2010-09-20 21:57:17 +02:00
apm_bios.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
bitops.h Correct ffs/fls regression for PowerPC etc 2009-09-17 22:45:31 +02:00
compiler-gcc.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
compiler-gcc4.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
compiler.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
config.h Initial revision 2000-08-21 15:05:47 +00:00
crc32.h Coding style cleanup, update CHANGELOG. 2008-12-16 01:02:17 +01:00
ctype.h Initial revision 2000-08-21 15:05:47 +00:00
edd.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
err.h Update MTD to that of Linux 2.6.22.1 2008-08-12 11:31:15 -05:00
fb.h Add linux framebuffer header include/linux/fb.h 2010-10-22 00:05:05 +02:00
ioctl.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
ioport.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
kbuild.h include/asm-offsets.h: automatically generate assembler constants 2010-10-26 21:04:34 +02:00
list.h Coding style cleanup, update CHANGELOG 2008-09-13 02:23:05 +02:00
lzo.h add lzop decompression support 2009-12-05 01:30:23 +01:00
math64.h UBIFS: Implement read-only UBIFS support in U-Boot 2009-03-20 22:39:15 +01:00
mc146818rtc.h Replace BCD2BIN and BIN2BCD macros with inline functions 2009-08-25 12:57:55 +02:00
mii.h Merge with /home/wd/git/u-boot/custodian/u-boot-avr32; code cleanup. 2007-04-18 16:53:52 +02:00
poison.h update linux/list 2008-08-31 04:24:51 +02:00
posix_types.h Initial revision 2001-04-28 17:59:11 +00:00
rbtree.h Add Red Black Tree support 2008-10-18 21:54:01 +02:00
screen_info.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
stat.h nios2: add struct stat support in linux/stat.h 2010-04-02 12:28:40 -04:00
stddef.h Initial revision 2002-03-31 12:34:56 +00:00
string.h Scheduled for removal: strnicmp() which is unused 2006-05-03 01:00:39 +02:00
time.h Initial revision 2002-03-08 21:31:05 +00:00
types.h UBI: Add basic UBI support to U-Boot (Part 6/8) 2008-11-19 20:34:39 +01:00