hotplug2: fix "MALLOC FAILURE!" message caused by a missing return code check on...
[openwrt.git] / package / compcache / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 6562 2009-01-21 11:19:24 ghd $
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=compcache
13 PKG_VERSION:=0.5
14 PKG_RELEASE:=$(PKG_VERSION)-1
15 PKG_SOURCE_URL:=http://compcache.googlecode.com/files/
16 PKG_MD5SUM:=eea73324e9e69178866f6c0fbc852f1f
17
18 #PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
19
20 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
21
22 include $(INCLUDE_DIR)/package.mk
23
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)
33 endef
34
35 BUILDFLAGS:=-DCONFIG_BLK_DEV_COMPCACHE_DEBUG=0 \
36 -DCONFIG_BLK_DEV_COMPCACHE_STATS=1 \
37 -DCONFIG_XV_DEBUG=0 \
38 -DCONFIG_XV_STATS=1 \
39 -g -Wall
40
41
42 define Build/Compile
43 $(MAKE) -C "$(LINUX_DIR)" \
44 CROSS_COMPILE="$(KERNEL_CROSS)" \
45 CC="$(KERNEL_CC)" \
46 ARCH="$(LINUX_KARCH)" \
47 SUBDIRS="$(PKG_BUILD_DIR)" \
48 EXTRA_CFLAGS="$(BUILDFLAGS)" \
49 modules
50 endef
51
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
57 endef
58
59 $(eval $(call KernelPackage,compcache))
This page took 0.043926 seconds and 5 git commands to generate.