cd linux
git fetch
git reset --hard origin/asahi; git clean -f -x -d &> /dev/null
- # curl -s https://tg.st/u/0001-4k-iommu-patch.patch | git am -
+ 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/config-2022-02-19 > .config
make olddefconfig
make -j $(( 2* `nproc`)) V=0 bindeb-pkg
{
export KERNEL=`ls -1rt linux-image*.deb | grep -v dbg | tail -1`
cp ${KERNEL} k.deb
- sudo mv m1-d-i.tar m1.tgz asahi-debian-live.tar u-boot.bin u-boot.macho di-stick/vmlinuz k.deb /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 /u/
}
mkdir -p build