public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 00/26 v2] tools/Makefile cleanup and win32 tool support
@ 2009-03-12 19:48 Peter Tyser
  2009-03-12 19:48 ` [U-Boot] [PATCH 01/26 v2] Makefile: Make autoconf.mk a dependency of the depend target Peter Tyser
  0 siblings, 1 reply; 40+ messages in thread
From: Peter Tyser @ 2009-03-12 19:48 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

Peter Tyser (26):
  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
  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/Makefile: Give precedence to U-Boot's include directory
  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 ++
 common/Makefile       |    2 +-
 doc/README.NetConsole |    6 +-
 include/elf.h         |    7 +-
 include/image.h       |    2 +
 include/libfdt_env.h  |   12 ++
 tools/Makefile        |  314 ++++++++++++++++++-------------------------------
 tools/Makefile.win32  |   37 ------
 tools/gen_eth_addr.c  |    6 +-
 tools/mingw_support.c |   79 ++++++++++++
 tools/mingw_support.h |   51 ++++++++
 tools/mkimage.h       |    7 +-
 tools/os_support.c    |   24 ++++
 tools/os_support.h    |   29 +++++
 tools/ubsha1.c        |    3 +
 16 files changed, 349 insertions(+), 262 deletions(-)
 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] 40+ messages in thread

end of thread, other threads:[~2009-03-23 18:37 UTC | newest]

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

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