curl -s https://tg.st/u/0001-4k-iommu-patch.patch | git am -
curl -s https://tg.st/u/DXyl.patch | git am -
curl -s https://tg.st/u/0001-apple-mca-correct-prinkts.patch | git am -
- curl -s https://tg.st/u/0001-Hookup-gpio-backlight.patch | git am -
+ curl -s https://tg.st/u/0001-Hookup-backlight-for-MacBook-Pro-13-inch-M1-2020-J29.patch | git am -
curl -s https://tg.st/u/XKVZ.patch | git am -
curl -s https://tg.st/u/config-2022-02-19 > .config
make olddefconfig
{
export KERNEL=`ls -1rt linux-image*.deb | grep -v dbg | tail -1`
cp ${KERNEL} k.deb
- sudo cp m1-d-i.tar m1.tgz asahi-debian-live.tar u-boot.bin u-boot.macho di-stick/vmlinuz k.deb m1n1/build/m1n1.bin m1n1/build/m1n1.macho /u/
+ sudo cp m1-d-i.tar m1.tgz asahi-debian-live.tar u-boot.bin u-boot.macho di-stick/vmlinuz k.deb m1n1/build/m1n1.bin m1n1/build/m1n1.macho testing/usr/lib/grub/arm64-efi/monolithic/grubaa64.efi /u/
}
mkdir -p build