On 2013-01-03 9:17 PM, Hauke Mehrtens wrote: > diff --git a/package/kernel/modules/other.mk b/package/kernel/modules/other.mk > index 2374d19..b3bf6fd 100644 > --- a/package/kernel/modules/other.mk > +++ b/package/kernel/modules/other.mk > @@ -729,3 +729,40 @@ define KernelPackage/ikconfig/description > endef > > $(eval $(call KernelPackage,ikconfig)) > + > +define KernelPackage/zsmalloc > + SUBMENU:=$(OTHER_MENU) > + TITLE:=ZSMALLOC > + DEPENDS:=@!LINUX_3_3 > + KCONFIG:=CONFIG_ZSMALLOC > + FILES:=$(LINUX_DIR)/drivers/staging/zsmalloc/zsmalloc.ko > + AUTOLOAD:=$(call AutoLoad,20,zsmalloc) > +endef > + > +define KernelPackage/zsmalloc/description > + Memory allocator for compressed pages > +endef > + > +$(eval $(call KernelPackage,zsmalloc)) > + > +define KernelPackage/zram > + SUBMENU:=$(OTHER_MENU) > + TITLE:=ZRAM > + DEPENDS:=+kmod-lib-lzo +kmod-zsmalloc > + KCONFIG:= \ > + CONFIG_ZRAM \ > + CONFIG_ZRAM_DEBUG=n > + FILES:=$(LINUX_DIR)/drivers/staging/zram/zram.ko > + AUTOLOAD:=$(call AutoLoad,25,zram) > +endef > + > +define KernelPackage/zram/description > + Compressed RAM block device support > +endef > + > +define KernelPackage/zram/install > + $(INSTALL_DIR) $(1)/etc/init.d > + $(INSTALL_BIN) ./files/zram $(1)/etc/init.d/zram > +endef > + > +$(eval $(call KernelPackage,zram)) Can you merge these two into one package? I don't think there's anything else using zsmalloc, so there's no need to add an extra package for it. The rest looks good to me.
- Felix _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel