Makefile revision 6e7c7370
1 2include $(TOPDIR)/rules.mk 3include $(INCLUDE_DIR)/kernel.mk 4 5PKG_NAME:=oaf 6PKG_RELEASE:=3 7 8include $(INCLUDE_DIR)/package.mk 9 10PKG_AUTOLOAD:=oaf 11 12define KernelPackage/oaf 13 SECTION:=Derry Apps 14 CATEGORY:=Derry Apps 15 TITLE:=open app filter kernel module 16 FILES:=$(PKG_BUILD_DIR)/oaf.ko 17 KCONFIG:= 18 AUTOLOAD:=$(call AutoLoad,0,$(PKG_AUTOLOAD)) 19endef 20 21define KernelPackage/oaf/description 22 open appfilter kernel module 23endef 24 25 26MAKE_OPTS:= \ 27 ARCH="$(LINUX_KARCH)" \ 28 CROSS_COMPILE="$(TARGET_CROSS)" \ 29 SUBDIRS="$(PKG_BUILD_DIR)" \ 30 EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \ 31 $(EXTRA_KCONFIG) 32 33define Build/Prepare 34 mkdir -p $(PKG_BUILD_DIR) 35 $(CP) ./src/* $(PKG_BUILD_DIR)/ 36endef 37 38define Build/Compile 39 $(MAKE) -C "$(LINUX_DIR)" \ 40 $(MAKE_OPTS) \ 41 modules 42endef 43 44$(eval $(call KernelPackage,oaf)) 45 46