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