X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/b3c2645b973334f87992997f15bee3f600d3dcc3..838959f774265522597596d423570ab88ca1ba6f:/package/compcache/Makefile diff --git a/package/compcache/Makefile b/package/compcache/Makefile index 8ca581b3d..feb6cd315 100644 --- a/package/compcache/Makefile +++ b/package/compcache/Makefile @@ -1,19 +1,18 @@ # -# Copyright (C) 2009 OpenWrt.org +# Copyright (C) 2009-2010 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # -# $Id: Makefile 6562 2009-10-05 08:30:14 ghd $ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=compcache -PKG_VERSION:=0.5.4 +PKG_VERSION:=0.6.2 PKG_RELEASE:=$(PKG_VERSION)-1 PKG_SOURCE_URL:=http://compcache.googlecode.com/files/ -PKG_MD5SUM:=e83535925a014ac34e1eaeb4f7a2f49a +PKG_MD5SUM:=27aec78dc50e34fb800c74e879057743 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz @@ -25,26 +24,27 @@ define KernelPackage/compcache TITLE:=Driver for compressed ram swap device VERSION:=$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)+$(PKG_RELEASE) FILES:=$(PKG_BUILD_DIR)/ramzswap.$(LINUX_KMOD_SUFFIX) \ - $(PKG_BUILD_DIR)/sub-projects/compression/lzo-kmod/lzo1x.$(LINUX_KMOD_SUFFIX) \ - $(PKG_BUILD_DIR)/sub-projects/allocators/xvmalloc-kmod/xvmalloc.$(LINUX_KMOD_SUFFIX) + $(PKG_BUILD_DIR)/sub-projects/compression/lzo-kmod/lzo1x.$(LINUX_KMOD_SUFFIX) + URL:=http://code.google.com/p/compcache/ + MENU:=1 endef -XVM = sub-projects/allocators/xvmalloc-kmod + +include $(INCLUDE_DIR)/kernel-defaults.mk + LZO = sub-projects/compression/lzo-kmod +RZSC = sub-projects/rzscontrol -BUILDFLAGS:=-DCONFIG_BLK_DEV_RAMZSWAP_STATS \ - -I$(PKG_BUILD_DIR)/$(XVM) \ +BUILDFLAGS:=-DCONFIG_RAMZSWAP_STATS \ -I$(PKG_BUILD_DIR)/$(LZO) \ - -g -Wall + -Wall + +RZSCFLAGS:=-I$(PKG_BUILD_DIR)/$(RZSC)/../include \ + -I$(PKG_BUILD_DIR)/$(RZSC)/../.. define Build/Compile - $(MAKE) -C "$(LINUX_DIR)" \ - CROSS_COMPILE="$(KERNEL_CROSS)" \ - CC="$(KERNEL_CC)" \ - ARCH="$(LINUX_KARCH)" \ - SUBDIRS="$(PKG_BUILD_DIR)" \ - EXTRA_CFLAGS="$(BUILDFLAGS)" \ - modules + $(MAKE) $(KERNEL_MAKEOPTS) EXTRA_CFLAGS="$(BUILDFLAGS)" M="$(PKG_BUILD_DIR)" modules + $(TARGET_CC) $(TARGET_CFLAGS) $(RZSCFLAGS) $(PKG_BUILD_DIR)/$(RZSC)/rzscontrol.c -o $(PKG_BUILD_DIR)/rzscontrol endef define KernelPackage/compcache/install @@ -56,6 +56,8 @@ define KernelPackage/compcache/install $(1)/etc/config/compcache $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) ./files/compcache.init $(1)/etc/init.d/compcache + $(INSTALL_DIR) $(1)/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/rzscontrol $(1)/sbin/rzscontrol endef define KernelPackage/compcache/config