Skip to content

Commit

Permalink
add: submarine (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko authored Dec 30, 2023
1 parent 543f19d commit 1dc71d8
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anda/system/submarine/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "submarine.spec"
}
}
35 changes: 35 additions & 0 deletions anda/system/submarine/submarine.spec
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions anda/system/submarine/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("FyraLabs/submarine"));

0 comments on commit 1dc71d8

Please sign in to comment.