2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 6562 2009-01-21 11:19:24 ghd $
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
14 PKG_RELEASE
:=$(PKG_VERSION
)-1
15 PKG_SOURCE_URL
:=http
://compcache.googlecode.com
/files
/
16 PKG_MD5SUM
:=eea73324e9e69178866f6c0fbc852f1f
18 #PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
20 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
22 include $(INCLUDE_DIR
)/package.mk
24 define KernelPackage
/compcache
25 SUBMENU
:=Other modules
26 DEPENDS
:=@LINUX_2_6 @BUSYBOX_CONFIG_SWAPONOFF
27 TITLE
:=Driver for compressed ram swap device
28 VERSION
:=$(LINUX_VERSION
)-$(BOARD
)-$(LINUX_RELEASE
)+$(PKG_RELEASE
)
29 FILES
:=$(PKG_BUILD_DIR
)/compcache.
$(LINUX_KMOD_SUFFIX
) \
30 $(PKG_BUILD_DIR
)/sub-projects
/compression
/lzo-kmod
/lzo1x.
$(LINUX_KMOD_SUFFIX
) \
31 $(PKG_BUILD_DIR
)/sub-projects
/allocators
/xvmalloc-kmod
/xvmalloc.
$(LINUX_KMOD_SUFFIX
)
32 # AUTOLOAD:=$(call AutoLoad,10,xvmalloc lzo1x compcache+compcache_size_kbytes=2048)
35 BUILDFLAGS
:=-DCONFIG_BLK_DEV_COMPCACHE_DEBUG
=0 \
36 -DCONFIG_BLK_DEV_COMPCACHE_STATS
=1 \
43 $(MAKE
) -C
"$(LINUX_DIR)" \
44 CROSS_COMPILE
="$(KERNEL_CROSS)" \
46 ARCH
="$(LINUX_KARCH)" \
47 SUBDIRS
="$(PKG_BUILD_DIR)" \
48 EXTRA_CFLAGS
="$(BUILDFLAGS)" \
52 define KernelPackage
/compcache
/install
53 $(INSTALL_DIR
) $(1)/etc
/config
54 $(INSTALL_DATA
) .
/files
/compcache.config
$(1)/etc
/config
/compcache
55 $(INSTALL_DIR
) $(1)/etc
/init.d
56 $(INSTALL_BIN
) .
/files
/compcache.init
$(1)/etc
/init.d
/compcache
59 $(eval
$(call KernelPackage
,compcache
))