Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
config BR2_PACKAGE_SUNXI_MALI_UTGARD
bool "sunxi-mali-utgard"
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 for Mali
Utgard GPUs.
https://github.com/bootlin/mali-blobs
if BR2_PACKAGE_SUNXI_MALI_UTGARD
config BR2_PACKAGE_PROVIDES_LIBEGL
default "sunxi-mali-utgard"
config BR2_PACKAGE_PROVIDES_LIBGLES
default "sunxi-mali-utgard"
config BR2_PACKAGE_PROVIDES_LIBGBM
default "sunxi-mali-utgard" if BR2_PACKAGE_SUNXI_MALI_UTGARD_WAYLAND
choice
prompt "Version"
default BR2_PACKAGE_SUNXI_MALI_UTGARD_R6P2 if BR2_PACKAGE_SUNXI_MALI_MAINLINE_R6P2 # legacy
default BR2_PACKAGE_SUNXI_MALI_UTGARD_R8P1 if BR2_PACKAGE_SUNXI_MALI_MAINLINE_R8P1 # legacy
default BR2_PACKAGE_SUNXI_MALI_UTGARD_R6P2
help
Select the version of the userspace module.
config BR2_PACKAGE_SUNXI_MALI_UTGARD_R6P2
bool "r6p2"
config BR2_PACKAGE_SUNXI_MALI_UTGARD_R8P1
bool "r8p1"
endchoice
config BR2_PACKAGE_SUNXI_MALI_UTGARD_REVISION
string
default "r6p2" if BR2_PACKAGE_SUNXI_MALI_UTGARD_R6P2
default "r8p1" if BR2_PACKAGE_SUNXI_MALI_UTGARD_R8P1
choice
prompt "Platform"
default BR2_PACKAGE_SUNXI_MALI_UTGARD_FBDEV
help
Select the target EGL platform.
config BR2_PACKAGE_SUNXI_MALI_UTGARD_FBDEV
bool "fbdev"
config BR2_PACKAGE_SUNXI_MALI_UTGARD_WAYLAND
bool "wayland"
depends on BR2_PACKAGE_SUNXI_MALI_UTGARD_R6P2
select BR2_PACKAGE_HAS_LIBGBM
select BR2_PACKAGE_WAYLAND
comment "wayland support requires version r6p2"
depends on !BR2_PACKAGE_SUNXI_MALI_UTGARD_R6P2
endchoice
config BR2_PACKAGE_SUNXI_MALI_UTGARD_PLATFORM
string
default "fbdev" if BR2_PACKAGE_SUNXI_MALI_UTGARD_FBDEV
default "wayland" if BR2_PACKAGE_SUNXI_MALI_UTGARD_WAYLAND
endif
comment "sunxi-mali-utgard needs an EABIhf glibc toolchain"
depends on BR2_arm
depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_ARM_EABIHF

View 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}

View 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}

View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 b5e7e8f9f2886ed0b273f72ea16ae4868711726fe33e3d80ef24e86269c90fd2 sunxi-mali-utgard-418f55585e76f375792dbebb3e97532f0c1c556d.tar.gz
sha256 8a06bcae44a41a886f339b4338422415a786787f113e9ed6456ae117104a0b6a EULA_for_Mali_400MP_AW.pdf

View File

@@ -0,0 +1,62 @@
################################################################################
#
# sunxi-mali-utgard
#
################################################################################
SUNXI_MALI_UTGARD_VERSION = 418f55585e76f375792dbebb3e97532f0c1c556d
SUNXI_MALI_UTGARD_SITE = $(call github,bootlin,mali-blobs,$(SUNXI_MALI_UTGARD_VERSION))
SUNXI_MALI_UTGARD_INSTALL_STAGING = YES
SUNXI_MALI_UTGARD_PROVIDES = libegl libgles
SUNXI_MALI_UTGARD_LICENSE = Allwinner End User Licence Agreement
SUNXI_MALI_UTGARD_EULA_ORIGINAL = EULA\ for\ Mali\ 400MP\ _AW.pdf
SUNXI_MALI_UTGARD_EULA_NO_SPACES = EULA_for_Mali_400MP_AW.pdf
SUNXI_MALI_UTGARD_LICENSE_FILES = $(SUNXI_MALI_UTGARD_EULA_NO_SPACES)
SUNXI_MALI_UTGARD_REV = $(call qstrip,$(BR2_PACKAGE_SUNXI_MALI_UTGARD_REVISION))
SUNXI_MALI_UTGARD_PLATFORM = $(call qstrip,$(BR2_PACKAGE_SUNXI_MALI_UTGARD_PLATFORM))
ifeq ($(BR2_arm),y)
SUNXI_MALI_UTGARD_ARCH=arm
else ifeq ($(BR2_aarch64),y)
SUNXI_MALI_UTGARD_ARCH=arm64
endif
define SUNXI_MALI_UTGARD_INSTALL_STAGING_CMDS
mkdir -p $(STAGING_DIR)/usr/lib $(STAGING_DIR)/usr/include
cp -rf $(@D)/$(SUNXI_MALI_UTGARD_REV)/$(SUNXI_MALI_UTGARD_ARCH)/$(SUNXI_MALI_UTGARD_PLATFORM)/*.so* \
$(STAGING_DIR)/usr/lib/
cp -rf $(@D)/include/$(SUNXI_MALI_UTGARD_PLATFORM)/* $(STAGING_DIR)/usr/include/
$(INSTALL) -D -m 0644 package/sunxi-mali-utgard/egl.pc \
$(STAGING_DIR)/usr/lib/pkgconfig/egl.pc
$(INSTALL) -D -m 0644 package/sunxi-mali-utgard/glesv2.pc \
$(STAGING_DIR)/usr/lib/pkgconfig/glesv2.pc
endef
ifeq ($(BR2_PACKAGE_SUNXI_MALI_UTGARD_WAYLAND),y)
define SUNXI_MALI_UTGARD_INSTALL_FIXUP_STAGING_PC_FILES
sed -e '/^Cflags:/s/$$/ -DWL_EGL_PLATFORM/' \
-e '/^Requires:/s/$$/ wayland-client wayland-server/' \
-i $(STAGING_DIR)/usr/lib/pkgconfig/egl.pc
sed -e '/^Requires:/s/$$/ wayland-client wayland-server/' \
-i $(STAGING_DIR)/usr/lib/pkgconfig/glesv2.pc
endef
SUNXI_MALI_UTGARD_POST_INSTALL_TARGET_HOOKS += SUNXI_MALI_UTGARD_INSTALL_FIXUP_STAGING_PC_FILES
SUNXI_MALI_UTGARD_DEPENDENCIES += wayland
endif
define SUNXI_MALI_UTGARD_INSTALL_TARGET_CMDS
mkdir -p $(TARGET_DIR)/usr/lib
cp -rf $(@D)/$(SUNXI_MALI_UTGARD_REV)/$(SUNXI_MALI_UTGARD_ARCH)/$(SUNXI_MALI_UTGARD_PLATFORM)/*.so* \
$(TARGET_DIR)/usr/lib/
endef
define SUNXI_MALI_UTGARD_FIXUP_LICENSE_FILE
mv $(@D)/$(SUNXI_MALI_UTGARD_EULA_ORIGINAL) $(@D)/$(SUNXI_MALI_UTGARD_EULA_NO_SPACES)
endef
SUNXI_MALI_UTGARD_POST_PATCH_HOOKS += SUNXI_MALI_UTGARD_FIXUP_LICENSE_FILE
$(eval $(generic-package))