Bump buildroot to 2019.02
This commit is contained in:
42
bsp/buildroot/package/sunxi-mali-mainline/Config.in
Normal file
42
bsp/buildroot/package/sunxi-mali-mainline/Config.in
Normal file
@@ -0,0 +1,42 @@
|
||||
config BR2_PACKAGE_SUNXI_MALI_MAINLINE
|
||||
bool "sunxi-mali-mainline"
|
||||
depends on BR2_aarch64 || (BR2_ARM_EABIHF && BR2_arm)
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC
|
||||
select BR2_PACKAGE_HAS_LIBEGL
|
||||
select BR2_PACKAGE_HAS_LIBGLES
|
||||
help
|
||||
Install userspace Allwinner OpenGL libraries.
|
||||
|
||||
https://github.com/bootlin/mali-blobs
|
||||
|
||||
if BR2_PACKAGE_SUNXI_MALI_MAINLINE
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_LIBEGL
|
||||
default "sunxi-mali-mainline"
|
||||
|
||||
config BR2_PACKAGE_PROVIDES_LIBGLES
|
||||
default "sunxi-mali-mainline"
|
||||
|
||||
choice
|
||||
prompt "Version"
|
||||
default BR2_PACKAGE_SUNXI_MALI_MAINLINE_R6P2
|
||||
help
|
||||
Select the version of the userspace module.
|
||||
|
||||
config BR2_PACKAGE_SUNXI_MALI_MAINLINE_R6P2
|
||||
bool "r6p2"
|
||||
config BR2_PACKAGE_SUNXI_MALI_MAINLINE_R8P1
|
||||
bool "r8p1"
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_PACKAGE_SUNXI_MALI_MAINLINE_REVISION
|
||||
string
|
||||
default "r6p2" if BR2_PACKAGE_SUNXI_MALI_MAINLINE_R6P2
|
||||
default "r8p1" if BR2_PACKAGE_SUNXI_MALI_MAINLINE_R8P1
|
||||
|
||||
endif
|
||||
|
||||
comment "sunxi-mali needs an EABIhf glibc toolchain"
|
||||
depends on BR2_arm
|
||||
depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_ARM_EABIHF
|
||||
12
bsp/buildroot/package/sunxi-mali-mainline/egl.pc
Normal file
12
bsp/buildroot/package/sunxi-mali-mainline/egl.pc
Normal file
@@ -0,0 +1,12 @@
|
||||
prefix=/usr/
|
||||
exec_prefix=${prefix}
|
||||
libdir=${exec_prefix}/lib
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: egl
|
||||
Description: ARM Mali implementation of EGL
|
||||
Version: 1.4
|
||||
Requires:
|
||||
Libs: -L${libdir} -lEGL -lGLESv2
|
||||
Cflags: -I${includedir}
|
||||
|
||||
12
bsp/buildroot/package/sunxi-mali-mainline/glesv2.pc
Normal file
12
bsp/buildroot/package/sunxi-mali-mainline/glesv2.pc
Normal file
@@ -0,0 +1,12 @@
|
||||
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}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 72969ecf470b9e5ce787c2f8f36242926e1e892af0891924ee59a2cd206de39f sunxi-mali-mainline-d691cb93884ca8ac67860502117bbec283dc19aa.tar.gz
|
||||
sha256 8a06bcae44a41a886f339b4338422415a786787f113e9ed6456ae117104a0b6a EULA_for_Mali_400MP_AW.pdf
|
||||
@@ -0,0 +1,49 @@
|
||||
################################################################################
|
||||
#
|
||||
# sunxi-mali-mainline
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SUNXI_MALI_MAINLINE_VERSION = d691cb93884ca8ac67860502117bbec283dc19aa
|
||||
SUNXI_MALI_MAINLINE_SITE = $(call github,bootlin,mali-blobs,$(SUNXI_MALI_MAINLINE_VERSION))
|
||||
SUNXI_MALI_MAINLINE_INSTALL_STAGING = YES
|
||||
SUNXI_MALI_MAINLINE_PROVIDES = libegl libgles
|
||||
SUNXI_MALI_MAINLINE_LICENSE = Allwinner End User Licence Agreement
|
||||
SUNXI_MALI_MAINLINE_EULA_ORIGINAL = EULA\ for\ Mali\ 400MP\ _AW.pdf
|
||||
SUNXI_MALI_MAINLINE_EULA_NO_SPACES = EULA_for_Mali_400MP_AW.pdf
|
||||
SUNXI_MALI_MAINLINE_LICENSE_FILES = $(SUNXI_MALI_MAINLINE_EULA_NO_SPACES)
|
||||
|
||||
SUNXI_MALI_MAINLINE_REV = $(call qstrip,$(BR2_PACKAGE_SUNXI_MALI_MAINLINE_REVISION))
|
||||
|
||||
ifeq ($(BR2_arm),y)
|
||||
SUNXI_MALI_MAINLINE_ARCH=arm
|
||||
else ifeq ($(BR2_aarch64),y)
|
||||
SUNXI_MALI_MAINLINE_ARCH=arm64
|
||||
endif
|
||||
|
||||
define SUNXI_MALI_MAINLINE_INSTALL_STAGING_CMDS
|
||||
mkdir -p $(STAGING_DIR)/usr/lib $(STAGING_DIR)/usr/include
|
||||
|
||||
cp -rf $(@D)/$(SUNXI_MALI_MAINLINE_REV)/$(SUNXI_MALI_MAINLINE_ARCH)/fbdev/*.so* \
|
||||
$(STAGING_DIR)/usr/lib/
|
||||
cp -rf $(@D)/include/fbdev/* $(STAGING_DIR)/usr/include/
|
||||
|
||||
$(INSTALL) -D -m 0644 package/sunxi-mali-mainline/egl.pc \
|
||||
$(STAGING_DIR)/usr/lib/pkgconfig/egl.pc
|
||||
$(INSTALL) -D -m 0644 package/sunxi-mali-mainline/glesv2.pc \
|
||||
$(STAGING_DIR)/usr/lib/pkgconfig/glesv2.pc
|
||||
endef
|
||||
|
||||
define SUNXI_MALI_MAINLINE_INSTALL_TARGET_CMDS
|
||||
mkdir -p $(TARGET_DIR)/usr/lib
|
||||
cp -rf $(@D)/$(SUNXI_MALI_MAINLINE_REV)/$(SUNXI_MALI_MAINLINE_ARCH)/fbdev/*.so* \
|
||||
$(TARGET_DIR)/usr/lib/
|
||||
endef
|
||||
|
||||
define SUNXI_MALI_MAINLINE_FIXUP_LICENSE_FILE
|
||||
mv $(@D)/$(SUNXI_MALI_MAINLINE_EULA_ORIGINAL) $(@D)/$(SUNXI_MALI_MAINLINE_EULA_NO_SPACES)
|
||||
endef
|
||||
|
||||
SUNXI_MALI_MAINLINE_POST_PATCH_HOOKS += SUNXI_MALI_MAINLINE_FIXUP_LICENSE_FILE
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user