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
14 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
16 include $(INCLUDE_DIR
)/package.mk
18 define Package
/zram-swap
21 DEPENDS
:=+kmod-zram
+!(BUSYBOX_CONFIG_MKSWAP
&&BUSYBOX_CONFIG_SWAPONOFF
):swap-utils
22 TITLE
:=ZRAM swap scripts
26 define Package
/zram-swap
/description
27 A script to activate swaping on a compressed zram partition. This
28 could be used to increase the available memory
, by using compressed
35 define Build
/Configure
41 define Package
/zram-swap
/install
46 $(eval
$(call BuildPackage
,zram-swap
))