uboot-mt623x/tools
Scott Wood d984fed068 makefiles: fixes for building build tools
Currently, some of the tools instead set CC to be HOSTCC in order to re-use
some pattern rules -- but this fails when the user overrides CC on the make
command line.  Also, the HOSTCFLAGS in tools/Makefile are currently not
being used because config.mk overwrites them.

This patch adds static pattern rules for files that have been requested to
be built with the native compiler using $(HOSTSRCS) and $(HOSTOBJS), and
converts the tools to use them.

It restores easylogo to using the host compiler, which was broken by commit
38d299c2db (if this was an intentional change,
please let me know -- but it seems to be a build tool).

It restores -pedantic and the special flags for darwin and cygwin that were
requested in tools/makefile (but keeps the flags added by config.mk) --
hopefully someone can test this on those platforms.  It no longer
conditionalizes -pedantic on not being darwin; it wasn't clear that that was
intentional, and unless there's a real problem it's just inviting people to
contribute non-pedantic patches to those files (I'm not a fan of -pedantic
personally, but if it's on for one platform it should be on for all).

HOST_LDFLAGS is renamed HOSTLDFLAGS for consistency with the previous
HOST_CFLAGS to HOSTCFLAGS rename.  A new HOSTCFLAGS_NOPED is made available
for those files which currently cannot be built with -pedantic, and replaces
the old FIT_CFLAGS.

imls now uses the cross compiler properly, rather than by trying to
reconstruct CC using the typoed $(CROSS_COMPILER).

envcrc.c is now dependency-processed unconditionally -- previously it would
be built without being on (HOST)SRCS if CONFIG_ENV_IS_EMBEDDED was not
selected.

Signed-off-by: Scott Wood <scottwood@freescale.com>
2009-12-02 22:58:46 +01:00
..
bddb Update Hymod Board Database PHP code in "tools" directory 2005-08-12 23:27:18 +02:00
easylogo makefiles: fixes for building build tools 2009-12-02 22:58:46 +01:00
env Fix a typo in fw_env.config 2008-12-15 21:49:03 +01:00
gdb makefiles: fixes for building build tools 2009-12-02 22:58:46 +01:00
imls makefiles: fixes for building build tools 2009-12-02 22:58:46 +01:00
logos at91: add support for the PM9263 board of Ronetix GmbH 2009-04-16 21:30:48 +02:00
scripts make define2mk.sed work on FreeBSD 2008-02-22 21:27:01 +01:00
updater Replace __asm references with __asm__ 2009-04-28 01:02:04 +02:00
.gitignore tools: add ncb to gitignore 2009-04-04 15:34:16 +02:00
Makefile makefiles: fixes for building build tools 2009-12-02 22:58:46 +01:00
bin2header.c Add 'license' command to U-Boot command line 2008-08-18 23:21:49 +02:00
bmp_logo.c compiler.h: unify system ifdef cruft here 2009-07-19 21:41:46 +02:00
default_image.c tools: mkimage: split code into core, default and FIT image specific 2009-09-10 22:58:48 +02:00
envcrc.c Revert "env: only build env_embedded and envcrc when needed" 2009-10-27 20:46:31 +01:00
fdt_host.h [new uImage] Add libfdt support to mkimage 2008-02-29 16:00:24 +01:00
fit_image.c tools: mkimage: split code into core, default and FIT image specific 2009-09-10 22:58:48 +02:00
gen_eth_addr.c gen_eth_addr: Use POSIX rand() and srand() 2009-04-04 01:09:56 +02:00
img2brec.sh Fix file permissions 2005-07-21 11:22:21 +02:00
img2srec.c compiler.h: unify system ifdef cruft here 2009-07-19 21:41:46 +02:00
inca-swap-bytes.c * Patch by Arun Dharankar, 4 Apr 2003: 2003-04-05 00:53:31 +00:00
jtagconsole Blackfin: add jtagconsole helper script 2009-06-15 11:15:04 +02:00
kwbimage.c kwbimage.c: Fix compile warning when building on 64 bit systems (again) 2009-09-15 21:32:19 +02:00
kwbimage.h mkimage: Add Kirkwood Boot Image support (kwbimage) 2009-09-10 22:58:48 +02:00
mingw_support.c Add support for building native win32 tools 2009-04-04 01:21:02 +02:00
mingw_support.h compiler.h: unify system ifdef cruft here 2009-07-19 21:41:46 +02:00
mkimage.c mkimage: Add Kirkwood Boot Image support (kwbimage) 2009-09-10 22:58:48 +02:00
mkimage.h mkimage: Add Kirkwood Boot Image support (kwbimage) 2009-09-10 22:58:48 +02:00
mpc86x_clk.c * Patch by Anders Larsen, 18 Sep 2003: 2003-10-08 22:14:02 +00:00
ncb.c ncb: Check return value of write() 2009-04-28 01:16:46 +02:00
netconsole tools/netconsole: use ncb automatically if available 2009-09-15 22:55:45 +02:00
os_support.c compiler.h: unify system ifdef cruft here 2009-07-19 21:41:46 +02:00
os_support.h compiler.h: unify system ifdef cruft here 2009-07-19 21:41:46 +02:00
setlocalversion tools/setlocalversion: use git svn instead of git-svn 2009-04-04 23:11:16 +02:00
ubsha1.c compiler.h: unify system ifdef cruft here 2009-07-19 21:41:46 +02:00