From 4d0739f0c1a9b4cabb820e36b40d541e00030413 Mon Sep 17 00:00:00 2001 From: andy-burns-uk Date: Sun, 11 Mar 2018 11:44:15 +0000 Subject: [PATCH] include seco-cec module set kernel options for CEC set kernel options to build i2c-i801 as module insted of built-in set libreelec options for CEC framework --- distributions/LibreELEC/options | 2 +- packages/linux-drivers/secocec/package.mk | 44 +++++++++++++++++++++++ projects/Generic/linux/linux.x86_64.conf | 10 ++++-- projects/Generic/options | 2 +- 4 files changed, 53 insertions(+), 5 deletions(-) create mode 100644 packages/linux-drivers/secocec/package.mk diff --git a/distributions/LibreELEC/options b/distributions/LibreELEC/options index 44c63abf099..2828d303213 100644 --- a/distributions/LibreELEC/options +++ b/distributions/LibreELEC/options @@ -147,7 +147,7 @@ CEC_SUPPORT="yes" # build and install CEC framework support (yes / no) - CEC_FRAMEWORK_SUPPORT="no" + CEC_FRAMEWORK_SUPPORT="yes" # build and install iSCSI support - iscsistart (yes / no) ISCSI_SUPPORT="yes" diff --git a/packages/linux-drivers/secocec/package.mk b/packages/linux-drivers/secocec/package.mk new file mode 100644 index 00000000000..97745547d9c --- /dev/null +++ b/packages/linux-drivers/secocec/package.mk @@ -0,0 +1,44 @@ +################################################################################ +# This file is part of LibreELEC - https://libreelec.tv +# Copyright (C) 2018-present 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 +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# LibreELEC 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 LibreELEC. If not, see . +################################################################################ + +PKG_NAME="secocec" +PKG_VERSION="364058c36fa11d7c4f539e6fb35a65acfad405de" +PKG_SHA256="52b14a0bf757c39bc2739f6887da43075ff810d9f8d57b24b2958282ef4d159f" +PKG_ARCH="x86_64" +PKG_LICENSE="GPLv2/BSD" +PKG_SITE="https://github.com/ektor5/secocec/" +PKG_URL="https://github.com/ektor5/secocec/archive/$PKG_VERSION.tar.gz" +PKG_DEPENDS_TARGET="toolchain linux v4l-utils" +PKG_NEED_UNPACK="$LINUX_DEPENDS" +PKG_SECTION="driver" +PKG_SHORTDESC="CEC driver for udoo x86 boards" +PKG_LONGDESC="CEC driver for udoo x86 boards" +PKG_IS_KERNEL_PKG="yes" + +pre_make_target() { + unset LDFLAGS +} + +make_target() { + make KERNELDIR=$(kernel_path) +} + +makeinstall_target() { + mkdir -p $INSTALL/$(get_full_module_dir)/$PKG_NAME + cp *.ko $INSTALL/$(get_full_module_dir)/$PKG_NAME +} diff --git a/projects/Generic/linux/linux.x86_64.conf b/projects/Generic/linux/linux.x86_64.conf index b964200325f..674bf83bf3b 100644 --- a/projects/Generic/linux/linux.x86_64.conf +++ b/projects/Generic/linux/linux.x86_64.conf @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/x86_64 4.14.22 Kernel Configuration +# Linux/x86_64 4.14.24 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y @@ -2449,7 +2449,7 @@ CONFIG_I2C_ALGOBIT=y # CONFIG_I2C_ALI15X3 is not set # CONFIG_I2C_AMD756 is not set # CONFIG_I2C_AMD8111 is not set -CONFIG_I2C_I801=y +CONFIG_I2C_I801=m CONFIG_I2C_ISCH=y # CONFIG_I2C_ISMT is not set CONFIG_I2C_PIIX4=y @@ -2952,7 +2952,8 @@ CONFIG_MEDIA_ANALOG_TV_SUPPORT=y CONFIG_MEDIA_DIGITAL_TV_SUPPORT=y # CONFIG_MEDIA_RADIO_SUPPORT is not set # CONFIG_MEDIA_SDR_SUPPORT is not set -# CONFIG_MEDIA_CEC_SUPPORT is not set +CONFIG_MEDIA_CEC_SUPPORT=y +CONFIG_MEDIA_CEC_RC=y # CONFIG_MEDIA_CONTROLLER is not set CONFIG_VIDEO_DEV=m CONFIG_VIDEO_V4L2=m @@ -3079,6 +3080,8 @@ CONFIG_VIDEO_EM28XX=m # CONFIG_VIDEO_EM28XX_ALSA is not set CONFIG_VIDEO_EM28XX_DVB=m CONFIG_VIDEO_EM28XX_RC=m +CONFIG_USB_PULSE8_CEC=m +CONFIG_USB_RAINSHADOW_CEC=m CONFIG_MEDIA_PCI_SUPPORT=y # @@ -3149,6 +3152,7 @@ CONFIG_DVB_SMIPCIE=m # CONFIG_V4L_MEM2MEM_DRIVERS is not set # CONFIG_V4L_TEST_DRIVERS is not set # CONFIG_DVB_PLATFORM_DRIVERS is not set +CONFIG_CEC_PLATFORM_DRIVERS=y # # Supported MMC/SDIO adapters diff --git a/projects/Generic/options b/projects/Generic/options index 07c8bfc1394..11bf9dd9804 100644 --- a/projects/Generic/options +++ b/projects/Generic/options @@ -90,7 +90,7 @@ # for a list of additinoal drivers see packages/linux-drivers # Space separated list is supported, # e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2" - ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS bcm_sta intel_nuc_led" + ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS bcm_sta intel_nuc_led secocec" # build and install driver addons (yes / no) DRIVER_ADDONS_SUPPORT="yes"