* [Buildroot] [RFC PATCH 1/4] new package: ti-sgx/ti-sgx-libgbm libgbm for SGX graphics accelerator
@ 2019-10-15 21:30 Lothar Felten
2019-10-15 21:30 ` [Buildroot] [RFC PATCH 2/4] ti-sgx-*: bump to latest TI version Lothar Felten
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Lothar Felten @ 2019-10-15 21:30 UTC (permalink / raw)
To: buildroot
This package adds a custom ti version of libgbm required by the binary
libraries of the ti-sgx/ti-sgx-um package.
Signed-off-by: Lothar Felten <lothar.felten@gmail.com>
---
package/Config.in | 1 +
.../0001_fix_sysmacro_include.patch | 12 ++++++
package/ti-sgx-libgbm/Config.in | 5 +++
package/ti-sgx-libgbm/ti-sgx-libgbm.hash | 2 +
package/ti-sgx-libgbm/ti-sgx-libgbm.mk | 41 +++++++++++++++++++
package/ti-sgx/ti-sgx-libgbm/Config.in | 5 +++
.../ti-sgx/ti-sgx-libgbm/ti-sgx-libgbm.hash | 2 +
package/ti-sgx/ti-sgx-libgbm/ti-sgx-libgbm.mk | 41 +++++++++++++++++++
8 files changed, 109 insertions(+)
create mode 100644 package/ti-sgx-libgbm/0001_fix_sysmacro_include.patch
create mode 100644 package/ti-sgx-libgbm/Config.in
create mode 100644 package/ti-sgx-libgbm/ti-sgx-libgbm.hash
create mode 100644 package/ti-sgx-libgbm/ti-sgx-libgbm.mk
create mode 100644 package/ti-sgx/ti-sgx-libgbm/Config.in
create mode 100644 package/ti-sgx/ti-sgx-libgbm/ti-sgx-libgbm.hash
create mode 100644 package/ti-sgx/ti-sgx-libgbm/ti-sgx-libgbm.mk
diff --git a/package/Config.in b/package/Config.in
index 3a4b1c33b..69cb35576 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -538,6 +538,7 @@ endmenu
source "package/ti-sgx-demos/Config.in"
source "package/ti-sgx-km/Config.in"
source "package/ti-sgx-um/Config.in"
+ source "package/ti-sgx-libgbm/Config.in"
source "package/ti-uim/Config.in"
source "package/ti-utils/Config.in"
source "package/triggerhappy/Config.in"
diff --git a/package/ti-sgx-libgbm/0001_fix_sysmacro_include.patch b/package/ti-sgx-libgbm/0001_fix_sysmacro_include.patch
new file mode 100644
index 000000000..8b671cdcc
--- /dev/null
+++ b/package/ti-sgx-libgbm/0001_fix_sysmacro_include.patch
@@ -0,0 +1,12 @@
+diff --git a/gbm.c b/gbm.c
+index c046b1a..a8660c8 100644
+--- a/gbm.c
++++ b/gbm.c
+@@ -36,6 +36,7 @@
+
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <sys/sysmacros.h>
+ #include <unistd.h>
+ #include <errno.h>
+
diff --git a/package/ti-sgx-libgbm/Config.in b/package/ti-sgx-libgbm/Config.in
new file mode 100644
index 000000000..24427c811
--- /dev/null
+++ b/package/ti-sgx-libgbm/Config.in
@@ -0,0 +1,5 @@
+config BR2_PACKAGE_TI_SGX_LIBGBM
+ bool "libgbm, ti variant"
+ help
+ TI SGX libgbm variant
+
diff --git a/package/ti-sgx-libgbm/ti-sgx-libgbm.hash b/package/ti-sgx-libgbm/ti-sgx-libgbm.hash
new file mode 100644
index 000000000..d316a84e4
--- /dev/null
+++ b/package/ti-sgx-libgbm/ti-sgx-libgbm.hash
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256 7be13eed8c357da8060f3db52de48ad8e76bf4784e8b2979f19ddc3bb725ca45 ti-sgx-libgbm-f316cf4b98ca3f4a1ca92a48ddd8aa559894a45c.tar.gz
diff --git a/package/ti-sgx-libgbm/ti-sgx-libgbm.mk b/package/ti-sgx-libgbm/ti-sgx-libgbm.mk
new file mode 100644
index 000000000..eafae12ec
--- /dev/null
+++ b/package/ti-sgx-libgbm/ti-sgx-libgbm.mk
@@ -0,0 +1,41 @@
+################################################################################
+#
+# ti-sgx-libgbm
+#
+################################################################################
+
+# This correpsonds to SDK 05.03.00.15
+TI_SGX_LIBGBM_VERSION = f316cf4b98ca3f4a1ca92a48ddd8aa559894a45c
+TI_SGX_LIBGBM_SITE = git://git.ti.com/glsdk/libgbm.git
+TI_SGX_LIBGBM_LICENSE = MIT License
+TI_SGX_LIBGBM_LICENSE_FILES = gbm.h
+TI_SGX_LIBGBM_INSTALL_STAGING = YES
+
+TI_SGX_LIBGBM_DEPENDENCIES = libdrm udev
+
+# This package uses autoconf, but not automake, so we need to call
+# their special autogen.sh script, and have custom target and staging
+# installation commands.
+
+define TI_SGX_LIBGBM_RUN_AUTOGEN
+ cd $(@D) && PATH=$(BR_PATH) ./autogen.sh
+endef
+TI_SGX_LIBGBM_PRE_CONFIGURE_HOOKS += TI_SGX_LIBGBM_RUN_AUTOGEN
+
+define TI_SGX_LIBGBM_INSTALL_TARGET_CMDS
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
+ PREFIX=/usr \
+ STRIP=/bin/true \
+ DESTDIR=$(TARGET_DIR) \
+ install
+endef
+
+define TI_SGX_LIBGBM_INSTALL_STAGING_CMDS
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
+ PREFIX=/usr \
+ STRIP=/bin/true \
+ DESTDIR=$(STAGING_DIR) \
+ install
+endef
+
+$(eval $(autotools-package))
diff --git a/package/ti-sgx/ti-sgx-libgbm/Config.in b/package/ti-sgx/ti-sgx-libgbm/Config.in
new file mode 100644
index 000000000..24427c811
--- /dev/null
+++ b/package/ti-sgx/ti-sgx-libgbm/Config.in
@@ -0,0 +1,5 @@
+config BR2_PACKAGE_TI_SGX_LIBGBM
+ bool "libgbm, ti variant"
+ help
+ TI SGX libgbm variant
+
diff --git a/package/ti-sgx/ti-sgx-libgbm/ti-sgx-libgbm.hash b/package/ti-sgx/ti-sgx-libgbm/ti-sgx-libgbm.hash
new file mode 100644
index 000000000..de4f442a9
--- /dev/null
+++ b/package/ti-sgx/ti-sgx-libgbm/ti-sgx-libgbm.hash
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256 ecf9848a5cdc46249b3bb6d1119118ab62e926e4826a1dcac6d927c247a26b57 ti-sgx-libgbm-cb86a2f2cecd41023bf1bf12fbcf11be11220f31.tar.gz
diff --git a/package/ti-sgx/ti-sgx-libgbm/ti-sgx-libgbm.mk b/package/ti-sgx/ti-sgx-libgbm/ti-sgx-libgbm.mk
new file mode 100644
index 000000000..235bc38d2
--- /dev/null
+++ b/package/ti-sgx/ti-sgx-libgbm/ti-sgx-libgbm.mk
@@ -0,0 +1,41 @@
+################################################################################
+#
+# ti-sgx-libgbm
+#
+################################################################################
+
+# This correpsonds to SDK 06.00.00.07
+TI_SGX_LIBGBM_VERSION = f316cf4b98ca3f4a1ca92a48ddd8aa559894a45c
+TI_SGX_LIBGBM_SITE = git://git.ti.com/glsdk/libgbm.git
+TI_SGX_LIBGBM_LICENSE = MIT License
+TI_SGX_LIBGBM_LICENSE_FILES = gbm.h
+TI_SGX_LIBGBM_INSTALL_STAGING = YES
+
+TI_SGX_LIBGBM_DEPENDENCIES = linux
+
+# This package uses autoconf, but not automake, so we need to call
+# their special autogen.sh script, and have custom target and staging
+# installation commands.
+
+define TI_SGX_LIBGBM_RUN_AUTOGEN
+ cd $(@D) && PATH=$(BR_PATH) ./autogen.sh
+endef
+TI_SGX_LIBGBM_PRE_CONFIGURE_HOOKS += TI_SGX_LIBGBM_RUN_AUTOGEN
+
+define TI_SGX_LIBGBM_INSTALL_TARGET_CMDS
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
+ PREFIX=/usr \
+ STRIP=/bin/true \
+ DESTDIR=$(TARGET_DIR) \
+ install
+endef
+
+define TI_SGX_LIBGBM_INSTALL_STAGING_CMDS
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
+ PREFIX=/usr \
+ STRIP=/bin/true \
+ DESTDIR=$(STAGING_DIR) \
+ install
+endef
+
+$(eval $(autotools-package))
--
2.17.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [RFC PATCH 2/4] ti-sgx-*: bump to latest TI version
2019-10-15 21:30 [Buildroot] [RFC PATCH 1/4] new package: ti-sgx/ti-sgx-libgbm libgbm for SGX graphics accelerator Lothar Felten
@ 2019-10-15 21:30 ` Lothar Felten
2019-10-15 22:55 ` Arnout Vandecappelle
2019-10-16 7:28 ` Thomas Petazzoni
2019-10-15 21:31 ` [Buildroot] [RFC PATCH 3/4] configs/beaglebone_qt5: bump kernel and uboot version, add weston Lothar Felten
2019-10-15 21:31 ` [Buildroot] [RFC PATCH 4/4] package/qt5/qt5base: support ti-sgx-libgbm Lothar Felten
2 siblings, 2 replies; 9+ messages in thread
From: Lothar Felten @ 2019-10-15 21:30 UTC (permalink / raw)
To: buildroot
bump the ti-sgx-km,-um and -demos to the TI version that matches
the TI SDK 06.00.00.07.
Removed all targets except AM335x.
powervr.ini is no longer used in the TI SDK, remove it too.
Signed-off-by: Lothar Felten <lothar.felten@gmail.com>
---
package/ti-sgx-demos/ti-sgx-demos.hash | 2 +-
package/ti-sgx-demos/ti-sgx-demos.mk | 6 ++---
package/ti-sgx-km/Config.in | 37 +-------------------------
package/ti-sgx-km/ti-sgx-km.hash | 2 +-
package/ti-sgx-km/ti-sgx-km.mk | 22 +++++----------
package/ti-sgx-um/Config.in | 2 ++
package/ti-sgx-um/powervr.ini | 6 -----
package/ti-sgx-um/ti-sgx-um.hash | 2 +-
package/ti-sgx-um/ti-sgx-um.mk | 17 +++++-------
9 files changed, 23 insertions(+), 73 deletions(-)
delete mode 100644 package/ti-sgx-um/powervr.ini
diff --git a/package/ti-sgx-demos/ti-sgx-demos.hash b/package/ti-sgx-demos/ti-sgx-demos.hash
index 43acf9102..c99e2499c 100644
--- a/package/ti-sgx-demos/ti-sgx-demos.hash
+++ b/package/ti-sgx-demos/ti-sgx-demos.hash
@@ -1,2 +1,2 @@
# Locally computed:
-sha256 9d1d4da2c2b35303e239f99eb4003b8b206078a682aa083d5fb831ee4197f3bf ti-sgx-demos-f24650bc8243b25c23d6a0a502ed79fc472ac424.tar.gz
+sha256 c7238342e3eab4698cf81a65e001ffe91d27fc10129250a6fef380abb5440ad0 ti-sgx-demos-e76ae77b27ef570e7b8494c3d7067fd3d72b5976.tar.gz
diff --git a/package/ti-sgx-demos/ti-sgx-demos.mk b/package/ti-sgx-demos/ti-sgx-demos.mk
index 80af79b98..27418e66a 100644
--- a/package/ti-sgx-demos/ti-sgx-demos.mk
+++ b/package/ti-sgx-demos/ti-sgx-demos.mk
@@ -4,14 +4,14 @@
#
################################################################################
-# This correpsonds to SDK 02.00.00.00
-TI_SGX_DEMOS_VERSION = f24650bc8243b25c23d6a0a502ed79fc472ac424
+# This correpsonds to SDK 06.00.00.07
+TI_SGX_DEMOS_VERSION = e76ae77b27ef570e7b8494c3d7067fd3d72b5976
TI_SGX_DEMOS_SITE = git://git.ti.com/graphics/img-pvr-sdk.git
TI_SGX_DEMOS_LICENSE = Imagination Technologies License Agreement
TI_SGX_DEMOS_LICENSE_FILES = LegalNotice.txt
define TI_SGX_DEMOS_INSTALL_TARGET_CMDS
- cp -dpfr $(@D)/targetfs/Examples/Advanced/OGLES* \
+ cp -dpfr $(@D)/targetfs/arm/Examples/Advanced/Wayland/OGLES* \
$(TARGET_DIR)/usr/bin/
endef
diff --git a/package/ti-sgx-km/Config.in b/package/ti-sgx-km/Config.in
index 348efdeb8..1e49a538f 100644
--- a/package/ti-sgx-km/Config.in
+++ b/package/ti-sgx-km/Config.in
@@ -8,7 +8,7 @@ config BR2_PACKAGE_TI_SGX_KM
select BR2_LINUX_NEEDS_MODULES
help
Kernel modules for TI CPUs with SGX GPU.
- This package supports AM335x, AM437x, AM4430 and AM5430.
+ This package supports AM335x only.
It builds the kernel module and the user space binaries.
For older CPUs or kernels use the ti-gfx package.
@@ -16,38 +16,3 @@ config BR2_PACKAGE_TI_SGX_KM
http://git.ti.com/graphics/omap5-sgx-ddk-linux
-if BR2_PACKAGE_TI_SGX_KM
-
-choice
- prompt "Target"
- default BR2_PACKAGE_TI_SGX_KM_AM335X if BR2_PACKAGE_TI_SGX_AM335X # legacy
- default BR2_PACKAGE_TI_SGX_KM_AM437X if BR2_PACKAGE_TI_SGX_AM437X # legacy
- default BR2_PACKAGE_TI_SGX_KM_AM4430 if BR2_PACKAGE_TI_SGX_AM4430 # legacy
- default BR2_PACKAGE_TI_SGX_KM_AM5430 if BR2_PACKAGE_TI_SGX_AM5430 # legacy
- default BR2_PACKAGE_TI_SGX_KM_AM335X
- help
- Select the SOC for which you would like to install drivers.
-
-config BR2_PACKAGE_TI_SGX_KM_AM335X
- bool "AM335x"
- help
- AM335x CPU
-
-config BR2_PACKAGE_TI_SGX_KM_AM437X
- bool "AM437x"
- help
- AM437x CPU
-
-config BR2_PACKAGE_TI_SGX_KM_AM4430
- bool "AM4430"
- help
- AM4430 CPU
-
-config BR2_PACKAGE_TI_SGX_KM_AM5430
- bool "AM5430"
- help
- AM5430 CPU
-
-endchoice
-
-endif
diff --git a/package/ti-sgx-km/ti-sgx-km.hash b/package/ti-sgx-km/ti-sgx-km.hash
index 7f7e0acd4..2bb5e55f6 100644
--- a/package/ti-sgx-km/ti-sgx-km.hash
+++ b/package/ti-sgx-km/ti-sgx-km.hash
@@ -1,2 +1,2 @@
# Locally computed:
-sha256 47728ff8fc48827116cc042efa777a22a83dd4bd17c494e2a53b8c204ca59624 ti-sgx-km-2b7523d07a13ab704a24a7664749551f4a13ed32.tar.gz
+sha256 f1505f38f9e82f958673bb1755e65090bdbc513a68d41640561d9d491bc4b0e3 ti-sgx-km-4519ed3b83d1d72207ddc2874c7eb5e5a7f20d8d.tar.gz
diff --git a/package/ti-sgx-km/ti-sgx-km.mk b/package/ti-sgx-km/ti-sgx-km.mk
index 0e1bc3390..6e1f3fa40 100644
--- a/package/ti-sgx-km/ti-sgx-km.mk
+++ b/package/ti-sgx-km/ti-sgx-km.mk
@@ -4,8 +4,8 @@
#
################################################################################
-# This correpsonds to SDK 02.00.00.00
-TI_SGX_KM_VERSION = 2b7523d07a13ab704a24a7664749551f4a13ed32
+# This correpsonds to SDK 06.00.00.07
+TI_SGX_KM_VERSION = 4519ed3b83d1d72207ddc2874c7eb5e5a7f20d8d
TI_SGX_KM_SITE = git://git.ti.com/graphics/omap5-sgx-ddk-linux.git
TI_SGX_KM_LICENSE = GPL-2.0
TI_SGX_KM_LICENSE_FILES = GPL-COPYING
@@ -15,19 +15,11 @@ TI_SGX_KM_DEPENDENCIES = linux
TI_SGX_KM_MAKE_OPTS = \
$(LINUX_MAKE_FLAGS) \
KERNELDIR=$(LINUX_DIR) \
- PVR_NULLDRM=1
-
-ifeq ($(BR2_PACKAGE_TI_SGX_KM_AM335X),y)
-TI_SGX_KM_PLATFORM_NAME = omap335x
-else ifeq ($(BR2_PACKAGE_TI_SGX_KM_AM437X),y)
-TI_SGX_KM_PLATFORM_NAME = omap437x
-else ifeq ($(BR2_PACKAGE_TI_SGX_KM_AM4430),y)
-TI_SGX_KM_PLATFORM_NAME = omap4430
-else ifeq ($(BR2_PACKAGE_TI_SGX_KM_5430),y)
-TI_SGX_KM_PLATFORM_NAME = omap5430
-endif
-
-TI_SGX_KM_SUBDIR = eurasia_km/eurasiacon/build/linux2/$(TI_SGX_KM_PLATFORM_NAME)_linux
+ TARGET_PRODUCT=$(TI_SGX_KM_PLATFORM_NAME)
+
+TI_SGX_KM_PLATFORM_NAME = ti335x
+
+TI_SGX_KM_SUBDIR = eurasia_km/eurasiacon/build/linux2/omap_linux
define TI_SGX_KM_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(TI_SGX_KM_MAKE_OPTS) \
diff --git a/package/ti-sgx-um/Config.in b/package/ti-sgx-um/Config.in
index 8e1e4fb27..b9cbd143b 100644
--- a/package/ti-sgx-um/Config.in
+++ b/package/ti-sgx-um/Config.in
@@ -15,6 +15,8 @@ config BR2_PACKAGE_TI_SGX_UM
select BR2_PACKAGE_HAS_LIBEGL
select BR2_PACKAGE_HAS_LIBGLES
select BR2_PACKAGE_HAS_POWERVR
+ select BR2_PACKAGE_TI_SGX_LIBGBM
+ select BR2_PACKAGE_LIBFFI
help
Graphics libraries for TI CPUs with SGX5xx GPU.
This package supports AM335x, AM437x, AM4430 and AM5430.
diff --git a/package/ti-sgx-um/powervr.ini b/package/ti-sgx-um/powervr.ini
deleted file mode 100644
index fc92d45d5..000000000
--- a/package/ti-sgx-um/powervr.ini
+++ /dev/null
@@ -1,6 +0,0 @@
-[default]
-#defaul library without double buffering:
-WindowSystem=libpvrDRMWSEGL_FRONT.so
-#alternative library, slower but with double buffering
-#WindowSystem=libpvrDRMWSEGL.so
-DisableHWTQTextureUpload=1
diff --git a/package/ti-sgx-um/ti-sgx-um.hash b/package/ti-sgx-um/ti-sgx-um.hash
index a6a056646..10c23374f 100644
--- a/package/ti-sgx-um/ti-sgx-um.hash
+++ b/package/ti-sgx-um/ti-sgx-um.hash
@@ -1,2 +1,2 @@
# Locally computed:
-sha256 c17f23d255cff8fe72fc3f5cae3d7550e387af07d036954b4f08e573379406d0 ti-sgx-um-e15f1543bab4de9e8927a2c4934addf3fd16ffcb.tar.gz
+sha256 592ecafab76b67a86174fd87dbf0302a4b3a620eaa0e5a2872fbf6e9a33eec69 ti-sgx-um-87d7e5c1e4db1bab048939c9719059d549c1e8dd.tar.gz
diff --git a/package/ti-sgx-um/ti-sgx-um.mk b/package/ti-sgx-um/ti-sgx-um.mk
index d5c50a016..f4397e30d 100644
--- a/package/ti-sgx-um/ti-sgx-um.mk
+++ b/package/ti-sgx-um/ti-sgx-um.mk
@@ -4,28 +4,25 @@
#
################################################################################
-# This correpsonds to SDK 02.00.00.00
-TI_SGX_UM_VERSION = e15f1543bab4de9e8927a2c4934addf3fd16ffcb
+# This correpsonds to SDK 06.00.00.07
+TI_SGX_UM_VERSION = 87d7e5c1e4db1bab048939c9719059d549c1e8dd
TI_SGX_UM_SITE = git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git
TI_SGX_UM_LICENSE = TI TSPA License
TI_SGX_UM_LICENSE_FILES = OMAP5-Linux-Graphics-DDK-UM-Manifest.doc
TI_SGX_UM_INSTALL_STAGING = YES
+TI_SGX_UM_TARGET=ti335x
# ti-sgx-um is a egl/gles provider only if libdrm is installed
TI_SGX_UM_DEPENDENCIES = libdrm
define TI_SGX_UM_INSTALL_STAGING_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DISCIMAGE=$(STAGING_DIR) install
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DISCIMAGE=$(STAGING_DIR) \
+ TARGET_PRODUCT=$(TI_SGX_UM_TARGET) install
endef
define TI_SGX_UM_INSTALL_TARGET_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DISCIMAGE=$(TARGET_DIR) install
-endef
-
-# libs use the following file for configuration
-define TI_SGX_UM_INSTALL_CONF
- $(INSTALL) -D -m 0644 package/ti-sgx-um/powervr.ini \
- $(TARGET_DIR)/etc/powervr.ini
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DISCIMAGE=$(TARGET_DIR) \
+ TARGET_PRODUCT=$(TI_SGX_UM_TARGET) install
endef
TI_SGX_UM_POST_INSTALL_TARGET_HOOKS += TI_SGX_UM_INSTALL_CONF
--
2.17.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [RFC PATCH 3/4] configs/beaglebone_qt5: bump kernel and uboot version, add weston
2019-10-15 21:30 [Buildroot] [RFC PATCH 1/4] new package: ti-sgx/ti-sgx-libgbm libgbm for SGX graphics accelerator Lothar Felten
2019-10-15 21:30 ` [Buildroot] [RFC PATCH 2/4] ti-sgx-*: bump to latest TI version Lothar Felten
@ 2019-10-15 21:31 ` Lothar Felten
2019-10-15 21:31 ` [Buildroot] [RFC PATCH 4/4] package/qt5/qt5base: support ti-sgx-libgbm Lothar Felten
2 siblings, 0 replies; 9+ messages in thread
From: Lothar Felten @ 2019-10-15 21:31 UTC (permalink / raw)
To: buildroot
update to TI SDK 06.00.00.07 Linux kernel version 4.19
update u-boot to 2019.07
packages: select weston and qt5wayland
rename kernel fragment file
Signed-off-by: Lothar Felten <lothar.felten@gmail.com>
---
...nux-4.1-sgx.fragment => linux-sgx.fragment} | 1 +
configs/beaglebone_qt5_defconfig | 18 ++++++++++--------
2 files changed, 11 insertions(+), 8 deletions(-)
rename board/beaglebone/{linux-4.1-sgx.fragment => linux-sgx.fragment} (92%)
diff --git a/board/beaglebone/linux-4.1-sgx.fragment b/board/beaglebone/linux-sgx.fragment
similarity index 92%
rename from board/beaglebone/linux-4.1-sgx.fragment
rename to board/beaglebone/linux-sgx.fragment
index c0d2e7b28..58d46f588 100644
--- a/board/beaglebone/linux-4.1-sgx.fragment
+++ b/board/beaglebone/linux-sgx.fragment
@@ -10,3 +10,4 @@ CONFIG_DRM_OMAP_WB_M2M=y
CONFIG_DRM_TILCDC=y
CONFIG_DRM_I2C_NXP_TDA998X=y
CONFIG_DRM=y
+CONFIG_DRM_LEGACY=y
diff --git a/configs/beaglebone_qt5_defconfig b/configs/beaglebone_qt5_defconfig
index fb61bf54d..7029e66a8 100644
--- a/configs/beaglebone_qt5_defconfig
+++ b/configs/beaglebone_qt5_defconfig
@@ -1,36 +1,38 @@
BR2_arm=y
BR2_cortex_a8=y
BR2_GLOBAL_PATCH_DIR="board/beaglebone/patches"
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
-BR2_GCC_VERSION_5_X=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
-BR2_TARGET_GENERIC_GETTY_PORT="ttyO0"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/beaglebone/post-image.sh"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://git.ti.com/processor-sdk/processor-sdk-linux.git"
-BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="52c4aa7cdb93d61f8008f380135beaf7b8fa6593"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="4dae378bbe721277b08699d1d88ffae12acc9b09"
BR2_LINUX_KERNEL_DEFCONFIG="omap2plus"
-BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/beaglebone/linux-4.1-sgx.fragment"
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/beaglebone/linux-sgx.fragment"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="am335x-evm am335x-bone am335x-boneblack am335x-evmsk"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="am335x-evm am335x-bone am335x-boneblack am335x-bonegreen am335x-evmsk am335x-boneblue"
BR2_PACKAGE_FBV=y
BR2_PACKAGE_QT5=y
BR2_PACKAGE_QT5BASE_EXAMPLES=y
BR2_PACKAGE_QT5BASE_EGLFS=y
+BR2_PACKAGE_QT5BASE_DEFAULT_QPA="wayland"
BR2_PACKAGE_QT5QUICKCONTROLS=y
+BR2_PACKAGE_QT5WAYLAND=y
+BR2_PACKAGE_QT5WAYLAND_COMPOSITOR=y
+BR2_PACKAGE_WESTON=y
BR2_PACKAGE_TI_SGX_DEMOS=y
BR2_PACKAGE_TI_SGX_KM=y
BR2_PACKAGE_TI_SGX_UM=y
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_4=y
-BR2_TARGET_ROOTFS_EXT2_SIZE="124M"
+BR2_TARGET_ROOTFS_EXT2_SIZE="250M"
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.09.01"
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.07"
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="am335x_evm"
BR2_TARGET_UBOOT_NEEDS_DTC=y
# BR2_TARGET_UBOOT_FORMAT_BIN is not set
--
2.17.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [RFC PATCH 4/4] package/qt5/qt5base: support ti-sgx-libgbm
2019-10-15 21:30 [Buildroot] [RFC PATCH 1/4] new package: ti-sgx/ti-sgx-libgbm libgbm for SGX graphics accelerator Lothar Felten
2019-10-15 21:30 ` [Buildroot] [RFC PATCH 2/4] ti-sgx-*: bump to latest TI version Lothar Felten
2019-10-15 21:31 ` [Buildroot] [RFC PATCH 3/4] configs/beaglebone_qt5: bump kernel and uboot version, add weston Lothar Felten
@ 2019-10-15 21:31 ` Lothar Felten
2019-10-15 23:00 ` Arnout Vandecappelle
2 siblings, 1 reply; 9+ messages in thread
From: Lothar Felten @ 2019-10-15 21:31 UTC (permalink / raw)
To: buildroot
qt5 configure options: add ti-sgx-libgbm as GBM backend
Signed-off-by: Lothar Felten <lothar.felten@gmail.com>
---
package/qt5/qt5base/qt5base.mk | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
index e4aa76908..0caa57000 100644
--- a/package/qt5/qt5base/qt5base.mk
+++ b/package/qt5/qt5base/qt5base.mk
@@ -74,10 +74,13 @@ else
QT5BASE_CONFIGURE_OPTS += -no-kms
endif
-# Uses libgbm from mesa3d
+# Uses libgbm from mesa3d or ti-sgx-libgbm
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
QT5BASE_CONFIGURE_OPTS += -gbm
QT5BASE_DEPENDENCIES += mesa3d
+else ifeq ($(BR2_PACKAGE_TI_SGX_LIBGBM),y)
+QT5BASE_CONFIGURE_OPTS += -gbm
+QT5BASE_DEPENDENCIES += ti-sgx-libgbm
else
QT5BASE_CONFIGURE_OPTS += -no-gbm
endif
--
2.17.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [RFC PATCH 2/4] ti-sgx-*: bump to latest TI version
2019-10-15 21:30 ` [Buildroot] [RFC PATCH 2/4] ti-sgx-*: bump to latest TI version Lothar Felten
@ 2019-10-15 22:55 ` Arnout Vandecappelle
2019-10-16 7:28 ` Thomas Petazzoni
1 sibling, 0 replies; 9+ messages in thread
From: Arnout Vandecappelle @ 2019-10-15 22:55 UTC (permalink / raw)
To: buildroot
On 15/10/2019 23:30, Lothar Felten wrote:
> bump the ti-sgx-km,-um and -demos to the TI version that matches
> the TI SDK 06.00.00.07.
>
> Removed all targets except AM335x.
> powervr.ini is no longer used in the TI SDK, remove it too.
So TI provides no SDK any more for any other CPU with PowerVR? This is a bit
annoying... If there are any users out there with such a system, they won't be
able to build with Buildroot any more.
Well, they can always take the old ti-sgx-km package in a BR2_EXTERNAL, I guess...
Peter, Thomas, opinions?
Regards,
Arnout
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [RFC PATCH 4/4] package/qt5/qt5base: support ti-sgx-libgbm
2019-10-15 21:31 ` [Buildroot] [RFC PATCH 4/4] package/qt5/qt5base: support ti-sgx-libgbm Lothar Felten
@ 2019-10-15 23:00 ` Arnout Vandecappelle
2019-10-16 7:31 ` Thomas Petazzoni
0 siblings, 1 reply; 9+ messages in thread
From: Arnout Vandecappelle @ 2019-10-15 23:00 UTC (permalink / raw)
To: buildroot
On 15/10/2019 23:31, Lothar Felten wrote:
> qt5 configure options: add ti-sgx-libgbm as GBM backend
>
> Signed-off-by: Lothar Felten <lothar.felten@gmail.com>
> ---
> package/qt5/qt5base/qt5base.mk | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
> index e4aa76908..0caa57000 100644
> --- a/package/qt5/qt5base/qt5base.mk
> +++ b/package/qt5/qt5base/qt5base.mk
> @@ -74,10 +74,13 @@ else
> QT5BASE_CONFIGURE_OPTS += -no-kms
> endif
>
> -# Uses libgbm from mesa3d
> +# Uses libgbm from mesa3d or ti-sgx-libgbm
> ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
> QT5BASE_CONFIGURE_OPTS += -gbm
> QT5BASE_DEPENDENCIES += mesa3d
> +else ifeq ($(BR2_PACKAGE_TI_SGX_LIBGBM),y)
I would swap the two so TI gets priority if both are selected.
Note that there was also talk about making gbm a virtual package (with
currently mesa3d and ti-sgx-libgbm as providers). IIRC, though, the TI gbm
package was not 100% compatible. But apparently it's good enough to build qt5 then?
And what about waffle and mesa3d-demos?
Note that we don't require you to figure all of this out before we can apply
these patches. But maybe you know a little bit more about it.
Regards,
Arnout
> +QT5BASE_CONFIGURE_OPTS += -gbm
> +QT5BASE_DEPENDENCIES += ti-sgx-libgbm
> else
> QT5BASE_CONFIGURE_OPTS += -no-gbm
> endif
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [RFC PATCH 2/4] ti-sgx-*: bump to latest TI version
2019-10-15 21:30 ` [Buildroot] [RFC PATCH 2/4] ti-sgx-*: bump to latest TI version Lothar Felten
2019-10-15 22:55 ` Arnout Vandecappelle
@ 2019-10-16 7:28 ` Thomas Petazzoni
2019-10-16 17:57 ` Lothar Felten
1 sibling, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2019-10-16 7:28 UTC (permalink / raw)
To: buildroot
Hello,
On Tue, 15 Oct 2019 23:30:59 +0200
Lothar Felten <lothar.felten@gmail.com> wrote:
> bump the ti-sgx-km,-um and -demos to the TI version that matches
> the TI SDK 06.00.00.07.
>
> Removed all targets except AM335x.
Are you sure about this ? I've briefly browsed through the commits
2b7523d07a13ab704a24a7664749551f4a13ed32..4519ed3b83d1d72207ddc2874c7eb5e5a7f20d8d
in ti-sgx-km, and I don't see anything about removing support for
platforms.
However indeed there used to be a per-platform directory in
eurasia_km/eurasiacon/build/linux2/:
omap437x_linux
omap5430_linux
omap335x_linux
omap4430_linux
But it has now been replaced by a single folder omap_linux, in commit
5f8570e190b37e534c9195728812190ec999c9d5, which says:
commit 5f8570e190b37e534c9195728812190ec999c9d5
Author: Eric Ruei <e-ruei1@ti.com>
Date: Fri Feb 22 12:42:58 2019 -0500
km: Makefile cleanup
This patch simplifies the omap makefile to improve readability.
The makefile is used to build DRM-based SGX user modules for K4.x and
AM3/4/5/6 SoC only and therefore there is no need to keep the unused
environment variables and conditions in history.
- Remove unsupported targets
- Remove unused environment variables
- Remove unused and/or dead conditions
Signed-off-by: Eric Ruei <e-ruei1@ti.com>
There are still tests for various TARGET_PRODUCT values:
eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile:ifneq ($(filter omap5uevm jacinto6evm,$(TARGET_PRODUCT)),)
eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile:ifneq ($(filter ti654x,$(TARGET_PRODUCT)),)
eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile:ifneq ($(filter ti335x ti437x,$(TARGET_PRODUCT)),)
eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile: ifeq ($(TARGET_PRODUCT), ti437x)
Could you clarify why you think there is only support for AM335x left ?
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [RFC PATCH 4/4] package/qt5/qt5base: support ti-sgx-libgbm
2019-10-15 23:00 ` Arnout Vandecappelle
@ 2019-10-16 7:31 ` Thomas Petazzoni
0 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2019-10-16 7:31 UTC (permalink / raw)
To: buildroot
Hello,
On Wed, 16 Oct 2019 01:00:37 +0200
Arnout Vandecappelle <arnout@mind.be> wrote:
> Note that there was also talk about making gbm a virtual package (with
> currently mesa3d and ti-sgx-libgbm as providers). IIRC, though, the TI gbm
> package was not 100% compatible. But apparently it's good enough to build qt5 then?
I tried to make libgbm a virtual package, but unfortunately my
conclusion was that the libgbm API is not really standardized. When I
tried to build kmscube against the TI gbm, it would fail
miserably, and it was also failing with another non-mesa GBM
implementation.
I pushed what I had back then at
https://github.com/tpetazzoni/buildroot/commits/gbm.
> Note that we don't require you to figure all of this out before we can apply
> these patches. But maybe you know a little bit more about it.
Yes, let's not make this depend on having a virtual package for libgbm.
We can figure that out later.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [RFC PATCH 2/4] ti-sgx-*: bump to latest TI version
2019-10-16 7:28 ` Thomas Petazzoni
@ 2019-10-16 17:57 ` Lothar Felten
0 siblings, 0 replies; 9+ messages in thread
From: Lothar Felten @ 2019-10-16 17:57 UTC (permalink / raw)
To: buildroot
Hello,
On Wed, 2019-10-16 at 09:28 +0200, Thomas Petazzoni wrote:
> Hello,
>
> On Tue, 15 Oct 2019 23:30:59 +0200
> Lothar Felten <lothar.felten@gmail.com> wrote:
>
> > bump the ti-sgx-km,-um and -demos to the TI version that matches
> > the TI SDK 06.00.00.07.
> >
> > Removed all targets except AM335x.
>
> Are you sure about this ? I've briefly browsed through the commits
> 2b7523d07a13ab704a24a7664749551f4a13ed32..4519ed3b83d1d72207ddc2874c7
> eb5e5a7f20d8d
> in ti-sgx-km, and I don't see anything about removing support for
> platforms.
>
> However indeed there used to be a per-platform directory in
> eurasia_km/eurasiacon/build/linux2/:
>
> omap437x_linux
> omap5430_linux
> omap335x_linux
> omap4430_linux
>
> But it has now been replaced by a single folder omap_linux, in commit
> 5f8570e190b37e534c9195728812190ec999c9d5, which says:
>
> commit 5f8570e190b37e534c9195728812190ec999c9d5
> Author: Eric Ruei <e-ruei1@ti.com>
> Date: Fri Feb 22 12:42:58 2019 -0500
>
> km: Makefile cleanup
>
> This patch simplifies the omap makefile to improve readability.
> The makefile is used to build DRM-based SGX user modules for K4.x
> and
> AM3/4/5/6 SoC only and therefore there is no need to keep the
> unused
> environment variables and conditions in history.
> - Remove unsupported targets
> - Remove unused environment variables
> - Remove unused and/or dead conditions
>
> Signed-off-by: Eric Ruei <e-ruei1@ti.com>
>
> There are still tests for various TARGET_PRODUCT values:
>
> eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile:ifneq
> ($(filter omap5uevm jacinto6evm,$(TARGET_PRODUCT)),)
> eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile:ifneq
> ($(filter ti654x,$(TARGET_PRODUCT)),)
> eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile:ifneq
> ($(filter ti335x ti437x,$(TARGET_PRODUCT)),)
> eurasia_km/eurasiacon/build/linux2/omap_linux/Makefile: ifeq
> ($(TARGET_PRODUCT), ti437x)
>
> Could you clarify why you think there is only support for AM335x left
> ?
Sorry the message was misleading, I meant to say: currently the
buildroot package only supports the target am335x.
The support for the other boards can be added by selecting the correct
TARGET_PRODUCT/TI_SGX_UM_TARGET as you stated.
Those patches are preliminary as the goal to build qt5 with sgx
acceleration still needs some work. I just modified the package so it
builds at least for AM335x. The other targets need at least menu
entries for the variable, maybe more.
Best regards,
Lothar
>
> Best regards,
>
> Thomas
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2019-10-16 17:57 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-15 21:30 [Buildroot] [RFC PATCH 1/4] new package: ti-sgx/ti-sgx-libgbm libgbm for SGX graphics accelerator Lothar Felten
2019-10-15 21:30 ` [Buildroot] [RFC PATCH 2/4] ti-sgx-*: bump to latest TI version Lothar Felten
2019-10-15 22:55 ` Arnout Vandecappelle
2019-10-16 7:28 ` Thomas Petazzoni
2019-10-16 17:57 ` Lothar Felten
2019-10-15 21:31 ` [Buildroot] [RFC PATCH 3/4] configs/beaglebone_qt5: bump kernel and uboot version, add weston Lothar Felten
2019-10-15 21:31 ` [Buildroot] [RFC PATCH 4/4] package/qt5/qt5base: support ti-sgx-libgbm Lothar Felten
2019-10-15 23:00 ` Arnout Vandecappelle
2019-10-16 7:31 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.