Skip to content
Snippets Groups Projects
Commit 02bd475e authored by Daniel Hobi's avatar Daniel Hobi Committed by Wolfgang Denk
Browse files

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: default avatarDaniel Hobi <daniel.hobi@schmid-telecom.ch>
Tested-by: default avatarDetlev Zundel <dzu@denx.de>
Tested-by: default avatarSteve Sakoman <steve.sakoman@linaro.org>
parent 34bbf618
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment