]> git.sur5r.net Git - u-boot/commit
tools/env: cleanup host build flags
authorDaniel Hobi <daniel.hobi@schmid-telecom.ch>
Wed, 10 Nov 2010 13:11:21 +0000 (14:11 +0100)
committerWolfgang Denk <wd@denx.de>
Sun, 14 Nov 2010 22:26:29 +0000 (23:26 +0100)
commit02bd475e343582b3c915b94ef4016d5876d4a4f1
treee0530e3952b87d1081f1ccce4be1cb17218201c1
parent34bbf618600fb6961d8359e42fb87e59fbd788d9
tools/env: cleanup host build flags

This patch makes tools/env/Makefile more similar to tools/imls:
- define HOSTSRCS and HOSTCPPFLAGS, so that .depend generation works.
- include U-Boot headers using -idirafter to prevent picking up
  u-boot/include/errno.h.
- use HOSTCFLAGS_NOPED (fw_env.c does not conform to -pedantic).

In order to cross-compile tools/env, override the HOSTCC variable
as in this example:

  make tools env HOSTCC=bfin-uclinux-gcc

Signed-off-by: Daniel Hobi <daniel.hobi@schmid-telecom.ch>
Tested-by: Detlev Zundel <dzu@denx.de>
Tested-by: Steve Sakoman <steve.sakoman@linaro.org>
tools/env/Makefile