blob: c30381565d515496931e743a474381c639eb0afd [file] [log] [blame]
wdenk34b613e2002-12-17 01:51:00 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2002-2006
wdenk34b613e2002-12-17 01:51:00 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk34b613e2002-12-17 01:51:00 +00006#
7
Daniel Hobi4683c4b2010-11-10 14:11:21 +01008# Compile for a hosted environment on the target
Masahiro Yamadaf2431802014-02-04 17:24:10 +09009HOST_EXTRACFLAGS = -idirafter $(SRCTREE)/include \
Masahiro Yamada49a88e32013-11-01 10:28:45 +090010 -idirafter $(SRCTREE)/arch/$(ARCH)/include \
Wolfgang Denk302141d2010-11-27 23:30:56 +010011 -idirafter $(OBJTREE)/include \
Joe Hershbergerdd7750a2012-12-11 22:16:32 -060012 -idirafter $(SRCTREE)/tools/env \
Joe Hershberger671adc42012-10-03 09:38:46 +000013 -DUSE_HOSTCC \
14 -DTEXT_BASE=$(TEXT_BASE)
Marian Balakowiczd62379d2006-09-01 19:49:50 +020015
Markus Klotzbücher94db5572007-11-27 10:23:20 +010016ifeq ($(MTD_VERSION),old)
Masahiro Yamadaf2431802014-02-04 17:24:10 +090017HOST_EXTRACFLAGS += -DMTD_OLD
Markus Klotzbücher94db5572007-11-27 10:23:20 +010018endif
19
Masahiro Yamadaf2431802014-02-04 17:24:10 +090020hostprogs-y := fw_printenv
21always := $(hostprogs-y)
wdenk34b613e2002-12-17 01:51:00 +000022
Masahiro Yamadaf2431802014-02-04 17:24:10 +090023fw_printenv-objs := fw_env.o fw_env_main.o \
24 crc32.o ctype.o linux_string.o \
25 env_attr.o env_flags.o