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