2 # Copyright (C) 2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
15 include $(INCLUDE_DIR)/package.mk
17 define Package/zram-swap
20 DEPENDS:=+kmod-zram +!(BUSYBOX_CONFIG_MKSWAP&&BUSYBOX_CONFIG_SWAPON&&BUSYBOX_CONFIG_SWAPOFF):swap-utils
21 TITLE:=ZRAM swap scripts
25 define Package/zram-swap/description
26 A script to activate swaping on a compressed zram partition. This
27 could be used to increase the available memory, by using compressed
34 define Build/Configure
40 define Package/zram-swap/install
41 $(INSTALL_DIR) $(1)/etc/init.d
42 $(INSTALL_BIN) ./files/zram.init $(1)/etc/init.d/zram
45 $(eval $(call BuildPackage,zram-swap))