-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
project pkg { | ||
rpm { | ||
spec = "submarine.spec" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rpm.version(gh("FyraLabs/submarine")); |