summaryrefslogtreecommitdiff
path: root/package/imx-lib
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-08-28 12:16:00 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-08-28 12:16:10 +0200
commit76b0c60b5a04647a13cf0fd975ab84972ae1e51d (patch)
tree34a763f0791d46364b8a7423b200a30d514039f4 /package/imx-lib
parentd417d12720f20c8b051260e571ae2a1a9fde1a2e (diff)
update ffmpeg, add experimental kodi package, add freescale libraries
Diffstat (limited to 'package/imx-lib')
-rw-r--r--package/imx-lib/Makefile32
-rw-r--r--package/imx-lib/patches/patch-hdmi-cec_Makefile26
-rw-r--r--package/imx-lib/patches/patch-ipu_Makefile28
-rw-r--r--package/imx-lib/patches/patch-pxp_Makefile26
-rw-r--r--package/imx-lib/patches/patch-sim_Makefile11
5 files changed, 123 insertions, 0 deletions
diff --git a/package/imx-lib/Makefile b/package/imx-lib/Makefile
new file mode 100644
index 000000000..4177bfaf2
--- /dev/null
+++ b/package/imx-lib/Makefile
@@ -0,0 +1,32 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= imx-lib
+PKG_VERSION:= 3.10.17-1.0.0
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 8e3346d5f33b5aa5f915a0dd8aa99cc9
+PKG_DESCR:= IMX library (Freescale)
+PKG_SECTION:= libs/video
+PKG_URL:= http://www.freescale.com/
+PKG_SITES:= http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/
+
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,IMX_LIB,imx-lib,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+TARGET_CPPFLAGS+= -I${LINUX_DIR}/drivers/mxc/security/rng/include \
+ -I$(LINUX_DIR)/drivers/mxc/security/sahara2/include \
+ -idirafter $(LINUX_DIR)/include/uapi
+MAKE_ENV+= PLATFORM=IMX6Q
+CONFIG_STYLE:= manual
+
+imx-lib-install:
+ $(INSTALL_DIR) $(IDIR_IMX_LIB)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/lib{cec,ipu,pxp}.so* \
+ $(IDIR_IMX_LIB)/usr/lib
+
+include ${ADK_TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/imx-lib/patches/patch-hdmi-cec_Makefile b/package/imx-lib/patches/patch-hdmi-cec_Makefile
new file mode 100644
index 000000000..020998bd6
--- /dev/null
+++ b/package/imx-lib/patches/patch-hdmi-cec_Makefile
@@ -0,0 +1,26 @@
+--- imx-lib-3.10.17-1.0.0.orig/hdmi-cec/Makefile 2014-01-16 15:27:12.000000000 +0100
++++ imx-lib-3.10.17-1.0.0/hdmi-cec/Makefile 2014-08-27 08:38:14.339600710 +0200
+@@ -21,18 +21,18 @@ endif
+ all: $(LIBNAME).so $(LIBNAME).a
+
+ install: install_headers
+- @mkdir -p $(DEST_DIR)/usr/lib
+- cp -P $(LIBNAME).* $(DEST_DIR)/usr/lib
++ @mkdir -p $(DESTDIR)/usr/lib
++ cp -P $(LIBNAME).* $(DESTDIR)/usr/lib
+
+ install_headers:
+- @mkdir -p $(DEST_DIR)/usr/include
+- cp hdmi-cec.h $(DEST_DIR)/usr/include
++ @mkdir -p $(DESTDIR)/usr/include
++ cp hdmi-cec.h $(DESTDIR)/usr/include
+ else
+ all install :
+ 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 $@
diff --git a/package/imx-lib/patches/patch-ipu_Makefile b/package/imx-lib/patches/patch-ipu_Makefile
new file mode 100644
index 000000000..6016a1a26
--- /dev/null
+++ b/package/imx-lib/patches/patch-ipu_Makefile
@@ -0,0 +1,28 @@
+--- imx-lib-3.10.17-1.0.0.orig/ipu/Makefile 2014-01-16 15:27:12.000000000 +0100
++++ imx-lib-3.10.17-1.0.0/ipu/Makefile 2014-08-27 08:37:52.467524299 +0200
+@@ -17,11 +17,11 @@ ifeq ($(PLATFORM), $(findstring $(PLATFO
+ all: $(LIBNAME).so
+
+ install:
+- @mkdir -p $(DEST_DIR)/usr/lib
+- cp -P $(LIBNAME).* $(DEST_DIR)/usr/lib
+- @mkdir -p $(DEST_DIR)/usr/include
+- cp mxc_ipu_hl_lib.h $(DEST_DIR)/usr/include
+- cp ipu.h $(DEST_DIR)/usr/include
++ @mkdir -p $(DESTDIR)/usr/lib
++ cp -P $(LIBNAME).* $(DESTDIR)/usr/lib
++ @mkdir -p $(DESTDIR)/usr/include
++ cp mxc_ipu_hl_lib.h $(DESTDIR)/usr/include
++ cp ipu.h $(DESTDIR)/usr/include
+ else
+ all install:
+ @echo "Not support platform, will not complile"
+@@ -37,7 +37,7 @@ $(LIBNAME).so: $(LIBNAME).so.$(SONAMEVER
+ ifeq "$(PLATFORM)" ""
+ $(error "Unspecified PLATFORM variable")
+ endif
+- $(CC) -D$(PLATFORM) $(INCLUDE) -Wall -O2 -fPIC -c $^ -o $@
++ $(CC) -D$(PLATFORM) $(CFLAGS) -fPIC -c $^ -o $@
+
+ .PHONY: clean
+ clean:
diff --git a/package/imx-lib/patches/patch-pxp_Makefile b/package/imx-lib/patches/patch-pxp_Makefile
new file mode 100644
index 000000000..b38c12807
--- /dev/null
+++ b/package/imx-lib/patches/patch-pxp_Makefile
@@ -0,0 +1,26 @@
+--- imx-lib-3.10.17-1.0.0.orig/pxp/Makefile 2014-01-16 15:27:12.000000000 +0100
++++ imx-lib-3.10.17-1.0.0/pxp/Makefile 2014-08-27 08:37:26.291432836 +0200
+@@ -15,18 +15,18 @@ ifeq ($(PLATFORM), $(findstring $(PLATFO
+ all: $(LIBNAME).so $(LIBNAME).a
+
+ install: install_headers
+- @mkdir -p $(DEST_DIR)/usr/lib
+- cp -P $(LIBNAME).* $(DEST_DIR)/usr/lib
++ @mkdir -p $(DESTDIR)/usr/lib
++ cp -P $(LIBNAME).* $(DESTDIR)/usr/lib
+
+ install_headers:
+- @mkdir -p $(DEST_DIR)/usr/include
+- cp pxp_lib.h $(DEST_DIR)/usr/include
++ @mkdir -p $(DESTDIR)/usr/include
++ cp pxp_lib.h $(DESTDIR)/usr/include
+ else
+ all install :
+ endif
+
+ %.o: %.c
+- $(CC) -D$(PLATFORM) $(INCLUDE) -Wall -O2 -fPIC -c $^ -o $@
++ $(CC) -D$(PLATFORM) $(CFLAGS) -fPIC -c $^ -o $@
+
+ $(LIBNAME).so.$(SONAMEVERSION): $(OBJ)
+ $(CC) -shared -nostartfiles -Wl,-soname,$@ $(LFLAGS) $^ -o $@
diff --git a/package/imx-lib/patches/patch-sim_Makefile b/package/imx-lib/patches/patch-sim_Makefile
new file mode 100644
index 000000000..6a592d49f
--- /dev/null
+++ b/package/imx-lib/patches/patch-sim_Makefile
@@ -0,0 +1,11 @@
+--- imx-lib-3.10.17-1.0.0.orig/sim/Makefile 2014-01-16 15:27:12.000000000 +0100
++++ imx-lib-3.10.17-1.0.0/sim/Makefile 2014-08-27 08:30:04.293885958 +0200
+@@ -27,7 +27,7 @@ $(LIBNAME).so: $(LIBNAME).so.$(SONAMEVER
+ ln -s $< $@
+
+ %.o: %.c
+- $(CC) -D$(PLATFORM) $(INCLUDE) -Wall -O2 -fPIC -c $^ -o $@
++ $(CC) -D$(PLATFORM) $(CFLAGS) -c $^ -o $@
+
+ else
+ all install :