Merge pull request #1633 from vpeter4/imx6_options

imx6/options: unify linux version strings and simplify it's usage
This commit is contained in:
Christian Hewitt 2017-05-28 14:52:51 +04:00 committed by GitHub
commit 0acf6e7c59
5 changed files with 12 additions and 25 deletions

View File

@ -22,13 +22,7 @@ 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"
if [ "$PROJECT" = "imx6" ]; then
if [ "$LINUX_VERSION" = "sr-3.14" ]; then
PKG_PATCH_DIRS="3.14-sr"
else
PKG_PATCH_DIRS="4.4-xbian"
fi
fi
[ "$PROJECT" = "imx6" ] && PKG_PATCH_DIRS="${LINUX#imx6-}"
PKG_DEPENDS_TARGET="toolchain systemd lockdev p8-platform"
PKG_SECTION="system"
PKG_SHORTDESC="libCEC is an open-source dual licensed library designed for communicating with the Pulse-Eight USB - CEC Adaptor"

View File

@ -62,7 +62,7 @@ makeinstall_target() {
g2d/usr/lib/libg2d*.so*"
# missing in 5.0.11.p7.4-hfp
if [ "$LINUX" = "imx6-3.14-sr" ]; then
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*"

View File

@ -131,15 +131,6 @@ post_patch() {
sed -i -e "s|^CONFIG_ISCSI_IBFT=.*$|# CONFIG_ISCSI_IBFT is not set|" $PKG_BUILD/.config
fi
# enable different libcec version for imx6 project with kernel 4.4
# using customized kernel driver
if [ "$PROJECT" = "imx6" ]; then
if [ "$LIBCEC_TYPE" = "xbian" -a "$LINUX" = "imx6-4.4-xbian" ]; then
sed -i -e "s|# CONFIG_MXC_HDMI_CEC is not set|CONFIG_MXC_HDMI_CEC=y|" $PKG_BUILD/.config
sed -i -e "s|CONFIG_MXC_HDMI_CEC_SR=y||" $PKG_BUILD/.config
fi
fi
# install extra dts files
for f in $PROJECT_DIR/$PROJECT/config/*-overlay.dts; do
[ -f "$f" ] && cp -v $f $PKG_BUILD/arch/$TARGET_KERNEL_ARCH/boot/dts/overlays

View File

@ -5886,8 +5886,7 @@ CONFIG_MXC_VPU=y
#
# MXC HDMI CEC (Consumer Electronics Control) support
#
# CONFIG_MXC_HDMI_CEC is not set
CONFIG_MXC_HDMI_CEC_SR=y
CONFIG_MXC_HDMI_CEC=y
#
# MXC MIPI Support

View File

@ -50,20 +50,23 @@
# Kernel to use.
# default is 4.4 from xbian
if [ "$LINUX_VERSION" = "sr-3.14" ]; then
LINUX="imx6-3.14-sr"
if [ "$LINUX_VERSION" = "3.14-sr" ]; then
LINUX="imx6-$LINUX_VERSION"
# OpenGL-ES implementation to use
OPENGLES="imx-gpu-viv"
elif [ "$LINUX_VERSION" = "xbian-4.8" ]; then
LINUX="imx6-4.8-xbian"
LIBCEC_TYPE="xbian"
elif [ "$LINUX_VERSION" = "4.8-xbian" ]; then
LINUX="imx6-$LINUX_VERSION"
# OpenGL-ES implementation to use
OPENGLES="gpu-viv-bin-mx6q"
elif [ "$LINUX_VERSION" = "4.10-xbian" ]; then
LINUX="imx6-$LINUX_VERSION"
# OpenGL-ES implementation to use
OPENGLES="gpu-viv-bin-mx6q"
else
LINUX="imx6-4.4-xbian"
LIBCEC_TYPE="xbian"
# OpenGL-ES implementation to use
OPENGLES="imx-gpu-viv"