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>
This commit is contained in:
parent
7ea8325b41
commit
f3b6d528e4
@ -14,7 +14,9 @@
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG)
|
||||
#include <watchdog.h>
|
||||
#endif
|
||||
#include "zlib.h"
|
||||
|
||||
#define local static
|
||||
|
2
tools/env/Makefile
vendored
2
tools/env/Makefile
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user