diff --git a/packages/multimedia/imx-lib/package.mk b/packages/multimedia/imx-lib/package.mk new file mode 100644 index 0000000000..ed22ae9e93 --- /dev/null +++ b/packages/multimedia/imx-lib/package.mk @@ -0,0 +1,43 @@ +################################################################################ +# 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 . +################################################################################ + +PKG_NAME="imx-lib" +PKG_VERSION="3.5.7-1.0.0" +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="" +PKG_BUILD_DEPENDS_TARGET="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="multimedia" +PKG_SHORTDESC="imx-lib: platform specific unit tests for mxc platform" +PKG_LONGDESC="imx-lib: platform specific unit tests for mxc platform" + +PKG_IS_ADDON="no" +PKG_AUTORECONF="no" + +make_target() { + make DIRS="ipu vpu" CFLAGS="$CFLAGS" PLATFORM=IMX6Q CROSS_COMPILE=$TARGET_PREFIX +} + +makeinstall_target() { + make DIRS="ipu vpu" PLATFORM=IMX6Q DEST_DIR=$SYSROOT_PREFIX install + make DIRS="ipu vpu" PLATFORM=IMX6Q DEST_DIR=$INSTALL install +} diff --git a/packages/multimedia/imx-lib/patches/imx-lib-cflags.patch b/packages/multimedia/imx-lib/patches/imx-lib-cflags.patch new file mode 100644 index 0000000000..f23f6e7d96 --- /dev/null +++ b/packages/multimedia/imx-lib/patches/imx-lib-cflags.patch @@ -0,0 +1,42 @@ +diff -Naur imx-lib-3.5.7-1.0.0/ipu/Makefile imx-lib-3.5.7-1.0.0.patch/ipu/Makefile +--- imx-lib-3.5.7-1.0.0/ipu/Makefile 2013-06-21 15:22:18.000000000 +0200 ++++ imx-lib-3.5.7-1.0.0.patch/ipu/Makefile 2014-01-13 08:07:33.322840816 +0100 +@@ -1,6 +1,8 @@ + CC=$(CROSS_COMPILE)gcc + AR=$(CROSS_COMPILE)ar + ++CFLAGS := -Wall -O2 ++ + ifeq ($(PLATFORM), IMX6Q) + OBJS = mxc_ipu_hl_lib_dummy.o + else +@@ -37,7 +39,7 @@ + ifeq "$(PLATFORM)" "" + $(error "Unspecified PLATFORM variable") + endif +- $(CC) -D$(PLATFORM) $(INCLUDE) -Wall -O2 -fPIC -c $^ -o $@ ++ $(CC) -D$(PLATFORM) $(INCLUDE) $(CFLAGS) -fPIC -c $^ -o $@ + + .PHONY: clean + clean: +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