[U-Boot] [PATCH 00/15] tools/Makefile cleanup and win32 tool support

Peter Tyser ptyser at xes-inc.com
Thu Mar 5 00:32:50 CET 2009


This patch series attempts to do 2 things:
1. Add support for generating win32 versions of the tools in tools/
2. Cleanup tools/Makefile somewhat

In the process of #1 I couldn't help but work on #2 a bit:)  Let me
know if people would prefer the patches split up.

The win32 tools support is based on the patch found in the email thread
"Add native win32 mkimage support".  It is different from the original
patch in that it:
1. Supports all tools in tools/ (original only supported mkimage)
2. Uses common swap routines instead of re-implementing
3. Got rid of MINGW_COMPILE variable and used HOST* variables instead
4. Updated top-level Makefile to remove all generated *.exe files

Peter Tyser (15):
  tools/Makefile: Remove inappropriate double-tabs
  tools/Makefile: Split variable declarations into multiple lines
  tools/Makefile: Build bmp_logo only when LCD or VIDEO logos are
    enabled
  tools/Makefile: Make img2srec dependent upon CONFIG_CMD_LOADS
  tools/Makefile: Make ubsha1 dependent upon CONFIG_SHA1_CHECK_UB_IMG
  tools/Makefile: Make inca-swap-bytes dependent on CONFIG_INCA_IP
  tools/Makefile: Make envcrc dependent upon CONFIG_ENV_IS_EMBEDDED
  tools/Makefile: Make gen_eth_addr dependent upon CONFIG_CMD_NET
  tools/Makefile: Compile ncb when CONFIG_NETCONSOLE
  gen_eth_addr: Use POSIX rand() and srand()
  elf.h: Add missing int32_t typedef for WIN32 compilers
  Add support for building native win32 tools
  Makefile: Add removal of *.exe file to clean target
  Deleted unused tools/Makefile.win32
  common/Makefile: Conditionally compile env_embedded.o

 Makefile              |    2 +-
 README                |   10 ++
 common/Makefile       |    2 +-
 doc/README.NetConsole |    6 +-
 include/elf.h         |    1 +
 include/image.h       |    2 +
 include/libfdt_env.h  |   12 +++
 include/linux/types.h |    5 +-
 tools/Makefile        |  255 ++++++++++++++++++++++++++++---------------------
 tools/Makefile.win32  |   37 -------
 tools/gen_eth_addr.c  |    6 +-
 tools/mingw_support.c |   79 +++++++++++++++
 tools/mingw_support.h |   48 +++++++++
 tools/mkimage.c       |    4 +
 tools/mkimage.h       |    5 +
 tools/ubsha1.c        |    6 +-
 16 files changed, 321 insertions(+), 159 deletions(-)
 delete mode 100644 tools/Makefile.win32
 create mode 100644 tools/mingw_support.c
 create mode 100644 tools/mingw_support.h



More information about the U-Boot mailing list