define KernelPackage/wprobe
SUBMENU:=Network Support
+ DEPENDS:=@LINUX_2_6
TITLE:=Wireless driver probe infrastructure
FILES:= \
$(PKG_BUILD_DIR)/kernel/wprobe.$(LINUX_KMOD_SUFFIX)
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) \
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