aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGrant Erickson2008-05-06 16:18:00 -0700
committerWolfgang Denk2008-05-09 23:04:41 +0200
commitf3b6d528e4dd719640a4bfcd954f4e4c7f5db0d6 (patch)
tree03337ee79651b01b5bb57b0c3bacf29f6491d915 /tools
parent7ea8325b41e02bf0a84ef3eafa686730886977a8 (diff)
Fix Compilation Errors with 'tools/env/fw_printenv'
In the current top-of-tree, 1.3.3.-rc2, the optional tool 'tools/env/fw_printenv' fails to compile for two reasons: 1) The header watchdog.h cannot be found. 2) The header zlib.h is picked up from the tool chain rather than the project causing a prototype conflict for crc32. This patch addresses both of these issues. Platforms Tested On: - AMCC "Kilauea" Signed-off-by: Grant Erickson <gerickson@nuovations.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/env/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/env/Makefile b/tools/env/Makefile
index ea2d5b5a01b..9629ee58ef1 100644
--- a/tools/env/Makefile
+++ b/tools/env/Makefile
@@ -26,7 +26,7 @@ include $(TOPDIR)/config.mk
SRCS := $(obj)crc32.c fw_env.c fw_env_main.c
HEADERS := fw_env.h
-CPPFLAGS := -Wall -DUSE_HOSTCC
+CPPFLAGS := -Wall -DUSE_HOSTCC -I$(SRCTREE)/include
ifeq ($(MTD_VERSION),old)
CPPFLAGS += -DMTD_OLD