X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/8f7f273fa4ce32e983f4437a7efa89d75062a2f9..57967352ad441b719b9840f0ace0180393d03ef1:/package/wprobe/Makefile diff --git a/package/wprobe/Makefile b/package/wprobe/Makefile index 1e32eee0c..536a85eb2 100644 --- a/package/wprobe/Makefile +++ b/package/wprobe/Makefile @@ -20,6 +20,7 @@ include $(INCLUDE_DIR)/package.mk define KernelPackage/wprobe SUBMENU:=Network Support + DEPENDS:=@LINUX_2_6 TITLE:=Wireless driver probe infrastructure FILES:= \ $(PKG_BUILD_DIR)/kernel/wprobe.$(LINUX_KMOD_SUFFIX) @@ -60,13 +61,14 @@ define Build/Prepare endef TARGET_CPPFLAGS := \ + -D_GNU_SOURCE \ -I$(STAGING_DIR)/usr/include/libnl-tiny \ $(TARGET_CPPFLAGS) ifdef CONFIG_PACKAGE_kmod-wprobe define Build/Compile/kmod $(MAKE) -C $(LINUX_DIR) \ - CROSS_COMPILE="$(TARGET_CROSS)" \ + CROSS_COMPILE="$(KERNEL_CROSS)" \ ARCH="$(LINUX_KARCH)" \ SUBDIRS="$(PKG_BUILD_DIR)/kernel" \ KERNELDIR=$(LINUX_DIR) \ @@ -115,7 +117,7 @@ endef define Package/wprobe-export/install $(INSTALL_DIR) $(1)/sbin $(1)/etc/init.d $(1)/etc/config - $(INSTALL_BIN) ./files/wprobe.init $(1)/etc/init.d/ + $(INSTALL_BIN) ./files/wprobe.init $(1)/etc/init.d/wprobe $(INSTALL_BIN) ./files/wprobe.config $(1)/etc/config/wprobe $(INSTALL_BIN) $(PKG_BUILD_DIR)/exporter/wprobe-export $(1)/sbin/ endef