]> git.zerfleddert.de Git - m1-debian/blame - mesa.sh
New command
[m1-debian] / mesa.sh
CommitLineData
accb1901
TG
1#!/usr/bin/env bash
2
3set -o errexit
4set -o nounset
5set -o pipefail
6set -o xtrace
7
8cd "$(dirname "$0")"
9
10unset LC_CTYPE
11unset LANG
12
d5659d5f
TG
13mkdir -p build
14cd build
f874ddc9 15
d5659d5f
TG
16# devscripts needed for dch and dcmd
17dpkg -s devscripts >/dev/null 2>&1 || sudo apt-get install devscripts
f874ddc9 18
d5659d5f
TG
19command -v git >/dev/null || sudo apt-get install git
20test -d mesa || git clone https://gitlab.freedesktop.org/asahi/mesa.git
21cd mesa
22git fetch -a -t
3d73deff
TG
23# 17:17 <marcan> also for mesa, use the latest versioned tag I made, *not* any
24# live branch. mesa and kernel live branches are not kept in sync. generally
25# the latest mesa tag will be in sync with the latest kernel tag and usually
26# also the latest live kernel (except when I'm about to do a release)
27# 17:18 <marcan> if those two desync it'll refuse to initialize
64667455 28git reset --hard asahi-20231213
d5659d5f
TG
29rm -rf debian
30cp -a ../../mesa-debian debian
31EMAIL=thomas@glanzmann.de dch -v 23.0.0-`date +%Y%m%d%H%M` 'asahi wip'
32sudo apt-get build-dep .
33dpkg-buildpackage -uc -us -a arm64 --build=binary
Impressum, Datenschutz