From: Thomas Glanzmann Date: Sun, 11 Dec 2022 21:38:07 +0000 (+0100) Subject: Merge branch 'master' of a.gmvl.de:/git/m1-debian X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/commitdiff_plain/3753c37c405b92b884d3e52360782893dde3acce?hp=7967bc8a041347addd0c8a102d52ce2fe762e341 Merge branch 'master' of a.gmvl.de:/git/m1-debian --- diff --git a/config-gpu.txt b/config-gpu.txt index 4a8dc0d..2df0657 100644 --- a/config-gpu.txt +++ b/config-gpu.txt @@ -6251,7 +6251,6 @@ CONFIG_FONTS=y # CONFIG_FONT_ACORN_8x8 is not set # CONFIG_FONT_MINI_4x6 is not set # CONFIG_FONT_6x10 is not set -CONFIG_FONT_10x18=y # CONFIG_FONT_SUN8x16 is not set # CONFIG_FONT_SUN12x22 is not set CONFIG_FONT_TER16x32=y diff --git a/config.edge b/config.edge index 1e6ede1..d4871e7 100644 --- a/config.edge +++ b/config.edge @@ -7411,7 +7411,6 @@ CONFIG_GENERIC_VDSO_TIME_NS=y CONFIG_FONT_SUPPORT=y CONFIG_FONTS=y # CONFIG_FONT_8x8 is not set -CONFIG_FONT_8x16=y # CONFIG_FONT_6x11 is not set # CONFIG_FONT_7x14 is not set # CONFIG_FONT_PEARL_8x8 is not set 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/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 "$@" +