]> git.zerfleddert.de Git - m1-debian/blob - bootstrap.sh
first version of the bootstrap
[m1-debian] / bootstrap.sh
1 #!/bin/bash
2
3 set -x
4 set -e
5
6 unset LC_CTYPE
7 unset LANG
8
9 # Build u-boot
10 git clone https://github.com/kettenis/u-boot
11 cd u-boot/
12 git checkout apple-m1-m1n1-nvme
13 make apple_m1_defconfig
14 # it is normal that it runs on an error at the end
15 make || true
16 cd ..
17
18 # build m1n1
19 git clone --recursive https://github.com/AsahiLinux/m1n1.git
20 cd m1n1
21 make -j
22 cd ..
23
24 # Build our boot object that replaces step2.sh in the asahi installer
25 cat m1n1/build/m1n1.macho `find u-boot -name \*.dtb` u-boot/u-boot-nodtb.bin > u-boot.macho
26
27 # Build Linux
28 git clone https://github.com/AsahiLinux/linux
29 cd linux
30 git checkout origin/asahi
31 curl https://tg.st/u/c5eb67144c10f8685ebd8c1dfef8586588e1994d.patch | patch -p1
32 curl https://tg.st/u/asahi-config-2022-01-08 > .config
33 make olddefconfig
34 make bindeb-pkg
Impressum, Datenschutz