Skip to content

kkebo/swift_os

Repository files navigation

swift_os

An operating system written in Swift.

Prerequisites

  • Make
    • Arch Linux: sudo pacman -S make
    • Fedora 40 or later: sudo dnf install make
    • Ubuntu 24.04/22.04: sudo apt install make
    • Debian 12: sudo apt install make
    • macOS 14: bulit-in (/usr/bin/make)
  • llvm-objcopy
    • Arch Linux: sudo pacman -S llvm
    • Fedora 40 or later: sudo dnf install llvm
    • Ubuntu 24.04/22.04: sudo apt install llvm
    • Debian 12: sudo apt install llvm
    • macOS 14: brew install llvm and add /opt/homebrew/opt/llvm/bin to your $PATH
  • QEMU 9.0 or later
    • Arch Linux: sudo pacman -S qemu-system-aarch64
    • Fedora 41 or later: sudo dnf install qemu-system-aarch64-core
    • Fedora 40: Build from source
    • Ubuntu 24.04/22.04: Build from source
    • Debian 12: sudo apt install -t bookwarm-backports qemu-system-arm (you need to add backports to sources.list)
    • macOS 14: brew install qemu
  • Swift (main development snapshot)
    • You can easily install the toolchain using Swiftly.

      swiftly install

Building

make

Cleaning build outputs

make clean

Running on QEMU

make run