diff options
author | Markus Klotzbücher <mk@denx.de> | 2007-11-27 10:23:20 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-01-09 09:51:12 +0100 |
commit | 64b3727b9779d86127cd576e392a987de5ebb9fd (patch) | |
tree | 3a7c11233db896f0e32bf4079f0c8e5327e60fe1 /tools/env/Makefile | |
parent | 74ac5facb988fc488a707db228b177ead63a6541 (diff) | |
download | u-boot-imx-64b3727b9779d86127cd576e392a987de5ebb9fd.zip u-boot-imx-64b3727b9779d86127cd576e392a987de5ebb9fd.tar.gz u-boot-imx-64b3727b9779d86127cd576e392a987de5ebb9fd.tar.bz2 |
tools: fix fw_printenv tool to compile again
This patch updates the fw_printenv/fw_setenv userspace tool to include
the correct MTD header in order to compile against current kernel
headers. Backward compatibility is preserved by introducing an option
MTD_VERSION which can be set to "old" for compilation using the old MTD
headers. Along with this a number of warnings are fixed.
Signed-off-by: Markus Klotzbuecher <mk@denx.de>
Diffstat (limited to 'tools/env/Makefile')
-rw-r--r-- | tools/env/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/env/Makefile b/tools/env/Makefile index 1f16768..ea2d5b5 100644 --- a/tools/env/Makefile +++ b/tools/env/Makefile @@ -28,6 +28,10 @@ HEADERS := fw_env.h CPPFLAGS := -Wall -DUSE_HOSTCC +ifeq ($(MTD_VERSION),old) +CPPFLAGS += -DMTD_OLD +endif + all: $(obj)fw_printenv $(obj)fw_printenv: $(SRCS) $(HEADERS) |