diff --git a/packages/drivers/compcache/build b/packages/drivers/compcache/build deleted file mode 100755 index e7375dbe10..0000000000 --- a/packages/drivers/compcache/build +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -. config/options $1 - -cd $PKG_BUILD - make CC=$CC KERNELDIR=$(kernel_path) diff --git a/packages/drivers/compcache/init.d/09_swapfile b/packages/drivers/compcache/init.d/09_swapfile deleted file mode 100755 index 25f5b4b47d..0000000000 --- a/packages/drivers/compcache/init.d/09_swapfile +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh - -################################################################################ -# Copyright (C) 2009-2010 OpenELEC.tv -# http://www.openelec.tv -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -# -# create and enable swapfile -# -# runlevels: openelec, textmode - -. /etc/profile - -INSTALLED_MEMORY=`cat /proc/meminfo | grep 'MemTotal:' | awk '{print $2}'` - -if [ "$INSTALLED_MEMORY" -le 500000 ]; then - - progress "creating swapfile" - - # load zram module - modprobe zram - - # setup space for zram - echo "$INSTALLED_MEMORY"/2*1024 | bc > /sys/block/zram0/disksize - - # create swap - mkswap /dev/zram0 >/dev/null 2>&1 - - progress "activating swapfile" - - # create swap - swapon -p 10000 /dev/zram0 >/dev/null 2>&1 - sysctl -w vm.swappiness=100 >/dev/null 2>&1 - -fi - diff --git a/packages/drivers/compcache/install b/packages/drivers/compcache/install deleted file mode 100755 index 53d649998c..0000000000 --- a/packages/drivers/compcache/install +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -. config/options $1 - -$SCRIPTS/build busybox-hosttools - -VER=`ls $BUILD/linux*/modules/lib/modules` - -mkdir -p $INSTALL/lib/modules/$VER/zram - cp $PKG_BUILD/zram.ko $INSTALL/lib/modules/$VER/zram - - for MOD in `find $INSTALL/lib/modules/$VER/zram -name *.ko`; do - $STRIP --strip-debug $MOD - done - - $ROOT/$TOOLCHAIN/sbin/depmod -b $INSTALL $VER > /dev/null - for i in `ls $INSTALL/lib/modules/*/modules.* | grep -v modules.dep | grep -v modules.alias | grep -v modules.symbols`; do - rm -f $i - done diff --git a/packages/drivers/compcache/meta b/packages/drivers/compcache/meta deleted file mode 100644 index 7c0023fbfa..0000000000 --- a/packages/drivers/compcache/meta +++ /dev/null @@ -1,14 +0,0 @@ -PKG_NAME="compcache" -PKG_VERSION="20101022" -PKG_REV="1" -PKG_ARCH="any" -PKG_LICENSE="GPL" -PKG_SITE="http://code.google.com/p/compcache/" -PKG_URL="http://sources.openelec.tv/svn/$PKG_NAME-$PKG_VERSION.tar.bz2" -PKG_DEPENDS="" -PKG_BUILD_DEPENDS="toolchain linux" -PKG_PRIORITY="optional" -PKG_SECTION="system" -PKG_SHORTDESC="compcache: creates RAM based block device (named ramzswap) which acts as swap disk" -PKG_LONGDESC="compcache creates RAM based block device (named ramzswap) which acts as swap disk. Pages swapped to this disk are compressed and stored in memory itself." -PKG_IS_ADDON="no" diff --git a/packages/drivers/compcache/need_unpack b/packages/drivers/compcache/need_unpack deleted file mode 100755 index b60fcc137e..0000000000 --- a/packages/drivers/compcache/need_unpack +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -. config/options $1 - -STAMP=$STAMPS/$1/unpack - -test $PKG_DIR/config/linux.$TARGET_ARCH.conf -nt $STAMP -o \ - $PKG_DIR/config/linux.$TARGET_PLATFORM.conf -nt $STAMP -o \ - $PROJECT_DIR/$PROJECT/linux/linux.$TARGET_ARCH.conf -nt $STAMP -o \ - $PROJECT_DIR/$PROJECT/linux/linux.$TARGET_PLATFORM.conf -nt $STAMP -o \ - $PKG_DIR/url -nt $STAMP -o \ - $PKG_DIR/meta -nt $STAMP && rm -f $STAMP - -exit 0 diff --git a/packages/drivers/compcache/patches/compcache-linux-2.6.36_comp-0.1.diff b/packages/drivers/compcache/patches/compcache-linux-2.6.36_comp-0.1.diff deleted file mode 100644 index 41f9a1c501..0000000000 --- a/packages/drivers/compcache/patches/compcache-linux-2.6.36_comp-0.1.diff +++ /dev/null @@ -1,12 +0,0 @@ -diff -Naur compcache-20101022/zram_drv.c compcache-20101022.patch/zram_drv.c ---- compcache-20101022/zram_drv.c 2010-10-22 04:13:51.000000000 +0200 -+++ compcache-20101022.patch/zram_drv.c 2010-10-22 04:31:48.407299221 +0200 -@@ -458,7 +458,7 @@ - return 0; - } - -- if (unlikely(bio_rw_flagged(bio, BIO_RW_DISCARD))) { -+ if (unlikely(bio->bi_rw & REQ_DISCARD)) { - zram_discard(zram, bio); - return 0; - } diff --git a/packages/drivers/install b/packages/drivers/install index 1fa19c2ee3..aa6fa92f87 100755 --- a/packages/drivers/install +++ b/packages/drivers/install @@ -2,8 +2,6 @@ . config/options $1 - [ "$ZRAM_SUPPORT" = "yes" ] && $SCRIPTS/install compcache - for drivers in "$ADDITIONAL_DRIVERS"; do [ "$drivers" = rtl8192se ] && $SCRIPTS/install rtl8192se diff --git a/projects/ION/options b/projects/ION/options index 2c4e1293ec..08934cdc27 100644 --- a/projects/ION/options +++ b/projects/ION/options @@ -86,9 +86,6 @@ # e.g. ADDITIONAL_DRIVERS="rtl8192se" ADDITIONAL_DRIVERS="rtl8192se" -# build with compressed swap (zram) support (yes / no) - ZRAM_SUPPORT="no" - # build with network support (yes / no) NETWORK="yes" diff --git a/projects/generic/options b/projects/generic/options index 0162c26f90..2871cb4629 100644 --- a/projects/generic/options +++ b/projects/generic/options @@ -86,9 +86,6 @@ # e.g. ADDITIONAL_DRIVERS="rtl8192se" ADDITIONAL_DRIVERS="rtl8192se" -# build with compressed swap (zram) support (yes / no) - ZRAM_SUPPORT="no" - # build with network support (yes / no) NETWORK="yes" diff --git a/projects/intel/options b/projects/intel/options index 64cf6aa472..a1c5a5c66f 100644 --- a/projects/intel/options +++ b/projects/intel/options @@ -86,9 +86,6 @@ # e.g. ADDITIONAL_DRIVERS="rtl8192se" ADDITIONAL_DRIVERS="rtl8192se" -# build with compressed swap (zram) support (yes / no) - ZRAM_SUPPORT="no" - # build with network support (yes / no) NETWORK="yes"