Skip to content

Commit

Permalink
script for self build
Browse files Browse the repository at this point in the history
  • Loading branch information
apinske committed Dec 22, 2020
1 parent 0613fb1 commit cc7405d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions macos/root/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh
if [ ! -d build ]; then
mkdir build
podman run -d --name build --net host -v $PWD/build:/root/build docker.io/ubuntu:20.10 sleep infinity
podman exec build sh -c 'apt update && apt install -y git && cd /root && git clone https://github.com/apinske/simpleos.git'
else
podman start build
fi
ARCH=$(uname -m)
if [ "$ARCH" = "aarch64" ]; then
ARCH=arm64
fi
podman exec -e ARCH=$ARCH build sh -c 'cd /root/simpleos/macos && ./build.sh && cp vmlinuz ../../build/vmlinuz'
podman stop build

0 comments on commit cc7405d

Please sign in to comment.