From: Thomas Glanzmann Date: Sun, 11 Dec 2022 10:48:12 +0000 (+0100) Subject: Merge branch 'master' of a.gmvl.de:/git/m1-debian X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/commitdiff_plain/e363fd507b7028036dba11d55f876d96ddfb6667?hp=fcb5111f9d975a3c801e0803ec98ffe4ef3c3852 Merge branch 'master' of a.gmvl.de:/git/m1-debian --- diff --git a/gpu.sh b/gpu.sh index 51ac4de..46cc250 100644 --- a/gpu.sh +++ b/gpu.sh @@ -51,9 +51,41 @@ build_uboot() cat m1n1/build/m1n1.bin `find linux/arch/arm64/boot/dts/apple/ -name \*.dtb` <(gzip -c u-boot/u-boot-nodtb.bin) > u-boot.bin } +package_boot_bin() +{ +( + export M1N1_VERSION=1.2.2-1 + rm -rf m1n1_${M1N1_VERSION} + mkdir -p m1n1_${M1N1_VERSION}/DEBIAN m1n1_${M1N1_VERSION}/usr/lib/m1n1/ + cp u-boot.bin m1n1_${M1N1_VERSION}/usr/lib/m1n1/boot.bin +cat > m1n1_${M1N1_VERSION}/DEBIAN/control < +Description: Apple silicon boot loader + Next to m1n1 this also contains the device trees and u-boot. +EOF + +cat > m1n1_${M1N1_VERSION}/DEBIAN/postinst </dev/null 2>&1 || sudo apt-get install devscripts + rm -rf libunwind-1.6.2/ + apt-get source libunwind + cd libunwind-1.6.2/ + EMAIL=thomas@glanzmann.de dch 'Variable page size patch applied' + curl -sL https://tg.st/u/0001-libunwind-1.6.2-dynamic-page-size.patch > debian/patches/0001-libunwind-1.6.2-dynamic-page-size.patch + echo '0001-libunwind-1.6.2-dynamic-page-size.patch' >> debian/patches/series + sudo apt-get build-dep . + dpkg-buildpackage -uc -us -a arm64 +} + +main "$@" diff --git a/mesa.sh b/mesa.sh index c410085..94df419 100644 --- a/mesa.sh +++ b/mesa.sh @@ -13,6 +13,10 @@ unset LANG main() { mkdir -p build cd build + + # devscripts needed for dch and dcmd + dpkg -s devscripts >/dev/null 2>&1 || sudo apt-get install devscripts + command -v git >/dev/null || sudo apt-get install git test -d mesa || git clone https://gitlab.freedesktop.org/asahi/mesa.git cd mesa diff --git a/meta.sh b/meta.sh new file mode 100644 index 0000000..6c3c1b7 --- /dev/null +++ b/meta.sh @@ -0,0 +1,33 @@ +#!/usr/bin/env bash + +set -o errexit +set -o nounset +set -o pipefail +set -o xtrace + +cd "$(dirname "$0")" + +unset LC_CTYPE +unset LANG + +main() { + mkdir -p build + cd build + export META_VERSION=6.1.0-1 + rm -rf linux-image-asahi_${META_VERSION} + mkdir -p linux-image-asahi_${META_VERSION}/DEBIAN +cat > linux-image-asahi_${META_VERSION}/DEBIAN/control <= 6.1.0-rc8-asahi-36) +Priority: optional +Architecture: arm64 +Maintainer: Thomas Glanzmann +Description: Linux for 64-bit apple silicon machines (meta-package) +EOF + dpkg-deb --build linux-image-asahi_${META_VERSION} +} + +main "$@" +