mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
crystalhd: add patch to fix build with 2.6.26 kernel, fix install, add need_unpack script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
90c5846789
commit
77c1662ba7
@ -13,7 +13,8 @@ cd $PKG_BUILD/driver/linux
|
||||
|
||||
make V=1
|
||||
|
||||
cd $PKG_BUILD/linux_lib/libcrystalhd
|
||||
|
||||
cd ../../linux_lib/libcrystalhd
|
||||
|
||||
make BCGCC=$TARGET_CXX
|
||||
|
||||
|
@ -2,6 +2,10 @@
|
||||
|
||||
. config/options $1
|
||||
|
||||
$SCRIPTS/build busybox-hosttools
|
||||
|
||||
VER=`ls $BUILD/linux*/modules/lib/modules`
|
||||
|
||||
mkdir -p $INSTALL/lib/firmware
|
||||
cp $PKG_BUILD/firmware/fwbin/*/*.bin $INSTALL/lib/firmware
|
||||
|
||||
@ -10,3 +14,15 @@ mkdir -p $INSTALL/usr/lib
|
||||
|
||||
mkdir -p $INSTALL/lib/udev/rules.d
|
||||
cp $PKG_BUILD/driver/linux/*.rules $INSTALL/lib/udev/rules.d
|
||||
|
||||
mkdir -p $INSTALL/lib/modules/$VER/crystalhd
|
||||
cp $PKG_BUILD/driver/linux/crystalhd.ko $INSTALL/lib/modules/$VER/crystalhd
|
||||
|
||||
for MOD in `find $INSTALL/lib/modules/$VER/crystalhd -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
|
||||
|
13
packages/multimedia/crystalhd/need_unpack
Executable file
13
packages/multimedia/crystalhd/need_unpack
Executable file
@ -0,0 +1,13 @@
|
||||
#!/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 && rm -f $STAMP
|
||||
|
||||
exit 0
|
@ -1,6 +1,6 @@
|
||||
diff -Naur crystalhd-3.8.0/driver/linux/crystalhd_flea_ddr.c crystalhd-3.8.0.patch/driver/linux/crystalhd_flea_ddr.c
|
||||
--- crystalhd-3.8.0/driver/linux/crystalhd_flea_ddr.c 2010-10-06 00:07:16.000000000 +0200
|
||||
+++ crystalhd-3.8.0.patch/driver/linux/crystalhd_flea_ddr.c 2010-10-06 01:04:11.844215460 +0200
|
||||
+++ crystalhd-3.8.0.patch/driver/linux/crystalhd_flea_ddr.c 2010-10-06 02:09:53.349322695 +0200
|
||||
@@ -24,6 +24,7 @@
|
||||
* along with this driver. If not, see <http://www.gnu.org/licenses/>.
|
||||
**********************************************************************/
|
||||
@ -11,7 +11,7 @@ diff -Naur crystalhd-3.8.0/driver/linux/crystalhd_flea_ddr.c crystalhd-3.8.0.pat
|
||||
|
||||
diff -Naur crystalhd-3.8.0/driver/linux/crystalhd_lnx.c crystalhd-3.8.0.patch/driver/linux/crystalhd_lnx.c
|
||||
--- crystalhd-3.8.0/driver/linux/crystalhd_lnx.c 2010-10-06 00:07:16.000000000 +0200
|
||||
+++ crystalhd-3.8.0.patch/driver/linux/crystalhd_lnx.c 2010-10-06 01:04:31.543484731 +0200
|
||||
+++ crystalhd-3.8.0.patch/driver/linux/crystalhd_lnx.c 2010-10-06 02:09:59.370398969 +0200
|
||||
@@ -279,8 +279,13 @@
|
||||
}
|
||||
|
||||
@ -20,7 +20,7 @@ diff -Naur crystalhd-3.8.0/driver/linux/crystalhd_lnx.c crystalhd-3.8.0.patch/dr
|
||||
static int chd_dec_ioctl(struct inode *in, struct file *fd,
|
||||
unsigned int cmd, unsigned long ua)
|
||||
+#else
|
||||
+static long irctl_ioctl(struct file *file,
|
||||
+static long chd_dec_ioctl(struct file *fd,
|
||||
+ unsigned int cmd, unsigned long ua)
|
||||
+#endif
|
||||
{
|
Loading…
x
Reference in New Issue
Block a user