aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/zram-swap/Makefile
diff options
context:
space:
mode:
authorRui Salvaterra <rsalvaterra@gmail.com>2020-07-08 17:20:28 +0100
committerPetr Štetiar <ynezz@true.cz>2020-07-11 13:33:28 +0200
commit0b6155de0ba0aa9e6942522ec6666c56a2f5aff1 (patch)
treed42462baee2288fcac5b2d98f874b1f248a7bf71 /package/system/zram-swap/Makefile
parent0bd7dfa3ed60588ec83a8f60f48b6991ebb16940 (diff)
downloadupstream-0b6155de0ba0aa9e6942522ec6666c56a2f5aff1.tar.gz
upstream-0b6155de0ba0aa9e6942522ec6666c56a2f5aff1.tar.bz2
upstream-0b6155de0ba0aa9e6942522ec6666c56a2f5aff1.zip
zram-swap: correctly express the required dependencies
The block-mount swapon implementation doesn't support discard, so make zram-swap depend only on the default BusyBox implementation or, when unavailable, on the one present in the swap-utils package. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
Diffstat (limited to 'package/system/zram-swap/Makefile')
-rw-r--r--package/system/zram-swap/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/system/zram-swap/Makefile b/package/system/zram-swap/Makefile
index ee5e85927f..a6661ce5e9 100644
--- a/package/system/zram-swap/Makefile
+++ b/package/system/zram-swap/Makefile
@@ -18,7 +18,7 @@ include $(INCLUDE_DIR)/package.mk
define Package/zram-swap
SECTION:=utils
CATEGORY:=Base system
- DEPENDS:=+kmod-zram +!(BUSYBOX_DEFAULT_MKSWAP||BUSYBOX_CONFIG_MKSWAP):swap-utils +!((BUSYBOX_DEFAULT_SWAPON||BUSYBOX_CONFIG_SWAPON)&&(BUSYBOX_DEFAULT_SWAPOFF||BUSYBOX_CONFIG_SWAPOFF)):block-mount
+ DEPENDS:=+kmod-zram +!(BUSYBOX_CONFIG_MKSWAP&&BUSYBOX_CONFIG_SWAPON&&BUSYBOX_CONFIG_SWAPOFF):swap-utils
TITLE:=ZRAM swap scripts
PKGARCH:=all
endef