test -d m1n1 || git clone --recursive https://github.com/AsahiLinux/m1n1
cd m1n1
git fetch
- git reset --hard origin/main; git clean -f -x -d &> /dev/null
+ # https://github.com/AsahiLinux/PKGBUILDs/blob/main/m1n1/PKGBUILD
+ git reset --hard v1.1.3; git clean -f -x -d &> /dev/null
make -j `nproc`
)
}
test -d u-boot || git clone https://github.com/AsahiLinux/u-boot
cd u-boot
git fetch
+ # For tag, see https://github.com/AsahiLinux/PKGBUILDs/blob/main/uboot-asahi/PKGBUILD
git reset --hard asahi-v2022.07-2; git clean -f -x -d &> /dev/null
+ curl -s https://tg.st/u/0001-usb-storage-continue-probe-on-Invalid-device.patch | git am -
make apple_m1_defconfig
make -j `nproc`
)