+build_linux()
+{
+(
+ test -d linux || git clone --depth 1 https://github.com/AsahiLinux/linux
+ cd linux
+ git fetch
+ git reset --hard origin/asahi; git clean -f -x -d
+ curl -s https://tg.st/u/9ce9060dea91951a330feeeda3ad636bc88c642c.patch | git am -
+ curl -s https://tg.st/u/5nly | git am -
+ curl -s https://tg.st/u/asahi-config-2022-01-19 > .config
+ make olddefconfig
+ make -j 16 bindeb-pkg
+)
+}
+
+build_rootfs()
+{
+(
+ sudo rm -rf testing
+ sudo eatmydata debootstrap --arch=arm64 --include iwd,tcpdump,vim,tmux,vlan,ntpdate,bridge-utils,parted,curl,wget,grub-efi-arm64,mtr-tiny,dbus,ca-certificates,sudo,openssh-client testing testing http://ftp.fau.de/debian
+
+ cd testing
+
+ sudo bash -c 'echo live > etc/hostname'
+
+ sudo bash -c 'echo > etc/motd'
+
+ sudo cp ../files/sources.list etc/apt/sources.list
+ sudo cp ../files/hosts etc/hosts
+ sudo cp ../files/quickstart.txt root/