[U-Boot] [PATCH 0/7] Crazy patches (Nightmare of <stdint.h>)

Masahiro Yamada yamada.m at jp.panasonic.com
Mon Dec 22 11:15:56 CET 2014


Commit 0d296cc2d3b (Provide option to avoid defining a custome version of uintptr_t)
and commit 4166ecb247 (Add some standard headers external code might need)
made a horrible decision.

I raised a flag in the following threads:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/203954
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/198550/focus=205880

It looks like Simon is not understanding me.
Nor does anybody else have any interest in this topic.

This series is here to show what will happen next
and how horrible it is.



Masahiro Yamada (7):
  types.h: define (u)int8_t, (u)int16_t, (u)int32_t based on compiler
    info (MAD)
  types.h: define s8, s16, s32, s64, u8, u16, u32, u64 based on compiler
    info (MAD)
  types: defined __s8, __16, __s32, __s64, __u8, __u16, __u32, __u64
    based on compiler info (MAD)
  Check if compiler-provided <stdint.h> and <inttypes.h> are available
    if CONFIG_USE_STDINT=y (MAD)
  Replace "llx" with PRIx64 to fix warnings on sandbox (MAD)
  Use PRIx32 etc. to print out 32bit-width variable (MAD)
  Make BITS_PER_LONG compiler-dependent (MAD)

 Makefile                            |   2 +-
 arch/arc/include/asm/types.h        |  34 +++++
 arch/arm/include/asm/types.h        |  37 +++++
 arch/avr32/include/asm/types.h      |  36 +++++
 arch/blackfin/include/asm/types.h   |  36 +++++
 arch/m68k/include/asm/types.h       |  37 +++++
 arch/microblaze/include/asm/types.h |  36 +++++
 arch/mips/include/asm/types.h       |  36 +++++
 arch/nds32/include/asm/types.h      |  36 ++++-
 arch/nios2/include/asm/types.h      |  35 +++++
 arch/openrisc/include/asm/types.h   |  35 +++++
 arch/powerpc/include/asm/types.h    |  36 +++++
 arch/sandbox/include/asm/types.h    |  34 +++++
 arch/sh/include/asm/types.h         |  35 +++++
 arch/sparc/include/asm/types.h      |  35 +++++
 arch/x86/include/asm/types.h        |  35 +++++
 common/fdt_support.c                |   2 +-
 config.mk                           |  12 ++
 disk/part_efi.c                     |  12 +-
 fs/fat/fat.c                        |  35 ++---
 include/inttypes.h                  | 287 ------------------------------------
 include/linux/types.h               |  15 ++
 include/u-boot/zlib.h               |   2 +-
 scripts/gcc-have-stdint.sh          |  21 +++
 24 files changed, 607 insertions(+), 314 deletions(-)
 delete mode 100644 include/inttypes.h
 create mode 100755 scripts/gcc-have-stdint.sh

-- 
1.9.1



More information about the U-Boot mailing list