public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH/next v3 00/28] tools/Makefile cleanup and win32 tool support
@ 2009-03-13 23:54 Peter Tyser
  2009-03-13 23:54 ` [U-Boot] [PATCH/next v3 01/28] Makefile: Make autoconf.mk a dependency of the depend target Peter Tyser
                   ` (2 more replies)
  0 siblings, 3 replies; 69+ messages in thread
From: Peter Tyser @ 2009-03-13 23:54 UTC (permalink / raw)
  To: u-boot

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

Changes since v1:
- Made changes recommended by Mike Frysinger
  * Rewordings, generic os_support.[ch] files, style changes, define
    __KERNEL_STRICT_NAMES for tool builds
- Removed symlinking of header/source files into tools/
  * The original code created build rules for files to be symlinked into
    the tools directory which had some shortcomings:
      - 2 make rules for every file - 1 for linking, 1 for compilation
      - Ugly clean target (rm specific files which were symlinks)
      - dependencies weren't auto-generated
- Auto-generated dependencies for tools/ files
- Remove individual file build rules in favor of a few generic build rules
- Cleaned up HOSTARCH, HOSTOS, HOST_CFLAGS, and HOST_LDFLAGS
- Rebased on TOT

Changes since v2:
- Rebased on "next" branch
- Updated tools/.gitignore
- Moved zlib.h and bzlib.h into include/u-boot/

The changeset seem to grow with every revision, I hope third time's
the charm:)

Peter Tyser (28):
  Makefile: Make autoconf.mk a dependency of the depend target
  Makefile: Add removal of *.exe files to clean target
  common/Makefile: Conditionally compile env_embedded.o
  elf.h: Use stdint.h to provide standard typedefs for WIN32
  Rename include/zlib.h to include/u-boot/zlib.h
  Rename include/bzlib.h to include/u-boot/bzlib.h
  gen_eth_addr: Use POSIX rand() and srand()
  tools/Makefile: Remove HOSTARCH HOSTOS defines
  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
  tools/Makefile: Add tools/ to the include search path
  tools: Remove unecessary symlinking of zlib.h
  tools/Makefile: Add libfdt/ to the include search path
  tools/Makefile: Remove symlinks for fdt targets
  tools/Makefile: Dynamically generate libfdt object dependencies
  tools/Makefile: Remove symlinks for remaining source files
  tools/Makefile: Use auto-generated object file dependencies
  tools/Makefile: Create generic build rules
  tools/Makefile: Simplify HOST_CFLAGS/HOST_LDFLAGS generation
  Add support for building native win32 tools
  Delete now unused tools/Makefile.win32

 Makefile                       |   22 ++--
 README                         |   10 ++
 board/mpl/common/common_util.c |    2 +-
 common/Makefile                |    2 +-
 common/cmd_bootm.c             |    4 +-
 doc/README.NetConsole          |    6 +-
 fs/cramfs/uncompress.c         |    2 +-
 include/elf.h                  |    7 +-
 include/image.h                |    2 +
 include/libfdt_env.h           |   12 ++
 include/{ => u-boot}/bzlib.h   |    0
 include/{ => u-boot}/zlib.h    |    0
 lib_arm/bootm.c                |    2 +-
 lib_avr32/bootm.c              |    2 +-
 lib_generic/bzlib_private.h    |    2 +-
 lib_generic/crc32.c            |    2 +-
 lib_generic/gunzip.c           |    2 +-
 lib_generic/zlib.c             |    2 +-
 lib_i386/bootm.c               |    2 +-
 lib_m68k/bootm.c               |    4 +-
 lib_microblaze/bootm.c         |    2 +-
 lib_mips/bootm.c               |    2 +-
 lib_ppc/bootm.c                |    4 +-
 tools/.gitignore               |   12 --
 tools/Makefile                 |  313 ++++++++++++++++------------------------
 tools/Makefile.win32           |   37 -----
 tools/gen_eth_addr.c           |    6 +-
 tools/mingw_support.c          |   79 ++++++++++
 tools/mingw_support.h          |   51 +++++++
 tools/mkimage.h                |    5 +
 tools/os_support.c             |   24 +++
 tools/os_support.h             |   29 ++++
 tools/ubsha1.c                 |    3 +
 33 files changed, 370 insertions(+), 284 deletions(-)
 rename include/{ => u-boot}/bzlib.h (100%)
 rename include/{ => u-boot}/zlib.h (100%)
 delete mode 100644 tools/Makefile.win32
 create mode 100644 tools/mingw_support.c
 create mode 100644 tools/mingw_support.h
 create mode 100644 tools/os_support.c
 create mode 100644 tools/os_support.h

^ permalink raw reply	[flat|nested] 69+ messages in thread

end of thread, other threads:[~2009-04-27 22:52 UTC | newest]

Thread overview: 69+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-13 23:54 [U-Boot] [PATCH/next v3 00/28] tools/Makefile cleanup and win32 tool support Peter Tyser
2009-03-13 23:54 ` [U-Boot] [PATCH/next v3 01/28] Makefile: Make autoconf.mk a dependency of the depend target Peter Tyser
2009-03-13 23:54   ` [U-Boot] [PATCH/next v3 02/28] Makefile: Add removal of *.exe files to clean target Peter Tyser
2009-03-13 23:54     ` [U-Boot] [PATCH/next v3 03/28] common/Makefile: Conditionally compile env_embedded.o Peter Tyser
2009-03-13 23:54       ` [U-Boot] [PATCH/next v3 04/28] elf.h: Use stdint.h to provide standard typedefs for WIN32 Peter Tyser
2009-03-13 23:54         ` [U-Boot] [PATCH/next v3 05/28] Rename include/zlib.h to include/u-boot/zlib.h Peter Tyser
2009-03-13 23:54           ` [U-Boot] [PATCH/next v3 06/28] Rename include/bzlib.h to include/u-boot/bzlib.h Peter Tyser
2009-03-13 23:54             ` [U-Boot] [PATCH/next v3 07/28] gen_eth_addr: Use POSIX rand() and srand() Peter Tyser
2009-03-13 23:54               ` [U-Boot] [PATCH/next v3 08/28] tools/Makefile: Remove HOSTARCH HOSTOS defines Peter Tyser
2009-03-13 23:54                 ` [U-Boot] [PATCH/next v3 09/28] tools/Makefile: Remove inappropriate double-tabs Peter Tyser
2009-03-13 23:54                   ` [U-Boot] [PATCH/next v3 10/28] tools/Makefile: Split variable declarations into multiple lines Peter Tyser
2009-03-13 23:54                     ` [U-Boot] [PATCH/next v3 11/28] tools/Makefile: Build bmp_logo only when LCD or VIDEO logos are enabled Peter Tyser
2009-03-13 23:54                       ` [U-Boot] [PATCH/next v3 12/28] tools/Makefile: Make img2srec dependent upon CONFIG_CMD_LOADS Peter Tyser
2009-03-13 23:54                         ` [U-Boot] [PATCH/next v3 13/28] tools/Makefile: Make ubsha1 dependent upon CONFIG_SHA1_CHECK_UB_IMG Peter Tyser
2009-03-13 23:54                           ` [U-Boot] [PATCH/next v3 14/28] tools/Makefile: Make inca-swap-bytes dependent on CONFIG_INCA_IP Peter Tyser
2009-03-13 23:54                             ` [U-Boot] [PATCH/next v3 15/28] tools/Makefile: Make envcrc dependent upon CONFIG_ENV_IS_EMBEDDED Peter Tyser
2009-03-13 23:54                               ` [U-Boot] [PATCH/next v3 16/28] tools/Makefile: Make gen_eth_addr dependent upon CONFIG_CMD_NET Peter Tyser
2009-03-13 23:54                                 ` [U-Boot] [PATCH/next v3 17/28] tools/Makefile: Compile ncb when CONFIG_NETCONSOLE Peter Tyser
2009-03-13 23:54                                   ` [U-Boot] [PATCH/next v3 18/28] tools/Makefile: Add tools/ to the include search path Peter Tyser
2009-03-13 23:54                                     ` [U-Boot] [PATCH/next v3 19/28] tools: Remove unecessary symlinking of zlib.h Peter Tyser
2009-03-13 23:54                                       ` [U-Boot] [PATCH/next v3 20/28] tools/Makefile: Add libfdt/ to the include search path Peter Tyser
2009-03-13 23:54                                         ` [U-Boot] [PATCH/next v3 21/28] tools/Makefile: Remove symlinks for fdt targets Peter Tyser
2009-03-13 23:54                                           ` [U-Boot] [PATCH/next v3 22/28] tools/Makefile: Dynamically generate libfdt object dependencies Peter Tyser
2009-03-13 23:54                                             ` [U-Boot] [PATCH/next v3 23/28] tools/Makefile: Remove symlinks for remaining source files Peter Tyser
2009-03-13 23:54                                               ` [U-Boot] [PATCH/next v3 24/28] tools/Makefile: Use auto-generated object file dependencies Peter Tyser
2009-03-13 23:54                                                 ` [U-Boot] [PATCH/next v3 25/28] tools/Makefile: Create generic build rules Peter Tyser
2009-03-13 23:54                                                   ` [U-Boot] [PATCH/next v3 26/28] tools/Makefile: Simplify HOST_CFLAGS/HOST_LDFLAGS generation Peter Tyser
2009-03-13 23:54                                                     ` [U-Boot] [PATCH/next v3 27/28] Add support for building native win32 tools Peter Tyser
2009-03-13 23:54                                                       ` [U-Boot] [PATCH/next v3 28/28] Delete now unused tools/Makefile.win32 Peter Tyser
2009-04-03 23:21                                                         ` Wolfgang Denk
2009-04-03 23:20                                                       ` [U-Boot] [PATCH/next v3 27/28] Add support for building native win32 tools Wolfgang Denk
2009-04-14 22:52                                                         ` Peter Tyser
2009-04-14 23:06                                                           ` Mike Frysinger
2009-04-27 22:41                                                           ` Wolfgang Denk
2009-04-27 22:52                                                             ` Peter Tyser
2009-04-03 23:18                                                     ` [U-Boot] [PATCH/next v3 26/28] tools/Makefile: Simplify HOST_CFLAGS/HOST_LDFLAGS generation Wolfgang Denk
2009-04-03 23:17                                                   ` [U-Boot] [PATCH/next v3 25/28] tools/Makefile: Create generic build rules Wolfgang Denk
2009-04-03 23:16                                                 ` [U-Boot] [PATCH/next v3 24/28] tools/Makefile: Use auto-generated object file dependencies Wolfgang Denk
2009-04-03 23:16                                               ` [U-Boot] [PATCH/next v3 23/28] tools/Makefile: Remove symlinks for remaining source files Wolfgang Denk
2009-04-03 23:16                                             ` [U-Boot] [PATCH/next v3 22/28] tools/Makefile: Dynamically generate libfdt object dependencies Wolfgang Denk
2009-04-03 23:15                                           ` [U-Boot] [PATCH/next v3 21/28] tools/Makefile: Remove symlinks for fdt targets Wolfgang Denk
2009-04-03 23:15                                         ` [U-Boot] [PATCH/next v3 20/28] tools/Makefile: Add libfdt/ to the include search path Wolfgang Denk
2009-04-03 23:15                                       ` [U-Boot] [PATCH/next v3 19/28] tools: Remove unecessary symlinking of zlib.h Wolfgang Denk
2009-04-03 23:14                                     ` [U-Boot] [PATCH/next v3 18/28] tools/Makefile: Add tools/ to the include search path Wolfgang Denk
2009-04-03 23:13                                   ` [U-Boot] [PATCH/next v3 17/28] tools/Makefile: Compile ncb when CONFIG_NETCONSOLE Wolfgang Denk
2009-04-03 23:13                                 ` [U-Boot] [PATCH/next v3 16/28] tools/Makefile: Make gen_eth_addr dependent upon CONFIG_CMD_NET Wolfgang Denk
2009-04-03 23:12                               ` [U-Boot] [PATCH/next v3 15/28] tools/Makefile: Make envcrc dependent upon CONFIG_ENV_IS_EMBEDDED Wolfgang Denk
2009-04-03 23:12                             ` [U-Boot] [PATCH/next v3 14/28] tools/Makefile: Make inca-swap-bytes dependent on CONFIG_INCA_IP Wolfgang Denk
2009-04-03 23:12                           ` [U-Boot] [PATCH/next v3 13/28] tools/Makefile: Make ubsha1 dependent upon CONFIG_SHA1_CHECK_UB_IMG Wolfgang Denk
2009-04-03 23:11                         ` [U-Boot] [PATCH/next v3 12/28] tools/Makefile: Make img2srec dependent upon CONFIG_CMD_LOADS Wolfgang Denk
2009-04-03 23:11                       ` [U-Boot] [PATCH/next v3 11/28] tools/Makefile: Build bmp_logo only when LCD or VIDEO logos are enabled Wolfgang Denk
2009-04-03 23:11                     ` [U-Boot] [PATCH/next v3 10/28] tools/Makefile: Split variable declarations into multiple lines Wolfgang Denk
2009-04-03 23:10                   ` [U-Boot] [PATCH/next v3 09/28] tools/Makefile: Remove inappropriate double-tabs Wolfgang Denk
2009-04-03 23:10                 ` [U-Boot] [PATCH/next v3 08/28] tools/Makefile: Remove HOSTARCH HOSTOS defines Wolfgang Denk
2009-04-03 23:10               ` [U-Boot] [PATCH/next v3 07/28] gen_eth_addr: Use POSIX rand() and srand() Wolfgang Denk
2009-04-03 23:09             ` [U-Boot] [PATCH/next v3 06/28] Rename include/bzlib.h to include/u-boot/bzlib.h Wolfgang Denk
2009-04-13 22:06               ` Peter Tyser
2009-04-03 23:08           ` [U-Boot] [PATCH/next v3 05/28] Rename include/zlib.h to include/u-boot/zlib.h Wolfgang Denk
2009-04-13 21:50             ` Peter Tyser
2009-04-13 21:58               ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-03 23:07         ` [U-Boot] [PATCH/next v3 04/28] elf.h: Use stdint.h to provide standard typedefs for WIN32 Wolfgang Denk
2009-04-03 23:07       ` [U-Boot] [PATCH/next v3 03/28] common/Makefile: Conditionally compile env_embedded.o Wolfgang Denk
2009-04-03 23:06     ` [U-Boot] [PATCH/next v3 02/28] Makefile: Add removal of *.exe files to clean target Wolfgang Denk
2009-04-03 23:05   ` [U-Boot] [PATCH/next v3 01/28] Makefile: Make autoconf.mk a dependency of the depend target Wolfgang Denk
2009-03-17 17:21 ` [U-Boot] [PATCH/next v3 00/28] tools/Makefile cleanup and win32 tool support Scott Wood
2009-03-17 17:43   ` Mike Frysinger
2009-03-17 20:59     ` Peter Tyser
2009-03-17 22:34       ` Mike Frysinger
2009-04-03 23:02 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox