media_build: update to use build config

This commit is contained in:
cvh
2017-01-23 18:32:44 +01:00
parent 637b8c0c80
commit ca10b0f375
9 changed files with 1234 additions and 10 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
################################################################################
# This file is part of LibreELEC - https://libreelec.tv
# Copyright (C) 2016 Team LibreELEC
# Copyright (C) 2016-2017 Team LibreELEC
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
################################################################################
PKG_NAME="media_build"
PKG_VERSION="2016-12-28"
PKG_VERSION="2017-01-22"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/crazycat69/linux_media"
@@ -37,13 +37,24 @@ pre_make_target() {
}
make_target() {
cd media_build
make dir DIR=../media
make VER=$KERNEL_VER SRCDIR=$(kernel_path) allyesconfig
make untar
# copy config file
if [ "$PROJECT" = Generic ] || [ "$PROJECT" = Virtual ]; then
if [ -f $PKG_DIR/config/generic.config ]; then
cp $PKG_DIR/config/generic.config v4l/.config
fi
else
if [ -f $PKG_DIR/config/usb.config ]; then
cp $PKG_DIR/config/usb.config v4l/.config
fi
fi
# add menuconfig to edit .config
make VER=$KERNEL_VER SRCDIR=$(kernel_path)
}
makeinstall_target() {
mkdir -p $INSTALL/usr/lib/modules/$KERNEL_VER/updates
find $ROOT/$PKG_BUILD/media_build/v4l/ -name \*.ko -exec cp {} $INSTALL/usr/lib/modules/$KERNEL_VER/updates \;
find $ROOT/$PKG_BUILD/v4l/ -name \*.ko -exec cp {} $INSTALL/usr/lib/modules/$KERNEL_VER/updates \;
}

View File

@@ -1,7 +1,7 @@
[Patch] without this patch you need to install libproc-processtable-perl at host system
--- a/media_build/v4l/Makefile
+++ b/media_build/v4l/Makefile
--- a/v4l/Makefile
+++ b/v4l/Makefile
@@ -51,7 +51,7 @@
@echo Kernel build directory is $(OUTDIR)
$(MAKE) -C ../linux apply_patches

View File

@@ -1,5 +1,5 @@
--- a/media_build/backports/backports.txt
+++ b/media_build/backports/backports.txt
--- a/backports/backports.txt
+++ b/backports/backports.txt
@@ -25,6 +25,9 @@
add pr_fmt.patch
add debug.patch

View File

@@ -0,0 +1,13 @@
make config and make menuconfig work now
--- a/v4l/Kconfig.staging
+++ b/v4l/Kconfig.staging
@@ -27,7 +27,7 @@ menu "Media devices in staging"
config STAGING_BROKEN
bool "Enable drivers that are known to not compile"
default n
- --- help ---
+ ---help---
Say N here, except if you will be fixing the drivers
compilation.