Skip to contentSkip to conversation

sgx: rename and clean up kernel and user space components

PATCH New Denys Dmytriyenko 1 participant 2 messages Apr 25, 2016

lore
Share & tools
lore
#1 lore raw

PATCH 2/2 sgx: drop old outdated omap3-sgx-modules and libgles-omap3 recipes

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Besides being outdated and deprecated in favor of new ti-sgx-ddk recipes (previously known as omapdrm-pvr and omap5-sgx-ddk), 3D graphics drivers are kernel specific and corresponding kernel versions (prior to 4.0) have all been dropped already.

---
 ...SDK-Make-5_01_01_01-work-against-3.14-LTS.patch |  52 ---
 ...x-use-platform-data-to-provide-reset-info.patch | 121 ------
 ...class-am335x-am437x-fix-mutex-deadlock-wa.patch | 153 -------
 ...-make-it-building-against-ti-linux-3.14.y.patch |  45 ---
 .../omap3-sgx-modules-x11_4.09.00.01.bb            |  81 ----
 .../Compile-fixes-for-38-kernel.patch              | 346 ----------------
 .../omap3-sgx-modules/kernel-30.patch              |  38 --
 .../omap3-sgx-modules_4.05.00.03.bb                |  39 --
 .../omap3-sgx-modules_4.09.00.01.bb                |  53 ---
 .../omap3-sgx-modules_5.01.01.01.bb                |  62 ---
 .../omap3-sgx-modules_5.01.01.02.bb                |  58 ---
 .../libgles/libgles-omap3-4.09.00.01/rc.pvr        | 124 ------
 .../libgles/libgles-omap3-4.09.00.01/rc_dri.pvr    | 136 -------
 .../libgles/libgles-omap3-5.01.01.01/rc.pvr        | 134 -------
 .../libgles/libgles-omap3-5.01.01.01/rc_dri.pvr    | 145 -------
 .../libgles/libgles-omap3-5.01.01.02/rc.pvr        | 134 -------
 .../libgles/libgles-omap3-5.01.01.02/rc_dri.pvr    | 145 -------
 recipes-graphics/libgles/libgles-omap3-no-x.inc    | 341 ----------------
 .../99-bufferclass.rules                           |   7 -
 .../libgles/libgles-omap3-x11-4.09.00.01/cputype   |  17 -
 .../libgles/libgles-omap3-x11-4.09.00.01/rc.pvr    | 125 ------
 .../libgles-omap3-x11-4.09.00.01/rc_dri.pvr        | 137 -------
 .../libgles-omap3-x11-4.09.00.01/sample.desktop    |   8 -
 recipes-graphics/libgles/libgles-omap3-x11.inc     | 333 ----------------
 .../libgles/libgles-omap3-x11_4.09.00.01.bb        |  90 -----
 recipes-graphics/libgles/libgles-omap3.inc         | 439 ---------------------
 .../libgles/libgles-omap3/99-bufferclass.rules     |   7 -
 recipes-graphics/libgles/libgles-omap3/cputype     |  25 --
 recipes-graphics/libgles/libgles-omap3/rc.pvr      | 124 ------
 .../libgles/libgles-omap3/sample.desktop           |   8 -
 .../libgles/libgles-omap3_4.05.00.03.bb            |  29 --
 .../libgles/libgles-omap3_4.09.00.01.bb            |  46 ---
 .../libgles/libgles-omap3_5.01.01.01.bb            |  50 ---
 .../libgles/libgles-omap3_5.01.01.02.bb            |  50 ---
 34 files changed, 3702 deletions(-)
 delete mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC-GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch
 delete mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX-linux-use-platform-data-to-provide-reset-info.patch
 delete mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX-displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch
 delete mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0004-SGX-linux-make-it-building-against-ti-linux-3.14.y.patch
 delete mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb
 delete mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules/Compile-fixes-for-38-kernel.patch
 delete mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules/kernel-30.patch
 delete mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules_4.05.00.03.bb
 delete mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules_4.09.00.01.bb
 delete mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.01.bb
 delete mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.02.bb
 delete mode 100755 recipes-graphics/libgles/libgles-omap3-4.09.00.01/rc.pvr
 delete mode 100755 recipes-graphics/libgles/libgles-omap3-4.09.00.01/rc_dri.pvr
 delete mode 100755 recipes-graphics/libgles/libgles-omap3-5.01.01.01/rc.pvr
 delete mode 100755 recipes-graphics/libgles/libgles-omap3-5.01.01.01/rc_dri.pvr
 delete mode 100755 recipes-graphics/libgles/libgles-omap3-5.01.01.02/rc.pvr
 delete mode 100755 recipes-graphics/libgles/libgles-omap3-5.01.01.02/rc_dri.pvr
 delete mode 100644 recipes-graphics/libgles/libgles-omap3-no-x.inc
 delete mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/99-bufferclass.rules
 delete mode 100755 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/cputype
 delete mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr
 delete mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc_dri.pvr
 delete mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/sample.desktop
 delete mode 100644 recipes-graphics/libgles/libgles-omap3-x11.inc
 delete mode 100644 recipes-graphics/libgles/libgles-omap3-x11_4.09.00.01.bb
 delete mode 100644 recipes-graphics/libgles/libgles-omap3.inc
 delete mode 100644 recipes-graphics/libgles/libgles-omap3/99-bufferclass.rules
 delete mode 100755 recipes-graphics/libgles/libgles-omap3/cputype
 delete mode 100755 recipes-graphics/libgles/libgles-omap3/rc.pvr
 delete mode 100644 recipes-graphics/libgles/libgles-omap3/sample.desktop
 delete mode 100644 recipes-graphics/libgles/libgles-omap3_4.05.00.03.bb
 delete mode 100644 recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
 delete mode 100644 recipes-graphics/libgles/libgles-omap3_5.01.01.01.bb
 delete mode 100644 recipes-graphics/libgles/libgles-omap3_5.01.01.02.bb
recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC-GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch deleted +0 -52
deleted file mode 100644
index e541079..0000000
@@ -1,52 +0,0 @@
-From e2db38959a70d1be604a297276a0b0c2ac219bf5 Mon Sep 17 00:00:00 2001
-From: Darren Etheridge <[email protected]>
-Date: Tue, 29 Jul 2014 16:06:17 -0500
-Subject: [PATCH 1/4] PoC: GFX: SDK: Make 5_01_01_01 work against 3.14 LTS
-
-An API rename is the main change.  Also hacked in some function prototypes
-for enabling use of the tilcdc DRM driver instead of the fbdev driver on
-AM335x.  However this all really needs a good cleanup as it is hacky at
-the moment.
-
-Signed-off-by: Darren Etheridge <[email protected]>
----
- GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c | 5 +++++
- GFX_Linux_KM/services4/srvkm/env/linux/mutils.h                 | 6 +++++-
- 2 files changed, 10 insertions(+), 1 deletion(-)
-
-diff --git a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c
-index 5c3fc48..3857b95 100644
---- a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c
-+++ b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c
-@@ -93,6 +93,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- #include <linux/mutex.h>
- 
- #include <video/da8xx-fb.h>
-+/* used by SGX OMAPLFB drvier */
-+typedef void (*vsync_callback_t)(void *arg);
-+int register_vsync_cb(vsync_callback_t handler, void *arg, int idx);
-+int unregister_vsync_cb(vsync_callback_t handler, void *arg, int idx);
-+
- #if defined(PVR_OMAPLFB_DRM_FB)
- #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0))
- #include <plat/display.h>
-diff --git a/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h b/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
-index 31e0dac..90ec41c 100644
---- a/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
-+++ b/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
-@@ -79,7 +79,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- 	#define	IOREMAP(pa, bytes)	ioremap_cache(pa, bytes)
- #else	
- 	#if defined(__arm__) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0))
--		#define	IOREMAP(pa, bytes)	ioremap_cached(pa, bytes)
-+		#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0))
-+			#define	IOREMAP(pa, bytes)	ioremap_cache(pa, bytes)
-+		#else
-+			#define	IOREMAP(pa, bytes)	ioremap_cached(pa, bytes)
-+		#endif
- 	#else
- 		#define IOREMAP(pa, bytes)	ioremap(pa, bytes)
- 	#endif
--- 
-1.9.1
-
recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX-linux-use-platform-data-to-provide-reset-info.patch deleted +0 -121

121 lines not on this page · raw message

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX-displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch deleted +0 -153

153 lines not on this page · raw message

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0004-SGX-linux-make-it-building-against-ti-linux-3.14.y.patch deleted +0 -45

45 lines not on this page · raw message

recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb deleted +0 -81

81 lines not on this page · raw message

recipes-bsp/powervr-drivers/omap3-sgx-modules/Compile-fixes-for-38-kernel.patch deleted +0 -346

346 lines not on this page · raw message

recipes-bsp/powervr-drivers/omap3-sgx-modules/kernel-30.patch deleted +0 -38
deleted file mode 100644
index 269d459..0000000
@@ -1,38 +0,0 @@
-From: Steve Sakoman
-Subject: omap3-sgx-modules: Fix build for Linux 3.0
-
-This patch implements the header change from plat/display.h to video/omapdss.h
-
-Signed-off-by: Steve Sakoman <steve at sakoman.com>
-
---- GFX_Linux_KM/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c-orig	2011-08-01 07:21:45.000000000 -0700
-+++ GFX_Linux_KM/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c	2011-08-01 07:29:32.000000000 -0700
-@@ -47,12 +47,12 @@
- #if defined (SUPPORT_TI_DSS_FW)
- #include <asm/io.h>
- 
--#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26))
--#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,31))
-+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,39)))
-+#include <video/omapdss.h>
-+#elif (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,31))
- #include <plat/display.h>
--#else 
-+#elif (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26))
- #include <mach/display.h>
--#endif 
- #else 
- #include <asm/arch-omap/display.h>
- #endif 
-@@ -64,7 +64,11 @@ extern int omap_dispc_request_irq(unsign
- extern void omap_dispc_free_irq(unsigned long, void (*)(void *), void *);
- extern void omap_dispc_set_plane_base(int plane, IMG_UINT32 phys_addr);
- #else
-+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,39))
-+#include <video/omapdss.h>
-+#else
- #include <plat/display.h>
-+#endif
- #include <linux/console.h>
- #include <linux/fb.h>
- static omap_dispc_isr_t *pOMAPLFBVSyncISRHandle = NULL;
recipes-bsp/powervr-drivers/omap3-sgx-modules_4.05.00.03.bb deleted +0 -39
deleted file mode 100644
index a54a643..0000000
@@ -1,39 +0,0 @@
-DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs"
-LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://COPYING;md5=21228a42e27d1d104b31a83f7c9da935"
-
-TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
-require ../../recipes-ti/includes/ti-eula-unpack.inc
-
-SGXPV = "4_05_00_03"
-BINFILE := "Graphics_SDK_setuplinux_${SGXPV}.bin"
-
-inherit module
-
-MACHINE_KERNEL_PR_append = "c"
-PR = "${MACHINE_KERNEL_PR}"
-
-DEFAULT_PREFERENCE_omap3 = "99"
-
-SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/Graphics_SDK_setuplinux_${SGXPV}.bin \
-          "
-SRC_URI[md5sum] = "0e651eaa92bb91760f0b40a17697a7dc"
-SRC_URI[sha256sum] = "bfe764a8959556195545d6fff76f63a489642f345c105bbbc309a3f243c2dd0e"
-TI_BIN_UNPK_WDEXT="/Graphics_SDK_${SGXPV}"
-S = "${WORKDIR}${TI_BIN_UNPK_WDEXT}/GFX_Linux_KM"
-
-PVRBUILD = "release"
-export KERNELDIR = "${STAGING_KERNEL_DIR}"
-
-INHIBIT_PACKAGE_STRIP = "1"
-
-TI_PLATFORM_omap3 = "omap3630"
-TI_PLATFORM_ti814x = "ti81xx"
-TI_PLATFORM_ti816x = "ti81xx"
-TI_PLATFORM_ti33x = "ti335x"
-
-MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM}"
-
-do_install() {
-    make -C ${STAGING_KERNEL_DIR} SUBDIRS=${B} INSTALL_MOD_PATH=${D} PREFIX=${STAGING_DIR_HOST} modules_install
-}
recipes-bsp/powervr-drivers/omap3-sgx-modules_4.09.00.01.bb deleted +0 -53

53 lines not on this page · raw message

recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.01.bb deleted +0 -62

62 lines not on this page · raw message

recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.02.bb deleted +0 -58

58 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3-4.09.00.01/rc.pvr deleted +0 -124

124 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3-4.09.00.01/rc_dri.pvr deleted +0 -136

136 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3-5.01.01.01/rc.pvr deleted +0 -134

134 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3-5.01.01.01/rc_dri.pvr deleted +0 -145

145 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3-5.01.01.02/rc.pvr deleted +0 -134

134 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3-5.01.01.02/rc_dri.pvr deleted +0 -145

145 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3-no-x.inc deleted +0 -341

341 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/99-bufferclass.rules deleted +0 -7
deleted file mode 100644
index 780423b..0000000
@@ -1,7 +0,0 @@
-# Give everyone access to bufferclass nodes and make a compatibility symlink for the first one
-SUBSYSTEM=="bccat", MODE="0666"
-KERNEL=="bccat0", SYMLINK+="bc_cat", MODE="0666"
-
-# Give everyone access to v4l nodes
-SUBSYSTEM=="video4linux", MODE="0666"
-
recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/cputype deleted +0 -17
deleted file mode 100755
index 4448c30..0000000
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-machine_id() { # return the machine ID
-	awk 'BEGIN { FS=": " } /Hardware/ \
-		{ gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo
-}
-
-if [ "$(machine_id)" = "ti8168evm" ] ; then
-	echo TI816x
-elif [ "$(machine_id)" = "am335xevm" ] ; then
-    echo TI33XX
-else
-	devmem2 0x4800244c | \
-	grep 'Read at address' | \
-	sed -e 's/.*): //' | \
-	sed -e 's/0x00005C00/OMAP3503/' -e 's/0x00001C00/OMAP3515/' -e 's/0x00004C00/OMAP3525/' -e 's/0x00000C00/OMAP3530/' -e 's/0x00005E00/OMAP3503/' -e 's/0x00001E00/OMAP3515/' -e 's/0x00004E00/OMAP3525/' -e 's/0x00000E00/OMAP3530/' -e 's/0x00000CC0/OMAP3530/'
-fi
recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr deleted +0 -125

125 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc_dri.pvr deleted +0 -137

137 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/sample.desktop deleted +0 -8
deleted file mode 100644
index 6bacac9..0000000
@@ -1,8 +0,0 @@
-[Desktop Entry]
-Name=NAME Demo
-Comment=OGLES Demo
-Exec=EXEC
-Icon=star
-Type=Application
-Categories=Graphics;
-
recipes-graphics/libgles/libgles-omap3-x11.inc deleted +0 -333

333 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3-x11_4.09.00.01.bb deleted +0 -90

90 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3.inc deleted +0 -439

76 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3/99-bufferclass.rules deleted +0 -7
deleted file mode 100644
index 780423b..0000000

Lines of this file are not shown. View the raw message.

recipes-graphics/libgles/libgles-omap3/cputype deleted +0 -25
deleted file mode 100755
index 35268a8..0000000

Lines of this file are not shown. View the raw message.

recipes-graphics/libgles/libgles-omap3/rc.pvr deleted +0 -124

124 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3/sample.desktop deleted +0 -8
deleted file mode 100644
index 6bacac9..0000000

Lines of this file are not shown. View the raw message.

recipes-graphics/libgles/libgles-omap3_4.05.00.03.bb deleted +0 -29
deleted file mode 100644
index 33836fb..0000000

Lines of this file are not shown. View the raw message.

recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb deleted +0 -46

46 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3_5.01.01.01.bb deleted +0 -50

50 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3_5.01.01.02.bb deleted +0 -50

50 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.2.0

Part of the diff is not shown here. View the raw message.

#0 lore raw

PATCH 1/2 sgx: rename and clean up kernel and user space components

From: Denys Dmytriyenko <[email protected]>

---
 conf/layer.conf                                    |  4 +--
 ...14.3699939.bb => ti-sgx-ddk-km_1.14.3699939.bb} |  8 ++++++
 ...14.3699939.bb => ti-sgx-ddk-um_1.14.3699939.bb} | 29 +++++++++++++++++++---
 3 files changed, 35 insertions(+), 6 deletions(-)
 rename recipes-bsp/powervr-drivers/{omapdrm-pvr_1.14.3699939.bb => ti-sgx-ddk-km_1.14.3699939.bb} (87%)
 rename recipes-graphics/libgles/{omap5-sgx-ddk-um-linux_1.14.3699939.bb => ti-sgx-ddk-um_1.14.3699939.bb} (54%)
conf/layer.conf +2 -2
index 95ffe8e..4ad5022 100644
@@ -11,8 +11,8 @@ BBFILE_PRIORITY_meta-ti = "6"
 LICENSE_PATH += "${LAYERDIR}/licenses"
 
 SIGGEN_EXCLUDERECIPES_ABISAFE += " \
-    omapdrm-pvr \
-    omap5-sgx-ddk-um-linux \
+    ti-sgx-ddk-km \
+    ti-sgx-ddk-um \
     ti-ipc \
     ti-ipc-rtos \
     cmem-mod \
recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.14.3699939.bb renamed from recipes-bsp/powervr-drivers/omapdrm-pvr_1.14.3699939.bb +8 -0
similarity index 87%
rename from recipes-bsp/powervr-drivers/omapdrm-pvr_1.14.3699939.bb
rename to recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.14.3699939.bb
index e6e4e5d..0e99791 100644
@@ -12,6 +12,14 @@ PR = "${MACHINE_KERNEL_PR}"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
+DEPENDS = "virtual/kernel"
+
+PROVIDES = "omapdrm-pvr"
+
+RPROVIDES_${PN} = "omapdrm-pvr"
+RREPLACES_${PN} = "omapdrm-pvr"
+RCONFLICTS_${PN} = "omapdrm-pvr"
+
 BRANCH = "ti-img-sgx/${PV}/k4.1"
 
 SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-linux.git;protocol=git;branch=${BRANCH}"
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb renamed from recipes-graphics/libgles/omap5-sgx-ddk-um-linux_1.14.3699939.bb +25 -4
similarity index 54%
rename from recipes-graphics/libgles/omap5-sgx-ddk-um-linux_1.14.3699939.bb
rename to recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb
index a79c61f..c29b9fe 100644
@@ -10,6 +10,18 @@ BRANCH = "ti-img-sgx/${PV}"
 SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}"
 SRCREV = "626c4f773b7c704f1d9a55ca80f60a79f809186d"
 
+# There's only hardfp version available
+python __anonymous() {
+    tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
+    if not tunes:
+        return
+    pkgn = bb.data.getVar("PN", d, 1)
+    pkgv = bb.data.getVar("PV", d, 1)
+    if "callconvention-hard" not in tunes:
+        bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
+        raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
+}
+
 TARGET_PRODUCT_omap-a15 = "jacinto6evm"
 TARGET_PRODUCT_ti33x = "ti335x"
 TARGET_PRODUCT_ti43x = "ti437x"
@@ -20,13 +32,21 @@ INITSCRIPT_PARAMS = "defaults 8"
 inherit update-rc.d
 
 PR = "r8"
-PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2"
+PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2 omap5-sgx-ddk-um-linux"
 
 RDEPENDS_${PN} += "libdrm libudev libgbm wayland libffi libdrm-omap"
 
-RREPLACES_${PN} = "libegl libgles1 libgles2"
-RREPLACES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev"
-RREPLACES_${PN}-dbg = "libegl-dbg"
+RPROVIDES_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux"
+RPROVIDES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev omap5-sgx-ddk-um-linux-dev"
+RPROVIDES_${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg omap5-sgx-ddk-um-linux-dbg"
+
+RREPLACES_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux"
+RREPLACES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev omap5-sgx-ddk-um-linux-dev"
+RREPLACES_${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg omap5-sgx-ddk-um-linux-dbg"
+
+RCONFLICTS_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux"
+RCONFLICTS_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev omap5-sgx-ddk-um-linux-dev"
+RCONFLICTS_${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg omap5-sgx-ddk-um-linux-dbg"
 
 S = "${WORKDIR}/git"
 
@@ -48,6 +68,7 @@ RDEPENDS_${PN} += "${PN}-plugins"
 ALLOW_EMPTY_${PN}-plugins = "1"
 
 INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_SYSROOT_STRIP = "1"
 
 INSANE_SKIP_${PN} += "dev-so ldflags useless-rpaths"
 INSANE_SKIP_${PN}-plugins = "dev-so"
Signature · 1 line
2.2.0