Skip to content

Commit

Permalink
Update mesa PKGBUILD and add pre-built mesa-22.0.1-3 with rockchip_eb…
Browse files Browse the repository at this point in the history
…c support
  • Loading branch information
0cc4m committed Apr 7, 2022
1 parent 6eb2005 commit 8048be9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ The origin of the PKGBUILD is the [Arch Linux for ARM PKGBUILD Repository](https
You need to enable the GPU in the kernel device tree first. [Here](https://github.com/DorianRudolph/pinenotes#gpu) is information on how to do that. No u-boot modifications were necessary in my case.

## Pre-built packages
* [Mesa 22.0.1-3-aarch64](mesa-archlinux-arm/pkgs/mesa-22.0.1-3-aarch64.tar)
* [Mesa 22.0.0-1.1-aarch64](mesa-archlinux-arm/pkgs/mesa-22.0.0-1.1-aarch64.tar)
* [Mesa 22.0.0-1-aarch64](mesa-archlinux-arm/pkgs/mesa-22.0.0-1-aarch64.tar)
* [Mesa 21.3.7-2-aarch64](mesa-archlinux-arm/pkgs/mesa-21.3.7-2-aarch64.tar)
15 changes: 12 additions & 3 deletions mesa-archlinux-arm/mesa/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@ highmem=1
pkgbase=mesa
pkgname=('vulkan-mesa-layers' 'opencl-mesa' 'vulkan-radeon' 'vulkan-swrast' 'vulkan-broadcom' 'vulkan-panfrost' 'libva-mesa-driver' 'mesa-vdpau' 'mesa')
pkgdesc="An open-source implementation of the OpenGL specification"
pkgver=22.0.0
pkgrel=1.1
pkgver=22.0.1
pkgrel=3
arch=('x86_64')
makedepends=('python-mako' 'libxml2' 'libx11' 'xorgproto' 'libdrm' 'libxshmfence' 'libxxf86vm'
'libxdamage' 'libvdpau' 'libva' 'wayland' 'wayland-protocols' 'zstd' 'elfutils' 'llvm'
'libomxil-bellagio' 'libclc' 'clang' 'libglvnd' 'libunwind' 'lm_sensors' 'libxrandr'
'valgrind' 'glslang' 'vulkan-icd-loader' 'directx-headers' 'cmake' 'meson')
url="https://www.mesa3d.org/"
license=('custom')
options=('debug')
source=(https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz{,.sig}
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15365.patch
rockchip_ebc.patch
LICENSE)
sha512sums=('9faef66adbacba24d11dfe8e2d1a753295798883a10a7cc91e6df9d678c64a8286a12e60c0d8576d944a8cc76f00c30d27c3a71d3458bbe3dbcd66c88a454c3b'
sha512sums=('cc8012b8f3fcbecfbb153d0e009e6522c3776023501da8499c06f1eaa9ab0a555ca597e16e4d7a2b954b05c8c0737ae6567e0d8549fb63aa86ae587eb31cd01e'
'SKIP'
'9178bbe145ba2d8b5ef5cb3fcfc63b90aff47ec45bed075d2af27b2c42d1e38e16f1c5a712b7ab3788038170bd4c4cacd5cdb9ad578a0275fc54621dd9356ce6'
'5ab31c0fafee04b493835fc2908d50d3911d842b5f0156f7559ae04592ca87a7fe95f91ba9fb06881671818e118abed834fc68e2c472cff664f866ec014ebde7'
Expand All @@ -54,6 +55,14 @@ build() {
aarch64) GALLIUM=",etnaviv,kmsro,lima,panfrost,v3d,vc4" ;;
esac

# Build only minimal debug info to reduce size
CFLAGS+=' -g1'
CXXFLAGS+=' -g1'

# https://gitlab.freedesktop.org/mesa/mesa/-/issues/6229
CFLAGS+=' -mtls-dialect=gnu'
CXXFLAGS+=' -mtls-dialect=gnu'

arch-meson mesa-$pkgver build \
-D b_lto=$([[ $CARCH == aarch64 ]] && echo true || echo false) \
-D b_ndebug=true \
Expand Down

0 comments on commit 8048be9

Please sign in to comment.