mali-t76x: add new package

Package provides the binary user-space components for the ARM Mali
Midgard T76X GPU.

Note that this package requires a kernel with the ARM Mali Midgard GPU
Kernel Drivers enabled.

Signed-off-by: Ariel D'Alessandro <ariel@vanguardiasur.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Ariel D'Alessandro 2016-02-15 12:29:50 -03:00 committed by Peter Korsgaard
parent d3c8633ed6
commit 536ba133b0
6 changed files with 80 additions and 0 deletions

View file

@ -399,6 +399,7 @@ endif
source "package/lshw/Config.in"
source "package/lsuio/Config.in"
source "package/lvm2/Config.in"
source "package/mali-t76x/Config.in"
source "package/mdadm/Config.in"
source "package/memtest86/Config.in"
source "package/memtester/Config.in"

View file

@ -0,0 +1,28 @@
config BR2_PACKAGE_MALI_T76X
bool "mali-t76x"
select BR2_PACKAGE_MESA3D_HEADERS
select BR2_PACKAGE_HAS_LIBEGL
select BR2_PACKAGE_HAS_LIBGLES
depends on BR2_TOOLCHAIN_USES_GLIBC
depends on BR2_ARM_EABIHF
depends on BR2_arm
help
Install the binary user-space components for the ARM Mali Midgard
T76X GPU. This package requires a kernel with the ARM Mali Midgard
GPU Kernel Drivers enabled.
Source: http://malideveloper.arm.com/resources/drivers/
if BR2_PACKAGE_MALI_T76X
config BR2_PACKAGE_PROVIDES_LIBEGL
default "mali-t76x"
config BR2_PACKAGE_PROVIDES_LIBGLES
default "mali-t76x"
endif
comment "mali-t76x needs an (e)glibc toolchain with armhf enabled"
depends on BR2_arm
depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_ARM_EABIHF

11
package/mali-t76x/egl.pc Normal file
View file

@ -0,0 +1,11 @@
prefix=/usr/
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: egl
Description: ARM Mali implementation of EGL
Version: 1.5
Requires:
Libs: -L${libdir} -lEGL -lGLESv2
Cflags: -I${includedir} -DMESA_EGL_NO_X11_HEADERS

View file

@ -0,0 +1,11 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: glesv2
Description: ARM Mali implementation of OpenGL ESv2
Version: 2.0
Requires:
Libs: -L${libdir} -lGLESv2 -lGLESv1_CM
Cflags: -I${includedir} -DMESA_EGL_NO_X11_HEADERS

View file

@ -0,0 +1,2 @@
# Locally computed:
sha256 5a0b00438edc8066b374481d3332a43c07ec2bd3bc73265983a968970f754902 mali-t76x_r5p0-06rel0_linux_1+fbdev.tar.gz

View file

@ -0,0 +1,27 @@
################################################################################
#
# mali-t76x
#
################################################################################
MALI_T76X_VERSION = r5p0-06rel0
MALI_T76X_SOURCE = mali-t76x_$(MALI_T76X_VERSION)_linux_1+fbdev.tar.gz
MALI_T76X_SITE = http://malideveloper.arm.com/downloads/drivers/binary/$(MALI_T76X_VERSION)
MALI_T76X_INSTALL_STAGING = YES
MALI_T76X_PROVIDES = libegl libgles
define MALI_T76X_INSTALL_STAGING_CMDS
$(INSTALL) -m 755 $(@D)/*.so $(STAGING_DIR)/usr/lib/
$(INSTALL) -D -m 0644 package/mali-t76x/egl.pc \
$(STAGING_DIR)/usr/lib/pkgconfig/egl.pc
$(INSTALL) -D -m 0644 package/mali-t76x/glesv2.pc \
$(STAGING_DIR)/usr/lib/pkgconfig/glesv2.pc
endef
define MALI_T76X_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 $(@D)/*.so $(TARGET_DIR)/usr/lib/
endef
$(eval $(generic-package))