The Makefile for i2c-tools sets TARGET_CPPFLAGS to point to the linux source 
headers rather that the i2c-tools header, causing build failure.

This patch changes TARGET_CPPFLAGS to point to the packages include dir. This 
fixes tickets #13546 and #13857.

Signed-off-by John Vogel <jvog...@stny.rr.com>

--
diff --git a/utils/i2c-tools/Makefile b/utils/i2c-tools/Makefile
index 7085dd5..51dc010 100644
--- a/utils/i2c-tools/Makefile
+++ b/utils/i2c-tools/Makefile
@@ -62,7 +62,7 @@ define Package/python-smbus/description
  This package contain the python bindings for Linux SMBus access through 
i2c-dev.
 endef
 
-TARGET_CPPFLAGS += -I$(LINUX_DIR)/include
+TARGET_CPPFLAGS += -I$(PKG_BUILD_DIR)/include
 
 ifdef CONFIG_PACKAGE_python-smbus
   define Build/Compile/python-smbus
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to