zram-swap: clean up the makefile
[openwrt/staging/chunkeey.git] / package / system / zram-swap / Makefile
1 #
2 # Copyright (C) 2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=zram-swap
11 PKG_RELEASE:=8
12
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/zram-swap
18 SECTION:=utils
19 CATEGORY:=Base system
20 DEPENDS:= \
21 +@BUSYBOX_CONFIG_FEATURE_SWAPON_DISCARD \
22 +@BUSYBOX_CONFIG_FEATURE_SWAPON_PRI \
23 +@BUSYBOX_CONFIG_MKSWAP \
24 +@BUSYBOX_CONFIG_SWAPOFF \
25 +@BUSYBOX_CONFIG_SWAPON \
26 +kmod-zram
27 TITLE:=ZRAM swap scripts
28 PKGARCH:=all
29 endef
30
31 define Package/zram-swap/description
32 A script to activate swaping on a compressed zram partition. This
33 could be used to increase the available memory, by using compressed
34 memory.
35 endef
36
37 define Build/Prepare
38 endef
39
40 define Build/Configure
41 endef
42
43 define Build/Compile
44 endef
45
46 define Package/zram-swap/install
47 $(INSTALL_DIR) $(1)/etc/init.d
48 $(INSTALL_BIN) ./files/zram.init $(1)/etc/init.d/zram
49 endef
50
51 $(eval $(call BuildPackage,zram-swap))