mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
compcache: remove, because not stable enough
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
7b58c271f5
commit
536858cb0a
@ -1,6 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options $1
|
||||
|
||||
cd $PKG_BUILD
|
||||
make CC=$CC KERNELDIR=$(kernel_path)
|
@ -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
|
||||
|
@ -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
|
@ -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"
|
@ -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
|
@ -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;
|
||||
}
|
@ -2,8 +2,6 @@
|
||||
|
||||
. config/options $1
|
||||
|
||||
[ "$ZRAM_SUPPORT" = "yes" ] && $SCRIPTS/install compcache
|
||||
|
||||
for drivers in "$ADDITIONAL_DRIVERS"; do
|
||||
|
||||
[ "$drivers" = rtl8192se ] && $SCRIPTS/install rtl8192se
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user