blob: d47fe16c074cd3c9010a03d42898c8a7273e626a [file] [log] [blame]
wdenk6aff3112002-12-17 01:51:00 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2002-2006
wdenk6aff3112002-12-17 01:51:00 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk6aff3112002-12-17 01:51:00 +00006#
7
Daniel Hobi02bd4752010-11-10 14:11:21 +01008# Compile for a hosted environment on the target
Masahiro Yamadafea1ca82014-02-04 17:24:20 +09009HOST_EXTRACFLAGS = $(patsubst -I%,-idirafter%, $(UBOOTINCLUDE)) \
Joe Hershberger30fd4fad2012-12-11 22:16:32 -060010 -idirafter $(SRCTREE)/tools/env \
Joe Hershberger497f2052012-10-03 09:38:46 +000011 -DUSE_HOSTCC \
12 -DTEXT_BASE=$(TEXT_BASE)
Marian Balakowiczf9328632006-09-01 19:49:50 +020013
Markus Klotzbücher6de66b32007-11-27 10:23:20 +010014ifeq ($(MTD_VERSION),old)
Masahiro Yamada940db162014-02-04 17:24:10 +090015HOST_EXTRACFLAGS += -DMTD_OLD
Markus Klotzbücher6de66b32007-11-27 10:23:20 +010016endif
17
Masahiro Yamada940db162014-02-04 17:24:10 +090018hostprogs-y := fw_printenv
19always := $(hostprogs-y)
Marian Balakowiczf9328632006-09-01 19:49:50 +020020
Masahiro Yamada940db162014-02-04 17:24:10 +090021fw_printenv-objs := fw_env.o fw_env_main.o \
22 crc32.o ctype.o linux_string.o \
23 env_attr.o env_flags.o