Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: submarine git pull #1451

Merged
merged 3 commits into from
Jul 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions anda/system/submarine/submarine.spec
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,21 @@ Submarine provides a minimal Linux environmemt that lives in a small partition
(or a different system if you're brave.)

%prep
git clone --recurse-submodules --shallow-submodules -b v%version %url .
git clone --recurse-submodules --shallow-submodules -b v%version %url %{name}-build

pushd u-root
pushd %{name}-build/u-root
go install
popd


%build
pushd %{name}-build
export PATH=$PATH:$HOME/go/bin
%make_build %arch
popd

%install
pushd %{name}-build
mkdir -p %buildroot/boot %buildroot%_datadir/submarine
install -Dm644 build/submarine-*.kpart %buildroot%_datadir/submarine/
# Symlink the installed kpart to just submarine.kpart
Expand All @@ -44,6 +48,8 @@ popd

install -Dm644 build/submarine-*.bin %buildroot%_datadir/submarine/

popd

%files
%_datadir/submarine/submarine-*.kpart
%_datadir/submarine/submarine.kpart
Expand Down
Loading