From dcd3a74da01df1c2660e8fc67762a06746bd52c3 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 23 Sep 2012 08:49:34 +0000 Subject: tools/mkimage: avoid picking up unrelated /usr/include headers with the same name as internal header files (e.g. image.h), fixes #12232 SVN-Revision: 33519 --- tools/mkimage/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools/mkimage/Makefile') diff --git a/tools/mkimage/Makefile b/tools/mkimage/Makefile index 373d9bebb8..149aaa6f12 100644 --- a/tools/mkimage/Makefile +++ b/tools/mkimage/Makefile @@ -18,6 +18,13 @@ HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/u-boot-$(PKG_VERSION) include $(INCLUDE_DIR)/host-build.mk +define Host/Prepare + $(Host/Prepare/Default) + rm -f \ + $(HOST_BUILD_DIR)/include/errno.h \ + $(HOST_BUILD_DIR)/include/malloc.h +endef + define Host/Compile rm -f $(HOST_BUILD_DIR)/tools/.depend touch $(HOST_BUILD_DIR)/include/config.h -- cgit v1.2.3