wdenk | 34b613e | 2002-12-17 01:51:00 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2002-2006 |
wdenk | 34b613e | 2002-12-17 01:51:00 +0000 | [diff] [blame] | 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 34b613e | 2002-12-17 01:51:00 +0000 | [diff] [blame] | 6 | # |
| 7 | |
Daniel Hobi | 4683c4b | 2010-11-10 14:11:21 +0100 | [diff] [blame] | 8 | # Compile for a hosted environment on the target |
Masahiro Yamada | f243180 | 2014-02-04 17:24:10 +0900 | [diff] [blame^] | 9 | HOST_EXTRACFLAGS = -idirafter $(SRCTREE)/include \ |
Masahiro Yamada | 49a88e3 | 2013-11-01 10:28:45 +0900 | [diff] [blame] | 10 | -idirafter $(SRCTREE)/arch/$(ARCH)/include \ |
Wolfgang Denk | 302141d | 2010-11-27 23:30:56 +0100 | [diff] [blame] | 11 | -idirafter $(OBJTREE)/include \ |
Joe Hershberger | dd7750a | 2012-12-11 22:16:32 -0600 | [diff] [blame] | 12 | -idirafter $(SRCTREE)/tools/env \ |
Joe Hershberger | 671adc4 | 2012-10-03 09:38:46 +0000 | [diff] [blame] | 13 | -DUSE_HOSTCC \ |
| 14 | -DTEXT_BASE=$(TEXT_BASE) |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 15 | |
Markus Klotzbücher | 94db557 | 2007-11-27 10:23:20 +0100 | [diff] [blame] | 16 | ifeq ($(MTD_VERSION),old) |
Masahiro Yamada | f243180 | 2014-02-04 17:24:10 +0900 | [diff] [blame^] | 17 | HOST_EXTRACFLAGS += -DMTD_OLD |
Markus Klotzbücher | 94db557 | 2007-11-27 10:23:20 +0100 | [diff] [blame] | 18 | endif |
| 19 | |
Masahiro Yamada | f243180 | 2014-02-04 17:24:10 +0900 | [diff] [blame^] | 20 | hostprogs-y := fw_printenv |
| 21 | always := $(hostprogs-y) |
wdenk | 34b613e | 2002-12-17 01:51:00 +0000 | [diff] [blame] | 22 | |
Masahiro Yamada | f243180 | 2014-02-04 17:24:10 +0900 | [diff] [blame^] | 23 | fw_printenv-objs := fw_env.o fw_env_main.o \ |
| 24 | crc32.o ctype.o linux_string.o \ |
| 25 | env_attr.o env_flags.o |