Skip to contentSkip to conversation

Enable non-SGX build for AM3/AM4

PATCH Superseded Eric Ruei 1 participant 6 messages Nov 25, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Eric Ruei

author
#0 lore raw

cover Enable non-SGX build for AM3/AM4

From: Eric Ruei <a0850410@uda0850410>

Enhance meta-arago (and meta-ti) recipes to enable SGX/software rendering graphics support based on whether or not SGX is included at Machine Feature list.

Eric Ruei (5):
arago.conf: Configure Weston based on the availability of SGX branding-processor-sdk:Update ti33x feature based on the availability
of SGX
tisdk-rootfs-image: Include packagegroup-arago-tisdk-graphics
unconditionally
qt5/qtbase: Define GLES_EXTRA_DEPS based on the availability of SGX
ti-tisdk-makefile: Define PVR_NULLDRM based on the availability of SGX

 meta-arago-distro/conf/distro/arago.conf                              | 4 ++--
 meta-arago-distro/conf/distro/include/branding-processor-sdk.inc      | 4 ++--
 meta-arago-distro/recipes-core/images/tisdk-rootfs-image.bb           | 2 +-
 meta-arago-distro/recipes-qt/qt5/qtbase_%.bbappend                    | 4 ++--
 .../recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb          | 4 ++--
 5 files changed, 9 insertions(+), 9 deletions(-)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/5 arago.conf: Configure Weston based on the availability of SGX

From: Eric Ruei <a0850410@uda0850410>

Enable non-SGX build for AM3/AM4:
For ti43x: replace fbdev with egl only if SGX is included at MACHINE_FEATURES

---
 meta-arago-distro/conf/distro/arago.conf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-arago-distro/conf/distro/arago.conf +2 -2
index 14af8c4..1ee4e58 100644
@@ -42,8 +42,8 @@ QT_PROVIDER ?= "qt5"
 PACKAGECONFIG_pn-weston = "fbdev kms launch libinput"
 PACKAGECONFIG_append_pn-weston_omap-a15 = " egl"
 PACKAGECONFIG_remove_pn-weston_omap-a15 = "fbdev"
-PACKAGECONFIG_append_pn-weston_ti43x    = " egl"
-PACKAGECONFIG_remove_pn-weston_ti43x    = "fbdev"
+PACKAGECONFIG_append_pn-weston_ti43x    = "${@base_contains('MACHINE_FEATURES', 'sgx', ' egl', '', d)}"
+PACKAGECONFIG_remove_pn-weston_ti43x    = "${@base_contains('MACHINE_FEATURES', 'sgx', 'fbdev', '', d)}"
 
 # Configure Qt5 flags (GLES is still required for qtdeclarative and qtwebkit)
 PACKAGECONFIG_GL_pn-qtbase = "gles2 linuxfb"
Signature · 1 line
1.9.1
author
#2 lore raw

PATCH 2/5 branding-processor-sdk:Update ti33x feature based on the availability of SGX

In reply to Eric Ruei

From: Eric Ruei <a0850410@uda0850410>

Enable non-SGX build for AM3/AM4:
For ti33x, remove wayland from DISTRO_FEATURES only if SGX is included at MACHINE_FEATURES.

---
 meta-arago-distro/conf/distro/include/branding-processor-sdk.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-arago-distro/conf/distro/include/branding-processor-sdk.inc +2 -2
index 0c5e41c..0de7204 100644
@@ -1,7 +1,7 @@
 ARAGO_TISDK_IMAGE = "processor-sdk-linux-image"
 
-# Remove wayland from ti33x DISTRO_FEATURES.
-DISTRO_FEATURES_remove_ti33x = "wayland"
+# Remove wayland from ti33x DISTRO_FEATURES if SGX is present.
+DISTRO_FEATURES_remove_ti33x = "${@base_contains('MACHINE_FEATURES', 'sgx', 'wayland', '', d)}"
 
 # Set CMEM reserved memory region
 CMEM_BASE_omap-a15 ?= "a0000000"
Signature · 1 line
1.9.1
author
#3 lore raw

PATCH 3/5 tisdk-rootfs-image: Include packagegroup-arago-tisdk-graphics unconditionally

In reply to Eric Ruei

From: Eric Ruei <a0850410@uda0850410>

Enable non-SGX build for AM3/AM4
The Weston module within packagegroup-arago-tisdk-graphics is required for non-SGX software rendering build.

---
 meta-arago-distro/recipes-core/images/tisdk-rootfs-image.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-distro/recipes-core/images/tisdk-rootfs-image.bb +1 -1
index 1bc6a36..98e1009 100644
@@ -4,7 +4,7 @@ require arago-base-tisdk-image.bb
 
 IMAGE_INSTALL += "\
     packagegroup-arago-test \
-    ${@base_contains('MACHINE_FEATURES','sgx','packagegroup-arago-tisdk-graphics','',d)} \
+    packagegroup-arago-tisdk-graphics \
     packagegroup-arago-tisdk-qte \
     packagegroup-arago-tisdk-addons \
     packagegroup-arago-tisdk-connectivity \
Signature · 1 line
1.9.1
author
#4 lore raw

PATCH 4/5 qt5/qtbase: Define GLES_EXTRA_DEPS based on the availability of SGX

In reply to Eric Ruei

From: Eric Ruei <a0850410@uda0850410>

Enable non-SGX build for AM3/AM4
For ti43x, add wayland dependency only if SGX is included at MACHINE_FEATURES.
Note: wayland is not included at ti33x because only nullDRM mode is supported.

---
 meta-arago-distro/recipes-qt/qt5/qtbase_%.bbappend | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-arago-distro/recipes-qt/qt5/qtbase_%.bbappend +2 -2
index 19891e1..cd8876a 100644
@@ -2,12 +2,12 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
 GLES_EXTRA_DEPS = ""
 GLES_EXTRA_DEPS_omap-a15 = "libdrm wayland"
-GLES_EXTRA_DEPS_ti43x = "libdrm wayland"
+GLES_EXTRA_DEPS_ti43x = "libdrm ${@base_contains('MACHINE_FEATURES', 'sgx', 'wayland', '', d)}"
 GLES_EXTRA_DEPS_ti33x = "libdrm"
 
 PACKAGECONFIG[gles2] = "-opengl es2 -eglfs,,virtual/libgles2 virtual/egl ${GLES_EXTRA_DEPS}"
 
-PR_append = "-arago11"
+PR_append = "-arago12"
 
 QT_CONFIG_FLAGS += "-qpa ${@base_contains('DISTRO_FEATURES', 'wayland', 'wayland', 'eglfs', d)}"
 
Signature · 1 line
1.9.1
author
#5 lore raw

PATCH 5/5 ti-tisdk-makefile: Define PVR_NULLDRM based on the availability of SGX

In reply to Eric Ruei

From: Eric Ruei <a0850410@uda0850410>

Enable non-SGX build for AM3/AM4:
For ti43x: Set PVR_NULLDRM to 1 only if SGX is not included at MACHINE_FEATURES

---
 .../recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb +2 -2
index 024e3cd..0e77202 100644
@@ -44,7 +44,7 @@ SRC_URI = "\
     file://Makefile_pru-icss \
 "
 
-PR = "r61"
+PR = "r62"
 
 MAKEFILES_MATRIX_GUI = "matrix-gui-browser \
                         refresh-screen \
@@ -134,7 +134,7 @@ PLATFORM_OMAPDRM_omap-a15 = "omap5430"
 
 PVR_NULLDRM = ""
 PVR_NULLDRM_ti33x = "1"
-PVR_NULLDRM_ti43x = "1"
+PVR_NULLDRM_ti43x = "${@base_contains('MACHINE_FEATURES', 'sgx', '0', '1', d)}"
 PVR_NULLDRM_omap-a15 = "0"
 
 PLATFORM_DEBUGSS = ""
Signature · 1 line
1.9.1