Skip to content

Commit

Permalink
media_build: add building Amlogic DVB driver
Browse files Browse the repository at this point in the history
  • Loading branch information
kszaq authored and RealJohnGalt committed Jun 21, 2017
1 parent 102c3ca commit e727039
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
13 changes: 13 additions & 0 deletions packages/linux-drivers/media_build/package.mk
Expand Up @@ -37,6 +37,10 @@ if [ "$TARGET_KERNEL_ARCH" = "arm64" -a "$TARGET_ARCH" = "arm" ]; then
TARGET_PREFIX=aarch64-linux-gnu-
fi

if [ "$PROJECT" = "S905" ] || [ "$PROJECT" = "S912" ]; then
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET dvb_tv-aml"
fi

pre_make_target() {
export KERNEL_VER=$(get_module_dir)
export LDFLAGS=""
Expand Down Expand Up @@ -75,6 +79,15 @@ make_target() {

fi

# Amlogic DVB driver
if [ "$PROJECT" = "S905" ] || [ "$PROJECT" = "S912" ]; then
DVB_TV_AML_DIR="$(get_build_dir dvb_tv-aml)"
if [ -d "$DVB_TV_AML_DIR" ]; then
cp -a "$DVB_TV_AML_DIR" "linux/drivers/media/dvb_tv"
echo "obj-y += dvb_tv/" >> "linux/drivers/media/Makefile"
fi
fi

make VER=$KERNEL_VER SRCDIR=$(kernel_path)
}

Expand Down
@@ -1,6 +1,6 @@
--- a/backports/backports.txt
+++ b/backports/backports.txt
@@ -25,6 +25,14 @@
@@ -25,6 +25,15 @@
add pr_fmt.patch
add debug.patch
add drx39xxj.patch
Expand All @@ -11,6 +11,7 @@
+add linux-057-Removed-MCE-customer-code-restriction-in-rc6-decode.patch
+add linux-062-imon_pad_ignore_diagonal.patch
+add linux-260-fix-for-kernel-4.11.patch
+add linux-277-dmx_h.patch
+add cxd2880-support.patch

[4.8.255]
Expand Down
@@ -0,0 +1,14 @@
--- a/include/uapi/linux/dvb/dmx.h 2017-01-23 18:15:29.000000000 +0100
+++ b/include/uapi/linux/dvb/dmx.h 2017-02-08 14:12:07.802477417 +0100
@@ -132,6 +132,9 @@
DMX_SOURCE_DVR1,
DMX_SOURCE_DVR2,
- DMX_SOURCE_DVR3
+ DMX_SOURCE_DVR3,
+ DMX_SOURCE_FRONT0_OFFSET = 100,
+ DMX_SOURCE_FRONT1_OFFSET,
+ DMX_SOURCE_FRONT2_OFFSET
} dmx_source_t;

struct dmx_stc {

0 comments on commit e727039

Please sign in to comment.