mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 06:57:50 +00:00
Merge pull request #2201 from lrusak/imx-removal
various imx related cleanups
This commit is contained in:
commit
cf3baeb33c
@ -32,9 +32,6 @@ PKG_AUTORECONF="no"
|
||||
FREESCALE_V4L_INCLUDE=""
|
||||
if [ "$KODIPLAYER_DRIVER" = "bcm2835-driver" ]; then
|
||||
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET bcm2835-driver"
|
||||
elif [ "$KODIPLAYER_DRIVER" = "libfslvpuwrap" ]; then
|
||||
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET libfslvpuwrap gpu-viv-bin-mx6q v4l-utils"
|
||||
FREESCALE_V4L_INCLUDE="-DFREESCALE_INCLUDE_DIR=$(get_build_dir v4l-utils)/lib/include"
|
||||
elif [ "$KODIPLAYER_DRIVER" = "libamcodec" ]; then
|
||||
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET libamcodec"
|
||||
elif [ "$DISPLAYSERVER" = "x11" ]; then
|
||||
@ -47,10 +44,6 @@ pre_build_target() {
|
||||
cp -a $(get_build_dir moonlight-common-c)/* $PKG_BUILD/third_party/moonlight-common-c
|
||||
}
|
||||
|
||||
pre_configure_target() {
|
||||
[ "$PROJECT" = "imx6" ] && strip_gold || true
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
:
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ PKG_NAME="repository.linuxserver.docker"
|
||||
PKG_VERSION="9.0"
|
||||
PKG_REV="102"
|
||||
PKG_ARCH="any"
|
||||
PKG_ADDON_PROJECTS="Generic RPi RPi2 imx6 WeTek_Hub WeTek_Play_2 Odroid_C2"
|
||||
PKG_ADDON_PROJECTS="Generic RPi RPi2 WeTek_Hub WeTek_Play_2 Odroid_C2"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://linuxserver.io"
|
||||
PKG_URL=""
|
||||
|
@ -70,8 +70,6 @@ addon() {
|
||||
|
||||
if [ "$KODIPLAYER_DRIVER" = "bcm2835-driver" ]; then
|
||||
cp -P $(get_build_dir moonlight-embedded)/.$TARGET_NAME/libmoonlight-pi.so $ADDON_BUILD/$PKG_ADDON_ID/lib
|
||||
elif [ "$KODIPLAYER_DRIVER" = "libfslvpuwrap" ]; then
|
||||
cp -P $(get_build_dir moonlight-embedded)/.$TARGET_NAME/libmoonlight-imx.so $ADDON_BUILD/$PKG_ADDON_ID/lib
|
||||
elif [ "$KODIPLAYER_DRIVER" = "libamcodec" ]; then
|
||||
cp -P $(get_build_dir moonlight-embedded)/.$TARGET_NAME/libmoonlight-aml.so $ADDON_BUILD/$PKG_ADDON_ID/lib
|
||||
fi
|
||||
|
@ -20,7 +20,7 @@ PKG_NAME="docker"
|
||||
PKG_VERSION=""
|
||||
PKG_REV="116"
|
||||
PKG_ARCH="any"
|
||||
PKG_ADDON_PROJECTS="Generic RPi RPi2 imx6 WeTek_Hub WeTek_Play_2 Odroid_C2"
|
||||
PKG_ADDON_PROJECTS="Generic RPi RPi2 WeTek_Hub WeTek_Play_2 Odroid_C2"
|
||||
PKG_LICENSE=""
|
||||
PKG_SITE="http://www.docker.com/"
|
||||
PKG_DEPENDS_TARGET="toolchain moby"
|
||||
|
@ -20,7 +20,7 @@ PKG_NAME="touchscreen"
|
||||
PKG_VERSION="1.0"
|
||||
PKG_REV="101"
|
||||
PKG_ARCH="any"
|
||||
PKG_ADDON_PROJECTS="Generic RPi RPi2 imx6"
|
||||
PKG_ADDON_PROJECTS="Generic RPi RPi2"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE=""
|
||||
PKG_URL=""
|
||||
|
@ -23,7 +23,6 @@ PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://libcec.pulse-eight.com/"
|
||||
PKG_URL="https://github.com/Pulse-Eight/libcec/archive/$PKG_VERSION.tar.gz"
|
||||
[ "$PROJECT" = "imx6" ] && PKG_PATCH_DIRS="${LINUX#imx6-}"
|
||||
PKG_DEPENDS_TARGET="toolchain systemd lockdev p8-platform swig:host"
|
||||
PKG_SECTION="system"
|
||||
PKG_SHORTDESC="libCEC is an open-source dual licensed library designed for communicating with the Pulse-Eight USB - CEC Adaptor"
|
||||
@ -32,18 +31,13 @@ PKG_AUTORECONF="no"
|
||||
|
||||
PKG_CMAKE_OPTS_TARGET="-DBUILD_SHARED_LIBS=1 \
|
||||
-DCMAKE_INSTALL_LIBDIR:STRING=lib \
|
||||
-DCMAKE_INSTALL_LIBDIR_NOARCH:STRING=lib"
|
||||
-DCMAKE_INSTALL_LIBDIR_NOARCH:STRING=lib \
|
||||
-DHAVE_IMX_API=0"
|
||||
|
||||
if [ "$KODIPLAYER_DRIVER" = "bcm2835-driver" ]; then
|
||||
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET bcm2835-driver"
|
||||
fi
|
||||
|
||||
if [ "$KODIPLAYER_DRIVER" = "libfslvpuwrap" ]; then
|
||||
PKG_CMAKE_OPTS_TARGET="$PKG_CMAKE_OPTS_TARGET -DHAVE_IMX_API=1"
|
||||
else
|
||||
PKG_CMAKE_OPTS_TARGET="$PKG_CMAKE_OPTS_TARGET -DHAVE_IMX_API=0"
|
||||
fi
|
||||
|
||||
if [ "$KODIPLAYER_DRIVER" = "libamcodec" ]; then
|
||||
if [ "$TARGET_KERNEL_ARCH" = "arm64" ]; then
|
||||
PKG_CMAKE_OPTS_TARGET="$PKG_CMAKE_OPTS_TARGET -DHAVE_AOCEC_API=1"
|
||||
|
@ -1,64 +0,0 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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.
|
||||
#
|
||||
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="gpu-viv-bin-mx6q"
|
||||
PKG_VERSION="3.10.17-1.0.2-hfp"
|
||||
PKG_SHA256="fcf5cc1c2507d77b6ecaef6defd63fbd604be5a765f86922530cb423a595a592"
|
||||
PKG_ARCH="arm"
|
||||
PKG_LICENSE="nonfree"
|
||||
PKG_SITE="http://www.freescale.com"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||
PKG_DEPENDS_TARGET="toolchain gpu-viv-g2d"
|
||||
PKG_SECTION="graphics"
|
||||
PKG_SHORTDESC="gpu-viv-bin-mx6q: OpenGL-ES and VIVANTE driver for imx6q"
|
||||
PKG_LONGDESC="gpu-viv-bin-mx6q: OpenGL-ES and VIVANTE driver for imx6q"
|
||||
PKG_AUTORECONF="no"
|
||||
|
||||
make_target() {
|
||||
: # nothing to make
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p $SYSROOT_PREFIX/usr/include
|
||||
cp -PRv usr/include/* $SYSROOT_PREFIX/usr/include
|
||||
|
||||
LIBS_COPY="usr/lib/libEGL-fb.so \
|
||||
usr/lib/libEGL.so* \
|
||||
usr/lib/libGLES_CL.so \
|
||||
usr/lib/libGLES_CM.so \
|
||||
usr/lib/libGLESv1_CL.so* \
|
||||
usr/lib/libGLESv1_CM.so* \
|
||||
usr/lib/libGLESv2-fb.so \
|
||||
usr/lib/libGLESv2.so* \
|
||||
usr/lib/libGLSLC.so* \
|
||||
usr/lib/libGAL-fb.so \
|
||||
usr/lib/libGAL.so* \
|
||||
usr/lib/libVIVANTE-fb.so \
|
||||
usr/lib/libVIVANTE.so* \
|
||||
usr/lib/libOpenCL.so"
|
||||
|
||||
mkdir -p $SYSROOT_PREFIX/usr/lib
|
||||
cp -PRv $LIBS_COPY $SYSROOT_PREFIX/usr/lib
|
||||
|
||||
mkdir -p $INSTALL/usr/lib
|
||||
cp -PRv $LIBS_COPY $INSTALL/usr/lib
|
||||
}
|
||||
|
||||
post_install() {
|
||||
enable_service unbind-console.service
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=unbind Framebuffer console
|
||||
|
||||
ConditionPathExists=/sys/class/vtconsole/vtcon1/bind
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -c 'echo 0 > /sys/class/vtconsole/vtcon1/bind'
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
@ -1,42 +0,0 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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.
|
||||
#
|
||||
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="gpu-viv-g2d"
|
||||
PKG_VERSION="3.10.17-1.0.2"
|
||||
PKG_SHA256="ef1c2426b515f3992a3efba4f879baebcc61597e0ce7b68b6d78998d0801715a"
|
||||
PKG_ARCH="arm"
|
||||
PKG_LICENSE="nonfree"
|
||||
PKG_SITE="http://www.freescale.com"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||
PKG_DEPENDS_TARGET="toolchain"
|
||||
PKG_SECTION="graphics"
|
||||
PKG_SHORTDESC="gpu-viv-g2d: Another vivante Binary for performant resizing"
|
||||
PKG_LONGDESC="gpu-viv-g2d: Another vivante Binary for performant resizing"
|
||||
PKG_AUTORECONF="no"
|
||||
|
||||
make_target() {
|
||||
: # nothing to make all binary
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p $SYSROOT_PREFIX/usr
|
||||
cp -PRv usr/* $SYSROOT_PREFIX/usr
|
||||
|
||||
mkdir -p $INSTALL/usr/lib
|
||||
cp -PRv usr/lib/* $INSTALL/usr/lib
|
||||
}
|
@ -1,81 +0,0 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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.
|
||||
#
|
||||
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="imx-gpu-viv"
|
||||
if [ "$LINUX" = "imx6-3.14-sr" ]; then
|
||||
PKG_VERSION="5.0.11.p4.5-hfp"
|
||||
PKG_SHA256="2dfcacd17f8009b1a235a2df2b398f22afccb6f671953e442c04cd74234312f0"
|
||||
elif [ "$LINUX" = "imx6-4.4-xbian" ]; then
|
||||
PKG_VERSION="5.0.11.p7.4-hfp"
|
||||
PKG_SHA256="252b2a8badbc74ca91916490782225affba3908813374baaa7d6267f1de9dae6"
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
PKG_ARCH="arm"
|
||||
PKG_LICENSE="nonfree"
|
||||
PKG_SITE="http://www.freescale.com"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||
PKG_DEPENDS_TARGET="toolchain"
|
||||
PKG_SECTION="graphics"
|
||||
PKG_SHORTDESC="imx-gpu-viv: OpenGL-ES and VIVANTE driver for imx6q"
|
||||
PKG_LONGDESC="imx-gpu-viv: OpenGL-ES and VIVANTE driver for imx6q"
|
||||
PKG_AUTORECONF="no"
|
||||
|
||||
make_target() {
|
||||
: # nothing to make
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p $SYSROOT_PREFIX/usr/include
|
||||
cp -PRv gpu-core/usr/include/* $SYSROOT_PREFIX/usr/include
|
||||
cp -PRv g2d/usr/include/* $SYSROOT_PREFIX/usr/include
|
||||
|
||||
LIBS_COPY="gpu-core/usr/lib/libEGL-fb.so \
|
||||
gpu-core/usr/lib/libEGL.so* \
|
||||
gpu-core/usr/lib/libGLES_CL.so* \
|
||||
gpu-core/usr/lib/libGLES_CM.so* \
|
||||
gpu-core/usr/lib/libGLESv1_CL.so* \
|
||||
gpu-core/usr/lib/libGLESv1_CM.so* \
|
||||
gpu-core/usr/lib/libGLESv2-fb.so \
|
||||
gpu-core/usr/lib/libGLESv2.so* \
|
||||
gpu-core/usr/lib/libGLSLC.so* \
|
||||
gpu-core/usr/lib/libGAL-fb.so \
|
||||
gpu-core/usr/lib/libGAL.so* \
|
||||
gpu-core/usr/lib/libVIVANTE-fb.so \
|
||||
gpu-core/usr/lib/libVIVANTE.so* \
|
||||
gpu-core/usr/lib/libOpenCL.so \
|
||||
gpu-core/usr/lib/libVSC.so \
|
||||
g2d/usr/lib/libg2d*.so*"
|
||||
|
||||
# missing in 5.0.11.p7.4-hfp
|
||||
if [ "$PKG_VERSION" = "5.0.11.p4.5-hfp" ]; then
|
||||
LIBS_COPY="$LIBS_COPY \
|
||||
gpu-core/usr/lib/libGAL_egl.fb.so \
|
||||
gpu-core/usr/lib/libGAL_egl.so*"
|
||||
fi
|
||||
|
||||
mkdir -p $SYSROOT_PREFIX/usr/lib
|
||||
cp -PRv $LIBS_COPY $SYSROOT_PREFIX/usr/lib
|
||||
|
||||
mkdir -p $INSTALL/usr/lib
|
||||
cp -PRv $LIBS_COPY $INSTALL/usr/lib
|
||||
}
|
||||
|
||||
post_install() {
|
||||
enable_service unbind-console.service
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=unbind Framebuffer console
|
||||
|
||||
ConditionPathExists=/sys/class/vtconsole/vtcon1/bind
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -c 'echo 0 > /sys/class/vtconsole/vtcon1/bind'
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
@ -45,26 +45,6 @@ case "$LINUX" in
|
||||
PKG_SOURCE_DIR="$PKG_NAME-amlogic-$PKG_VERSION*"
|
||||
PKG_PATCH_DIRS="amlogic-3.14"
|
||||
;;
|
||||
imx6-3.14-sr)
|
||||
PKG_VERSION="3.14-sr"
|
||||
PKG_SHA256="04ce73fe6434bb31197e94a9c51e3c44aba7f5226450ff4cec21bc5c985f986d"
|
||||
PKG_COMMIT="2fb11e2"
|
||||
PKG_SITE="http://solid-run.com/wiki/doku.php?id=products:imx6:software:development:kernel"
|
||||
PKG_URL="https://github.com/SolidRun/linux-fslc/archive/$PKG_COMMIT.tar.gz"
|
||||
PKG_SOURCE_NAME="$PKG_NAME-$LINUX-$PKG_COMMIT.tar.gz"
|
||||
PKG_SOURCE_DIR="$PKG_NAME-fslc-${PKG_COMMIT}*"
|
||||
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET imx6-status-led imx6-soc-fan"
|
||||
;;
|
||||
imx6-4.4-xbian)
|
||||
PKG_VERSION="4.4-xbian"
|
||||
PKG_SHA256="5d7074937a31042b0764bc975f7280500a0728a00a7a46ab6b06372f42d37ede"
|
||||
PKG_COMMIT="3bde863"
|
||||
PKG_SITE="https://github.com/xbianonpi/xbian-sources-kernel/tree/imx6-4.4.y"
|
||||
PKG_URL="https://github.com/xbianonpi/xbian-sources-kernel/archive/$PKG_COMMIT.tar.gz"
|
||||
PKG_SOURCE_NAME="$PKG_NAME-$LINUX-$PKG_COMMIT.tar.gz"
|
||||
PKG_SOURCE_DIR="xbian-sources-kernel-${PKG_COMMIT}*"
|
||||
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET imx6-status-led imx6-soc-fan irqbalanced"
|
||||
;;
|
||||
*)
|
||||
PKG_VERSION="4.13.12"
|
||||
PKG_SHA256="bf98065bf0e3aa5af379d0808f157be48ca4e452a55468fc4ce814b17cf9de74"
|
||||
|
@ -49,8 +49,5 @@ pre_configure_target() {
|
||||
-I$SYSROOT_PREFIX/usr/include/interface/vmcs_host/linux"
|
||||
export CFLAGS="$CFLAGS $BCM2835_INCLUDES"
|
||||
export CXXFLAGS="$CXXFLAGS $BCM2835_INCLUDES"
|
||||
elif [ "$KODIPLAYER_DRIVER" = libfslvpuwrap ]; then
|
||||
export CFLAGS="$CFLAGS -DLINUX -DEGL_API_FB"
|
||||
export CXXFLAGS="$CXXFLAGS -DLINUX -DEGL_API_FB"
|
||||
fi
|
||||
}
|
||||
|
@ -49,8 +49,5 @@ pre_configure_target() {
|
||||
-I$SYSROOT_PREFIX/usr/include/interface/vmcs_host/linux"
|
||||
export CFLAGS="$CFLAGS $BCM2835_INCLUDES"
|
||||
export CXXFLAGS="$CXXFLAGS $BCM2835_INCLUDES"
|
||||
elif [ "$KODIPLAYER_DRIVER" = libfslvpuwrap ]; then
|
||||
export CFLAGS="$CFLAGS -DLINUX -DEGL_API_FB"
|
||||
export CXXFLAGS="$CXXFLAGS -DLINUX -DEGL_API_FB"
|
||||
fi
|
||||
}
|
||||
|
@ -192,10 +192,6 @@ if [ ! "$KODIPLAYER_DRIVER" = default ]; then
|
||||
KODI_PLAYER="-DCORE_PLATFORM_NAME=gbm"
|
||||
CFLAGS="$CFLAGS -DMESA_EGL_NO_X11_HEADERS"
|
||||
CXXFLAGS="$CXXFLAGS -DMESA_EGL_NO_X11_HEADERS"
|
||||
elif [ "$KODIPLAYER_DRIVER" = libfslvpuwrap ]; then
|
||||
KODI_PLAYER="-DCORE_PLATFORM_NAME=imx"
|
||||
CFLAGS="$CFLAGS -DHAS_IMXVPU -DLINUX -DEGL_API_FB"
|
||||
CXXFLAGS="$CXXFLAGS -DHAS_IMXVPU -DLINUX -DEGL_API_FB"
|
||||
elif [ "$KODIPLAYER_DRIVER" = libamcodec ]; then
|
||||
KODI_PLAYER="-DCORE_PLATFORM_NAME=aml"
|
||||
fi
|
||||
|
@ -1,39 +0,0 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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.
|
||||
#
|
||||
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="imx-vpu"
|
||||
PKG_VERSION="5.4.33"
|
||||
PKG_SHA256="8140a433ef8ab5e39112b0b99dbf612b3db5e697a47c01178df066da6bad77ea"
|
||||
PKG_ARCH="arm"
|
||||
PKG_LICENSE="other"
|
||||
PKG_SITE="http://www.freescale.com"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||
PKG_DEPENDS_TARGET="toolchain firmware-imx"
|
||||
PKG_SECTION="multimedia"
|
||||
PKG_SHORTDESC="imx-vpu: platform specific unit tests for mxc platform"
|
||||
PKG_LONGDESC="imx-vpu: platform specific unit tests for mxc platform"
|
||||
PKG_AUTORECONF="no"
|
||||
|
||||
make_target() {
|
||||
make DIRS="vpu" CFLAGS="$CFLAGS" PLATFORM=IMX6Q CROSS_COMPILE=$TARGET_PREFIX
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
make DIRS="vpu" PLATFORM=IMX6Q DEST_DIR=$SYSROOT_PREFIX install
|
||||
make DIRS="vpu" PLATFORM=IMX6Q DEST_DIR=$INSTALL install
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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.
|
||||
#
|
||||
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="libfslvpuwrap"
|
||||
PKG_VERSION="1.0.65"
|
||||
PKG_SHA256="abe8ebeaf708c93b4ef61b4b181139b18b2136ddc7f53749fd5c0a613cde874e"
|
||||
PKG_ARCH="arm"
|
||||
PKG_LICENSE="other"
|
||||
PKG_SITE="http://www.freescale.com"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||
PKG_DEPENDS_TARGET="toolchain imx-vpu"
|
||||
PKG_SECTION="multimedia"
|
||||
PKG_SHORTDESC="libfslvpuwrap: Freescale Multimedia VPU wrapper"
|
||||
PKG_LONGDESC="libfslvpuwrap: Freescale Multimedia VPU wrapper"
|
||||
PKG_AUTORECONF="yes"
|
||||
|
||||
post_makeinstall_target() {
|
||||
rm -rf $INSTALL/usr/share
|
||||
}
|
@ -1,67 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2015 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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.
|
||||
#
|
||||
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
. /usr/lib/libreelec/imx6-system-type
|
||||
|
||||
if [ "$SYSTEM_TYPE" != "matrix" ]; then
|
||||
echo "Only for TBS Matrix system."
|
||||
exit 12
|
||||
fi
|
||||
|
||||
fan_on() {
|
||||
echo 1 > /sys/class/leds/fan/brightness
|
||||
}
|
||||
|
||||
fan_off() {
|
||||
echo 0 > /sys/class/leds/fan/brightness
|
||||
}
|
||||
|
||||
soc_temp() {
|
||||
local temp=$(cat /sys/devices/virtual/thermal/thermal_zone0/temp)
|
||||
temp="$(( $temp / 1000 ))"
|
||||
echo "$temp"
|
||||
}
|
||||
|
||||
echo "SoC temp: $(soc_temp) C"
|
||||
|
||||
ACTION=$1
|
||||
INTERVAL=$2
|
||||
|
||||
if [ -n "$ACTION" -a "$ACTION" = "on" ]; then
|
||||
echo "Turning fan on."
|
||||
fan_on
|
||||
elif [ -n "$ACTION" -a "$ACTION" = "off" ]; then
|
||||
echo "Turning fan off."
|
||||
fan_off
|
||||
elif [ -n "$ACTION" -a "$ACTION" = "log" ]; then
|
||||
if [ -n "$INTERVAL" ]; then
|
||||
interval=$INTERVAL
|
||||
else
|
||||
interval=60
|
||||
fi
|
||||
|
||||
while true; do
|
||||
echo "SoC temp: $(soc_temp) C"
|
||||
|
||||
sleep $interval
|
||||
done
|
||||
else
|
||||
echo "Unknown argument - must be on, off or log [interval]."
|
||||
fi
|
@ -1,37 +0,0 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2015 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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.
|
||||
#
|
||||
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
#
|
||||
# imx6-soc-fan-monitor.conf.sample - i.MX6 SoC fan monitor config file
|
||||
# used only for TBS Matrix system
|
||||
#
|
||||
|
||||
# default limits without config file
|
||||
# when fan is turned on
|
||||
# high=70
|
||||
# when fan is turned off
|
||||
# low=60
|
||||
# temperature checking interval
|
||||
# interval=30
|
||||
# periodically show temperature
|
||||
# debug=no
|
||||
|
||||
high=70
|
||||
low=55
|
||||
interval=30
|
||||
debug=no
|
@ -1,48 +0,0 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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.
|
||||
#
|
||||
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="imx6-soc-fan"
|
||||
PKG_VERSION="1.0"
|
||||
PKG_ARCH="arm"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.openelec.tv/"
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS_TARGET="imx6-status-led"
|
||||
PKG_SECTION="system"
|
||||
PKG_SHORTDESC="i.MX6 SoC fan monitor"
|
||||
PKG_LONGDESC="i.MX6 SoC fan monitor for TBS Matrix system"
|
||||
PKG_AUTORECONF="no"
|
||||
|
||||
make_target() {
|
||||
: # nothing
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p $INSTALL/usr/config
|
||||
cp $PKG_DIR/config/* $INSTALL/usr/config
|
||||
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
cp $PKG_DIR/bin/* $INSTALL/usr/bin
|
||||
|
||||
mkdir -p $INSTALL/usr/lib/libreelec
|
||||
cp $PKG_DIR/scripts/* $INSTALL/usr/lib/libreelec
|
||||
}
|
||||
|
||||
post_install() {
|
||||
enable_service imx6-soc-fan-monitor.service
|
||||
}
|
@ -1,83 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2015 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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.
|
||||
#
|
||||
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
. /usr/lib/libreelec/imx6-system-type
|
||||
|
||||
if [ "$SYSTEM_TYPE" != "matrix" ]; then
|
||||
echo "Only for TBS Matrix system."
|
||||
exit 12
|
||||
fi
|
||||
|
||||
debug_echo() {
|
||||
if [ -n "$debug" -a "$debug" == "yes" ]; then
|
||||
echo $*
|
||||
fi
|
||||
}
|
||||
|
||||
fan_on() {
|
||||
echo 1 > /sys/class/leds/fan/brightness
|
||||
}
|
||||
|
||||
fan_off() {
|
||||
echo 0 > /sys/class/leds/fan/brightness
|
||||
}
|
||||
|
||||
soc_temp() {
|
||||
local temp=$(cat /sys/devices/virtual/thermal/thermal_zone0/temp)
|
||||
temp="$(( $temp / 1000 ))"
|
||||
echo "$temp"
|
||||
}
|
||||
|
||||
# default limits
|
||||
high=75
|
||||
low=60
|
||||
interval=30
|
||||
debug=no
|
||||
|
||||
userconfig=/storage/.config/imx6-soc-fan-monitor.conf
|
||||
if [ -e $userconfig ]; then
|
||||
. $userconfig
|
||||
echo "Values from config: low=$low high=$high interval=$interval debug=$debug"
|
||||
else
|
||||
echo "Default values: low=$low high=$high interval=$interval debug=$debug"
|
||||
fi
|
||||
|
||||
#(
|
||||
# # turn fan on for a moment
|
||||
# fan_on
|
||||
# sleep 2
|
||||
# fan_off
|
||||
#)&
|
||||
|
||||
while true; do
|
||||
temp=$(soc_temp)
|
||||
debug_echo "SoC temp: $temp [low: $low, high: $high]"
|
||||
if [ $temp -gt $high ]; then
|
||||
debug_echo "SoC temp exceeds $high celsius, fan on"
|
||||
fan_on
|
||||
fi
|
||||
|
||||
if [ $temp -lt $low ]; then
|
||||
debug_echo "SoC temp below $low celsius, fan off"
|
||||
fan_off
|
||||
fi
|
||||
|
||||
sleep $interval
|
||||
done
|
@ -1,13 +0,0 @@
|
||||
[Unit]
|
||||
Description=i.MX6 SoC fan monitor service
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/sh -c "exec /bin/sh /usr/lib/libreelec/imx6-soc-fan-monitor"
|
||||
RestartPreventExitStatus=12
|
||||
TimeoutStopSec=5
|
||||
Restart=always
|
||||
RestartSec=60
|
||||
StartLimitInterval=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,42 +0,0 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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.
|
||||
#
|
||||
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="imx6-status-led"
|
||||
PKG_VERSION="1.0"
|
||||
PKG_ARCH="arm"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.openelec.tv/"
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS_TARGET=""
|
||||
PKG_SECTION="system"
|
||||
PKG_SHORTDESC="i.MX6 status LED control"
|
||||
PKG_LONGDESC="Front status LED control for i.MX6 systems"
|
||||
PKG_AUTORECONF="no"
|
||||
|
||||
make_target() {
|
||||
: # nothing
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p $INSTALL/usr/lib/libreelec
|
||||
cp $PKG_DIR/scripts/* $INSTALL/usr/lib/libreelec
|
||||
}
|
||||
|
||||
post_install() {
|
||||
enable_service imx6-status-led.service
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2015 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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.
|
||||
#
|
||||
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
. /usr/lib/libreelec/imx6-system-type
|
||||
|
||||
case "$1" in
|
||||
"on")
|
||||
TRIGGER=default-on
|
||||
;;
|
||||
"heartbeat")
|
||||
TRIGGER=heartbeat
|
||||
;;
|
||||
*)
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$SYSTEM_TYPE" in
|
||||
"matrix")
|
||||
LED="/sys/class/leds/red/trigger"
|
||||
;;
|
||||
"cuboxi")
|
||||
LED="/sys/class/leds/imx6:red:front/trigger"
|
||||
;;
|
||||
*)
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "$TRIGGER" > "$LED"
|
||||
|
@ -1,44 +0,0 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2015 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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.
|
||||
#
|
||||
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
# $ cat /sys/devices/soc0/machine
|
||||
# Freescale i.MX6 Quad SABRE Smart Device Board
|
||||
# $ cat /sys/devices/soc0/machine
|
||||
# TBS Matrix
|
||||
# $ cat /sys/devices/soc0/family
|
||||
# Freescale i.MX
|
||||
# $ cat /sys/devices/soc0/soc_id
|
||||
# i.MX6Q
|
||||
# $ cat /sys/devices/soc0/revision
|
||||
# 1.2
|
||||
|
||||
SYSTEM_TYPE=$(cat /sys/bus/soc/devices/soc0/machine)
|
||||
case "$SYSTEM_TYPE" in
|
||||
"TBS Matrix")
|
||||
export SYSTEM_TYPE="matrix"
|
||||
;;
|
||||
"SolidRun Cubox-i Dual/Quad"|"SolidRun Cubox-i Solo/DualLite")
|
||||
export SYSTEM_TYPE="cuboxi"
|
||||
;;
|
||||
"Udoo i.MX6 Dual-lite Board"|"Udoo i.MX6 Quad Board")
|
||||
export SYSTEM_TYPE="udoo"
|
||||
;;
|
||||
*)
|
||||
export SYSTEM_TYPE="undef"
|
||||
;;
|
||||
esac
|
@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=i.MX6 status led
|
||||
After=kodi.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=-/bin/sh -c "/usr/lib/libreelec/imx6-status-led on"
|
||||
ExecStop=-/bin/sh -c "/usr/lib/libreelec/imx6-status-led heartbeat"
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=kodi.target
|
@ -1,38 +0,0 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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.
|
||||
#
|
||||
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="imx6-mfgtool2-tbs-matrix"
|
||||
PKG_VERSION="1.0"
|
||||
PKG_SHA256="c342b547d7493f60ba562c671e694a9e84b80b279880a891ca7962b72bdd8a69"
|
||||
PKG_ARCH="arm"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://sourceforge.net/projects/matrixtv/"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.zip"
|
||||
PKG_DEPENDS_TARGET=""
|
||||
PKG_SECTION="tools"
|
||||
PKG_SHORTDESC="MfgTool2 flash tool"
|
||||
PKG_LONGDESC="Freescales manufacturing tool for flashing image to TBS Matrix system"
|
||||
PKG_AUTORECONF="no"
|
||||
|
||||
make_target() {
|
||||
: # nothing
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
: # install from image script
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
#!/bin/sh
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC 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.
|
||||
#
|
||||
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
echo "getting sources..."
|
||||
if [ ! -d linux-imx_3.14.x.git ]; then
|
||||
git clone git@github.com:SolidRun/linux-imx6-3.14.git -b linux-linaro-lsk-v3.14-mx6 linux-imx_3.14.x.git
|
||||
fi
|
||||
|
||||
cd linux-imx_3.14.x.git
|
||||
git pull
|
||||
GIT_REV=`git log -n1 --format=%h`
|
||||
cd ..
|
||||
|
||||
echo "copying sources..."
|
||||
rm -rf linux-cuboxi-3.14-$GIT_REV
|
||||
cp -R linux-imx_3.14.x.git linux-cuboxi-3.14-$GIT_REV
|
||||
|
||||
echo "cleaning sources..."
|
||||
rm -rf linux-cuboxi-3.14-$GIT_REV/.git
|
||||
|
||||
echo "packing sources..."
|
||||
tar cvJf linux-cuboxi-3.14-$GIT_REV.tar.xz linux-cuboxi-3.14-$GIT_REV
|
||||
|
||||
echo "remove temporary sourcedir..."
|
||||
rm -rf linux-cuboxi-3.14-$GIT_REV
|
Loading…
x
Reference in New Issue
Block a user