diff --git a/anda/system/submarine/anda.hcl b/anda/system/submarine/anda.hcl new file mode 100644 index 0000000000..5f8e471fb0 --- /dev/null +++ b/anda/system/submarine/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "submarine.spec" + } +} diff --git a/anda/system/submarine/submarine.spec b/anda/system/submarine/submarine.spec new file mode 100644 index 0000000000..757676250f --- /dev/null +++ b/anda/system/submarine/submarine.spec @@ -0,0 +1,35 @@ +%ifarch x86_64 +%global arch x86_64 +%elifarch aarch64 +%global arch arm64 +%endif + +Name: submarine +Version: 0.1.0 +Release: 1%?dist +Summary: Experimental bootloader for ChomeOS's depthcharge +License: GPL-3.0 +URL: https://github.com/FyraLabs/submarine +BuildRequires: make gcc flex bison elfutils-devel parted vboot-utils golang xz bc openssl-devel git golang-github-u-root + +%description +An experimental bootloader for ChomeOS's depthcharge. + +Submarine provides a minimal Linux environmemt that lives in a small partition +(16mb) on the disk. We use this environment to bootstrap a full Linux system +(or a different system if you're brave.) + +%prep +git clone --recurse-submodules --shallow-submodules -b v%version %url . + +%build +%make_build %arch + +%install +mkdir -p %buildroot/boot %buildroot%_datadir/submarine +install -Dm644 build/submarine-*.kpart %buildroot/boot/ +install -Dm644 build/submarine-*.bin %buildroot%_datadir/submarine/ + +%files +/boot/submarine-*.kpart +%_datadir/submarine/submarine-*.bin diff --git a/anda/system/submarine/update.rhai b/anda/system/submarine/update.rhai new file mode 100644 index 0000000000..c2b5877a08 --- /dev/null +++ b/anda/system/submarine/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("FyraLabs/submarine"));