mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
new package: add package 'imx-vpu'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
fa4258ab28
commit
ca775d5752
42
packages/multimedia/imx-vpu/package.mk
Normal file
42
packages/multimedia/imx-vpu/package.mk
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
################################################################################
|
||||||
|
# This file is part of OpenELEC - http://www.openelec.tv
|
||||||
|
# Copyright (C) 2009-2014 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="3.10.17-1.0.0_beta"
|
||||||
|
PKG_REV="1"
|
||||||
|
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"
|
||||||
|
PKG_PRIORITY="optional"
|
||||||
|
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_IS_ADDON="no"
|
||||||
|
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
|
||||||
|
}
|
21
packages/multimedia/imx-vpu/patches/imx-vpu-cflags.patch
Normal file
21
packages/multimedia/imx-vpu/patches/imx-vpu-cflags.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
diff -Naur imx-lib-3.5.7-1.0.0/vpu/Makefile imx-lib-3.5.7-1.0.0.patch/vpu/Makefile
|
||||||
|
--- imx-lib-3.5.7-1.0.0/vpu/Makefile 2013-06-21 15:22:18.000000000 +0200
|
||||||
|
+++ imx-lib-3.5.7-1.0.0.patch/vpu/Makefile 2014-01-13 08:07:56.431868081 +0100
|
||||||
|
@@ -1,6 +1,8 @@
|
||||||
|
CC=$(CROSS_COMPILE)gcc
|
||||||
|
AR=$(CROSS_COMPILE)ar
|
||||||
|
|
||||||
|
+CFLAGS := -Wall -O2
|
||||||
|
+
|
||||||
|
# list of platforms which want this test case
|
||||||
|
INCLUDE_LIST:= IMX27ADS IMX51 IMX53 IMX6Q
|
||||||
|
|
||||||
|
@@ -33,7 +35,7 @@
|
||||||
|
endif
|
||||||
|
|
||||||
|
%.o: %.c
|
||||||
|
- $(CC) -D$(PLATFORM) -Wall -O2 -fPIC -c $^ -o $@
|
||||||
|
+ $(CC) -D$(PLATFORM) $(CFLAGS) -fPIC -c $^ -o $@
|
||||||
|
|
||||||
|
$(LIBNAME).so.$(SONAMEVERSION): $(OBJ)
|
||||||
|
$(CC) -shared -nostartfiles -Wl,-soname,$@ $^ -o $@ -lpthread
|
@ -23,7 +23,7 @@ PKG_ARCH="arm"
|
|||||||
PKG_LICENSE="other"
|
PKG_LICENSE="other"
|
||||||
PKG_SITE="http://www.freescale.com"
|
PKG_SITE="http://www.freescale.com"
|
||||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||||
PKG_DEPENDS_TARGET="toolchain imx-lib libfslparser libfslcodec"
|
PKG_DEPENDS_TARGET="toolchain imx-lib imx-vpu libfslparser libfslcodec"
|
||||||
PKG_PRIORITY="optional"
|
PKG_PRIORITY="optional"
|
||||||
PKG_SECTION="multimedia"
|
PKG_SECTION="multimedia"
|
||||||
PKG_SHORTDESC="libfslvpuwrap: Freescale Multimedia VPU wrapper"
|
PKG_SHORTDESC="libfslvpuwrap: Freescale Multimedia VPU wrapper"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user