]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - tools/env/Makefile
tools: convert makefiles to kbuild style
[karo-tx-uboot.git] / tools / env / Makefile
1 #
2 # (C) Copyright 2002-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 #
5 # SPDX-License-Identifier:      GPL-2.0+
6 #
7
8 # Compile for a hosted environment on the target
9 HOST_EXTRACFLAGS  = -idirafter $(SRCTREE)/include \
10                 -idirafter $(SRCTREE)/arch/$(ARCH)/include \
11                 -idirafter $(OBJTREE)/include \
12                 -idirafter $(SRCTREE)/tools/env \
13                 -DUSE_HOSTCC \
14                 -DTEXT_BASE=$(TEXT_BASE)
15
16 ifeq ($(MTD_VERSION),old)
17 HOST_EXTRACFLAGS += -DMTD_OLD
18 endif
19
20 hostprogs-y := fw_printenv
21 always := $(hostprogs-y)
22
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