Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/5] package/ti-sgx-km: new package
@ 2016-07-13 20:13 Lothar Felten
  2016-07-13 20:13 ` [Buildroot] [PATCH v2 2/5] package/ti-sgx-um: " Lothar Felten
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Lothar Felten @ 2016-07-13 20:13 UTC (permalink / raw)
  To: buildroot

This package adds the kernel module for the SGX graphics accelerator of the
following Texas Instuments SoCs: AM335x, AM437x, AM4430, AM5430

Signed-off-by: Lothar Felten <lothar.felten@gmail.com>
---
 package/ti-sgx-km/Config.in      | 42 +++++++++++++++++++++++++++++++++++++++
 package/ti-sgx-km/ti-sgx-km.hash |  2 ++
 package/ti-sgx-km/ti-sgx-km.mk   | 43 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 87 insertions(+)
 create mode 100644 package/ti-sgx-km/Config.in
 create mode 100644 package/ti-sgx-km/ti-sgx-km.hash
 create mode 100644 package/ti-sgx-km/ti-sgx-km.mk

diff --git a/package/ti-sgx-km/Config.in b/package/ti-sgx-km/Config.in
new file mode 100644
index 0000000..7e5d7f2
--- /dev/null
+++ b/package/ti-sgx-km/Config.in
@@ -0,0 +1,42 @@
+config BR2_PACKAGE_TI_SGX_KM
+	bool "ti-sgx-km"
+	depends on BR2_LINUX_KERNEL && BR2_arm
+	select BR2_LINUX_NEEDS_MODULES
+	help
+	  Kernel modules for TI CPUs with SGX GPU.
+	  This package supports AM335x, AM437x, AM4430 and AM5430.
+	  It builds the kernel module and the user space binaries.
+	  For older CPUs or kernels use the ti-gfx package.
+	  
+	  http://git.ti.com/graphics/omap5-sgx-ddk-linux
+
+if BR2_PACKAGE_TI_SGX_KM
+
+choice
+	prompt "Target"
+	default BR2_PACKAGE_TI_SGX_AM335X
+	help
+	  Select the SOC for which you would like to install drivers.
+
+config BR2_PACKAGE_TI_SGX_AM335X
+	bool "AM335x"
+	help
+	  AM335x CPU
+
+config BR2_PACKAGE_TI_SGX_AM437X
+	bool "AM437x"
+	help
+	  AM437x CPU
+
+config BR2_PACKAGE_TI_SGX_AM4430
+	bool "AM4430"
+	help
+	  AM4430 CPU
+
+config BR2_PACKAGE_TI_SGX_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
new file mode 100644
index 0000000..7f7e0ac
--- /dev/null
+++ b/package/ti-sgx-km/ti-sgx-km.hash
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256 47728ff8fc48827116cc042efa777a22a83dd4bd17c494e2a53b8c204ca59624 ti-sgx-km-2b7523d07a13ab704a24a7664749551f4a13ed32.tar.gz
diff --git a/package/ti-sgx-km/ti-sgx-km.mk b/package/ti-sgx-km/ti-sgx-km.mk
new file mode 100644
index 0000000..8854899
--- /dev/null
+++ b/package/ti-sgx-km/ti-sgx-km.mk
@@ -0,0 +1,43 @@
+################################################################################
+#
+# ti-sgx-km
+#
+################################################################################
+
+# This correpsonds to SDK 02.00.00.00
+TI_SGX_KM_VERSION = 2b7523d07a13ab704a24a7664749551f4a13ed32
+TI_SGX_KM_SITE = http://git.ti.com/graphics/omap5-sgx-ddk-linux.git
+TI_SGX_KM_LICENSE = GPLv2 License
+TI_SGX_KM_LICENSE_FILES = GPL-COPYING
+
+TI_SGX_KM_DEPENDENCIES = linux
+
+TI_SGX_KM_MAKE_OPTS = \
+	$(LINUX_MAKE_FLAGS) \
+	ARCH=arm \
+	KERNELDIR=$(LINUX_DIR) \
+	DISCIMAGE=$(TARGET_DIR) \
+	PVR_NULLDRM=1
+
+ifeq ($(BR2_PACKAGE_TI_SGX_AM335X),y)
+TI_SGX_KM_PLATFORM_NAME = omap335x
+else ifeq ($(BR2_PACKAGE_TI_SGX_AM437X),y)
+TI_SGX_KM_PLATFORM_NAME = omap437x
+else ifeq ($(BR2_PACKAGE_TI_SGX_AM4430),y)
+TI_SGX_KM_PLATFORM_NAME = omap4430
+else ifeq ($(BR2_PACKAGE_TI_SGX_5430),y)
+TI_SGX_KM_PLATFORM_NAME = omap5430
+endif
+
+TI_SGX_KM_SUBDIRECTORY = eurasia_km/eurasiacon/build/linux2/$(TI_SGX_KM_PLATFORM_NAME)_linux
+
+define TI_SGX_KM_BUILD_CMDS
+	$(MAKE) $(TI_SGX_KM_MAKE_OPTS) -C $(@D)/$(TI_SGX_KM_SUBDIRECTORY)
+endef
+
+define TI_SGX_KM_INSTALL_TARGET_CMDS
+	$(MAKE) $(TI_SGX_KM_MAKE_OPTS) kbuild_install \
+		-C $(@D)/$(TI_SGX_KM_SUBDIRECTORY)
+endef
+
+$(eval $(generic-package))
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-07-14  8:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-13 20:13 [Buildroot] [PATCH v2 1/5] package/ti-sgx-km: new package Lothar Felten
2016-07-13 20:13 ` [Buildroot] [PATCH v2 2/5] package/ti-sgx-um: " Lothar Felten
2016-07-13 20:13 ` [Buildroot] [PATCH v2 3/5] package/ti-sgx-demos: " Lothar Felten
2016-07-13 20:13 ` [Buildroot] [PATCH v2 4/5] package/ti-gfx: config help text: list SoCs Lothar Felten
2016-07-13 20:13 ` [Buildroot] [PATCH v2 5/5] package/Config: ti-sgx-km, ti-sgx-um, ti-sgx-demos Lothar Felten
2016-07-14  8:36   ` Thomas Petazzoni
2016-07-14  8:39 ` [Buildroot] [PATCH v2 1/5] package/ti-sgx-km: new package Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox