From: Florian Fainelli Date: Mon, 6 Mar 2017 00:01:29 +0000 (-0800) Subject: packages: Prepend kernel headers in include search path X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fheads%2Fstbgcc;p=openwrt%2Fstaging%2Fflorian.git packages: Prepend kernel headers in include search path Signed-off-by: Florian Fainelli --- diff --git a/package/libs/libnl/Makefile b/package/libs/libnl/Makefile index 7916556c00..6a61dc7c32 100644 --- a/package/libs/libnl/Makefile +++ b/package/libs/libnl/Makefile @@ -17,6 +17,7 @@ PKG_HASH:=0beb593dc6abfffa18a5c787b27884979c1b7e7f1fd468c801e3cc938a685922 PKG_LICENSE:=LGPL-2.1 include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/kernel.mk define Package/libnl/default SECTION:=libs @@ -76,6 +77,7 @@ define Package/libnl/description endef TARGET_CFLAGS += -ffunction-sections $(FPIC) +TARGET_CPPFLAGS += -I$(LINUX_DIR)/user_headers/include define Build/Compile $(call Build/Compile/Default) diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile index f4f21044ea..860851af15 100644 --- a/package/network/services/dnsmasq/Makefile +++ b/package/network/services/dnsmasq/Makefile @@ -57,7 +57,8 @@ $(call Package/dnsmasq/Default) TITLE += (with DNSSEC, DHCPv6, Auth DNS, IPset, Conntrack, NO_ID enabled by default) DEPENDS:=+PACKAGE_dnsmasq_full_dnssec:libnettle \ +PACKAGE_dnsmasq_full_ipset:kmod-ipt-ipset \ - +PACKAGE_dnsmasq_full_conntrack:libnetfilter-conntrack + +PACKAGE_dnsmasq_full_conntrack:libnetfilter-conntrack \ + +libmnl VARIANT:=full endef @@ -116,6 +117,10 @@ Package/dnsmasq-full/conffiles = $(Package/dnsmasq/conffiles) TARGET_CFLAGS += -ffunction-sections -fdata-sections TARGET_LDFLAGS += -Wl,--gc-sections +ifeq ($(CONFIG_PACKAGE_dnsmasq_full_conntrack),y) +TARGET_LDFLAGS += -lmnl +endif + COPTS = $(if $(CONFIG_IPV6),,-DNO_IPV6) ifeq ($(BUILD_VARIANT),nodhcpv6) diff --git a/package/network/utils/umbim/Makefile b/package/network/utils/umbim/Makefile index 616a02367c..580215bb18 100644 --- a/package/network/utils/umbim/Makefile +++ b/package/network/utils/umbim/Makefile @@ -19,6 +19,7 @@ PKG_FLAGS:=nonshared include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/cmake.mk +include $(INCLUDE_DIR)/kernel.mk define Package/umbim SECTION:=net @@ -33,7 +34,8 @@ define Package/umbim/description endef TARGET_CFLAGS += \ - -I$(STAGING_DIR)/usr/include -ffunction-sections -fdata-sections + -I$(STAGING_DIR)/usr/include -ffunction-sections -fdata-sections \ + -I$(LINUX_DIR)/user_headers/include TARGET_LDFLAGS += -Wl,--gc-sections diff --git a/package/network/utils/wpan-tools/Makefile b/package/network/utils/wpan-tools/Makefile index ff65375724..d143580420 100644 --- a/package/network/utils/wpan-tools/Makefile +++ b/package/network/utils/wpan-tools/Makefile @@ -24,6 +24,8 @@ define Package/wpan-tools DEPENDS:= +libnl endef +TARGET_CPPFLAGS+=-I$(LINUX_DIR)/user_headers/ + define Build/Configure $(call Build/Configure/Default) endef diff --git a/package/utils/spidev_test/Makefile b/package/utils/spidev_test/Makefile index b7c5227f91..0c1b7083cd 100644 --- a/package/utils/spidev_test/Makefile +++ b/package/utils/spidev_test/Makefile @@ -27,6 +27,8 @@ define Package/spidev-test/description SPI testing utility. endef +TARGET_CFLAGS+=-I$(LINUX_DIR)/user_headers/include + define Build/Compile $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/spidev_test \ $(PKG_BUILD_DIR)/spidev_test.c