]>
Commit | Line | Data |
---|---|---|
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 | # SPI patches | |
32 | curl https://tg.st/u/aa6a11b3feeda0f57284f99406188e4615e7c43c.patch | patch -p1 | |
33 | curl https://tg.st/u/9ce9060dea91951a330feeeda3ad636bc88c642c.patch | patch -p1 | |
34 | # Sound patch | |
35 | curl https://tg.st/u/5nly | patch -p1 | |
36 | # Config with sound enabled | |
37 | curl https://tg.st/u/asahi-config-2022-01-19 > .config | |
38 | make olddefconfig | |
39 | make bindeb-pkg |