-
Notifications
You must be signed in to change notification settings - Fork 886
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b72e494
commit 0c71539
Showing
3 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
################################################################################ | ||
# This file is part of OpenELEC - http://www.openelec.tv | ||
# Copyright (C) 2009-2012 Stephan Raue (stephan@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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. | ||
# http://www.gnu.org/copyleft/gpl.html | ||
################################################################################ | ||
|
||
PKG_NAME="media_build" | ||
PKG_VERSION="1c8936d" | ||
PKG_REV="1" | ||
PKG_ARCH="any" | ||
PKG_LICENSE="GPL" | ||
PKG_SITE="http://git.linuxtv.org/media_build.git" | ||
PKG_URL="$DISTRO_SRC/${PKG_NAME}-${PKG_VERSION}.tar.xz" | ||
PKG_DEPENDS_TARGET="" | ||
PKG_BUILD_DEPENDS_TARGET="toolchain linux" | ||
PKG_PRIORITY="optional" | ||
PKG_SECTION="driver" | ||
PKG_SHORTDESC="Build system to use the latest experimental drivers/patches without needing to replace the entire Kernel" | ||
PKG_LONGDESC="Build system to use the latest experimental drivers/patches without needing to replace the entire Kernel" | ||
PKG_IS_ADDON="no" | ||
PKG_AUTORECONF="no" | ||
|
||
pre_make_target() { | ||
export KERNEL_VER=$(get_module_dir) | ||
# dont use our LDFLAGS, use the KERNEL LDFLAGS | ||
export LDFLAGS="" | ||
} | ||
|
||
make_target() { | ||
wget http://www.linuxtv.org/downloads/firmware/dvb-firmwares.tar.bz2 -O dvb-firmwares.tar.bz2.tmp | ||
cd v4l/firmware/; tar xvfj ../../dvb-firmwares.tar.bz2.tmp | ||
cd ../.. | ||
$SED -i -e "/^LATEST_TAR/s/-LATEST/-2014-01-16/g" linux/Makefile | ||
|
||
make VER=$KERNEL_VER SRCDIR=$(kernel_path) -C linux/ download | ||
make VER=$KERNEL_VER SRCDIR=$(kernel_path) -C linux/ untar | ||
make VER=$KERNEL_VER SRCDIR=$(kernel_path) allyesconfig | ||
make VER=$KERNEL_VER SRCDIR=$(kernel_path) | ||
} | ||
|
||
makeinstall_target() { | ||
mkdir -p $INSTALL/lib/modules/$KERNEL_VER/updates/media_build | ||
find $ROOT/$PKG_BUILD/v4l/ -name \*.ko -exec strip --strip-debug {} \; | ||
find $ROOT/$PKG_BUILD/v4l/ -name \*.ko -exec cp {} $INSTALL/lib/modules/$KERNEL_VER/updates/media_build \; | ||
|
||
mkdir -p $INSTALL/lib/firmware/ | ||
cp $ROOT/$PKG_BUILD/v4l/firmware/*.fw $INSTALL/lib/firmware/ | ||
} |
24 changes: 24 additions & 0 deletions
24
packages/linux-drivers/media_build/patches/media_build-0001-dont-run-rmmod.pl-check.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From 575ee0c44577f8a1010fc565c5b4b7f4486b5dab Mon Sep 17 00:00:00 2001 | ||
From: Stefan Saraev <stefan@saraev.ca> | ||
Date: Sun, 26 Jan 2014 16:45:18 +0200 | ||
Subject: [PATCH] dont run rmmod.pl check | ||
|
||
--- | ||
v4l/Makefile | 1 - | ||
1 files changed, 0 insertions(+), 1 deletions(-) | ||
|
||
diff --git a/v4l/Makefile b/v4l/Makefile | ||
index 41f7283..21911e0 100644 | ||
--- a/v4l/Makefile | ||
+++ b/v4l/Makefile | ||
@@ -51,7 +51,6 @@ default:: prepare firmware | ||
@echo Kernel build directory is $(OUTDIR) | ||
$(MAKE) -C ../linux apply_patches | ||
$(MAKE) -C $(OUTDIR) SUBDIRS=$(PWD) $(MYCFLAGS) modules | ||
- ./scripts/rmmod.pl check | ||
# $(MAKE) checkpatch | ||
|
||
mismatch:: prepare firmware | ||
-- | ||
1.7.2.5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/sh | ||
################################################################################ | ||
# This file is part of OpenELEC - http://www.openelec.tv | ||
# Copyright (C) 2009-2012 Stephan Raue (stephan@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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. | ||
# http://www.gnu.org/copyleft/gpl.html | ||
################################################################################ | ||
|
||
echo "getting sources..." | ||
if [ ! -d media_build.git ]; then | ||
git clone git://linuxtv.org/media_build.git media_build.git | ||
fi | ||
|
||
cd media_build.git | ||
git pull | ||
GIT_REV=`git log -n1 --format=%h` | ||
cd .. | ||
|
||
echo "copying sources..." | ||
rm -rf media_build-$GIT_REV | ||
cp -R media_build.git media_build-$GIT_REV | ||
|
||
echo "cleaning sources..." | ||
rm -rf media_build-$GIT_REV/.git | ||
|
||
echo "packing sources..." | ||
tar cvJf media_build-$GIT_REV.tar.xz media_build-$GIT_REV | ||
|
||
echo "remove temporary sourcedir..." | ||
rm -rf media_build-$GIT_REV |
0c71539
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of linuxtv.org/media_build would´t it be better to use http://goo.gl/El7o50 , media_build + add support for:
new package: liplianin would also make some people very happy :-) 👍
0c71539
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ngene/ddbridge is already included in our tree as kernel patch and officialy supported. this package here will not be included in builds by default so it may conflict only if you choose to compile it ;) liplianin I can add, sure