[openwrt/openwrt] zram-swap: clean up the makefile

LEDE Commits lede-commits at lists.infradead.org
Sat Apr 3 18:17:40 BST 2021


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/829fa33899911f5e2a1229a6fdea98feb1d09029

commit 829fa33899911f5e2a1229a6fdea98feb1d09029
Author: Rui Salvaterra <rsalvaterra at gmail.com>
AuthorDate: Thu Apr 1 14:36:32 2021 +0100

    zram-swap: clean up the makefile
    
    Break dependencies into separate lines, to improve the readability. Trim
    trailing whitespace.
    
    Signed-off-by: Rui Salvaterra <rsalvaterra at gmail.com>
---
 package/system/zram-swap/Makefile | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/package/system/zram-swap/Makefile b/package/system/zram-swap/Makefile
index 18c6afee96..80f87fcdff 100644
--- a/package/system/zram-swap/Makefile
+++ b/package/system/zram-swap/Makefile
@@ -17,14 +17,20 @@ include $(INCLUDE_DIR)/package.mk
 define Package/zram-swap
   SECTION:=utils
   CATEGORY:=Base system
-  DEPENDS:=+kmod-zram + at BUSYBOX_CONFIG_MKSWAP + at BUSYBOX_CONFIG_SWAPON + at BUSYBOX_CONFIG_FEATURE_SWAPON_DISCARD + at BUSYBOX_CONFIG_FEATURE_SWAPON_PRI + at BUSYBOX_CONFIG_SWAPOFF
+  DEPENDS:= \
+	+ at BUSYBOX_CONFIG_FEATURE_SWAPON_DISCARD \
+	+ at BUSYBOX_CONFIG_FEATURE_SWAPON_PRI \
+	+ at BUSYBOX_CONFIG_MKSWAP \
+	+ at BUSYBOX_CONFIG_SWAPOFF \
+	+ at BUSYBOX_CONFIG_SWAPON \
+	+kmod-zram
   TITLE:=ZRAM swap scripts
   PKGARCH:=all
 endef
 
 define Package/zram-swap/description
- A script to activate swaping on a compressed zram partition. This 
- could be used to increase the available memory, by using compressed 
+ A script to activate swaping on a compressed zram partition. This
+ could be used to increase the available memory, by using compressed
  memory.
 endef
 



More information about the lede-commits mailing list