]> git.zerfleddert.de Git - m1-debian/blame - bootstrap.sh
first version of the bootstrap
[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
31curl https://tg.st/u/c5eb67144c10f8685ebd8c1dfef8586588e1994d.patch | patch -p1
32curl https://tg.st/u/asahi-config-2022-01-08 > .config
33make olddefconfig
34make bindeb-pkg
Impressum, Datenschutz