On 5 January 2013 10:58, Bastian Bittorf <bitt...@bluebottle.com> wrote:
> * Damian Kaczkowski <damian.kaczkow...@gmail.com> [05.01.2013 09:37]: > > mkswap and swapon bins (but not swapoff btw.)). Maybe better would be > what > > hauke proposed? - just set CONFIG_BUSYBOX_CONFIG_MKSWAP=y, > > CONFIG_BUSYBOX_CONFIG_SWAPONOFF=y as default config. Then also some other > > packages might benefit from this, eg. block-mount > > i dont like the idea to bloat the standard build, this is my proposal: > Me too. > - build zram as kmodule > - build user-package zram-swap, which has the deps: > mkswap + swaponoff + zram-kmodule > > if a user on a standard build does 'opkg install zram-swap' it > must also install the applets 'busybox-mkswap' and 'busybox-swaponoff' > so they must be build separately in the standard-build (so the repo's > gets them) > You can't install applets alone. Its one package "busybox" with enabled or disabled functionality. is there a way the define a global var "SWAPUTILS" which can point > busybox-stuff OR gnu-stuff? > There already is a package which has needed tools - PACKAGE_swap-utils (utilities -> disck -> swap-utils) Just use DEPENDS which Stefan proposed. They will do the trick: DEPENDS:=+kmod-lib-lzo +kmod-zsmalloc \ +!BUSYBOX_CONFIG_MKSWAP:swap-utils \ +!BUSYBOX_CONFIG_SWAPONOFF:swap-utils You can manually select busybox applets when building your own image, and for people using prebuild images (without busybox applets enabled) opkg will install swap-utils instead.
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel