mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
lirc:
- dont build lirc driver anymore (builded with kernel) - dont install lirc driver anymore (installed with kernel) - disable looking of alsa, portausio, svgalib - logging to syslog - cosmetics & cleanups
This commit is contained in:
parent
6a0308645e
commit
cc523e5c7e
@ -3,7 +3,6 @@
|
|||||||
. config/options
|
. config/options
|
||||||
|
|
||||||
$SCRIPTS/build toolchain
|
$SCRIPTS/build toolchain
|
||||||
$SCRIPTS/build linux
|
|
||||||
|
|
||||||
if [ "$DEBUG" = yes ]; then
|
if [ "$DEBUG" = yes ]; then
|
||||||
DEBUG_CONFIG="--enable-debug"
|
DEBUG_CONFIG="--enable-debug"
|
||||||
@ -17,6 +16,11 @@ export ac_cv_lib_util_forkpty=no
|
|||||||
export MAKEFLAGS=-j1
|
export MAKEFLAGS=-j1
|
||||||
|
|
||||||
cd $PKG_BUILD
|
cd $PKG_BUILD
|
||||||
|
|
||||||
|
sed -i -e 's/asoundlib.h/ALSA_DISABLED/g' configure*
|
||||||
|
sed -i -e 's/portaudio.h/PORTAUDIO_DISABLED/g' configure*
|
||||||
|
sed -i -e 's/vga.h/SVGALIB_DISABLED/g' configure*
|
||||||
|
|
||||||
./configure --host=$TARGET_NAME \
|
./configure --host=$TARGET_NAME \
|
||||||
--build=$HOST_NAME \
|
--build=$HOST_NAME \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
@ -24,10 +28,8 @@ cd $PKG_BUILD
|
|||||||
--disable-shared \
|
--disable-shared \
|
||||||
--enable-sandboxed \
|
--enable-sandboxed \
|
||||||
--without-x \
|
--without-x \
|
||||||
--with-driver=$RECEIVER \
|
--with-driver=userspace \
|
||||||
--with-port=0x3f8 \
|
--with-syslog=LOG_DAEMON \
|
||||||
--with-irq=4 \
|
|
||||||
--with-kerneldir=$(kernel_path) \
|
|
||||||
$DEBUG_CONFIG
|
$DEBUG_CONFIG
|
||||||
|
|
||||||
make
|
make
|
||||||
|
@ -2,10 +2,7 @@
|
|||||||
|
|
||||||
. config/options
|
. config/options
|
||||||
|
|
||||||
$SCRIPTS/install linux
|
|
||||||
|
|
||||||
PKG_DIR=`find $PACKAGES -type d -name $1`
|
PKG_DIR=`find $PACKAGES -type d -name $1`
|
||||||
VER=`ls $BUILD/linux*/modules/lib/modules`
|
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/sbin
|
mkdir -p $INSTALL/usr/sbin
|
||||||
cp $PKG_BUILD/daemons/lircd $INSTALL/usr/sbin
|
cp $PKG_BUILD/daemons/lircd $INSTALL/usr/sbin
|
||||||
@ -16,19 +13,6 @@ mkdir -p $INSTALL/usr/bin
|
|||||||
|
|
||||||
mkdir -p $INSTALL/etc
|
mkdir -p $INSTALL/etc
|
||||||
cp $PKG_DIR/config/lircd_$REMOTE.conf $INSTALL/etc/lircd.conf
|
cp $PKG_DIR/config/lircd_$REMOTE.conf $INSTALL/etc/lircd.conf
|
||||||
cp $PKG_DIR/config/config_$RECEIVER $INSTALL/etc/lirc.conf
|
|
||||||
|
|
||||||
mkdir -p $INSTALL/lib/modules/$VER/lirc
|
|
||||||
cp $PKG_BUILD/drivers/*/*.ko $INSTALL/lib/modules/$VER/lirc
|
|
||||||
|
|
||||||
for MOD in `find $INSTALL/lib/modules/$VER/lirc -name *.ko`; do
|
|
||||||
$STRIP --strip-debug $MOD
|
|
||||||
done
|
|
||||||
|
|
||||||
$ROOT/$TOOLCHAIN/bin/depmod -b $INSTALL -v $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
|
|
||||||
|
|
||||||
if [ "$DEVTOOLS" = yes ]; then
|
if [ "$DEVTOOLS" = yes ]; then
|
||||||
mkdir -p $INSTALL/usr/bin
|
mkdir -p $INSTALL/usr/bin
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
. config/options
|
|
||||||
|
|
||||||
PKG_DIR=`find $PACKAGES -type d -name $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 && rm -f $STAMP
|
|
||||||
|
|
||||||
exit 0
|
|
Loading…
x
Reference in New Issue
Block a user