Makefile 964 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=zram-swap
  9. PKG_VERSION:=1
  10. PKG_RELEASE:=2
  11. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/zram-swap
  14. SECTION:=utils
  15. CATEGORY:=Base system
  16. DEPENDS:=+kmod-zram +!BUSYBOX_CONFIG_MKSWAP:swap-utils +!BUSYBOX_CONFIG_SWAPONOFF:block-mount
  17. TITLE:=ZRAM swap scripts
  18. PKGARCH:=all
  19. endef
  20. define Package/zram-swap/description
  21. A script to activate swaping on a compressed zram partition. This
  22. could be used to increase the available memory, by using compressed
  23. memory.
  24. endef
  25. define Build/Prepare
  26. endef
  27. define Build/Configure
  28. endef
  29. define Build/Compile
  30. endef
  31. define Package/zram-swap/install
  32. $(INSTALL_DIR) $(1)/etc/init.d
  33. $(INSTALL_BIN) ./files/zram.init $(1)/etc/init.d/zram
  34. endef
  35. $(eval $(call BuildPackage,zram-swap))