Skip to content

Commit

Permalink
fix: submarine git pull (#1451) (#1458)
Browse files Browse the repository at this point in the history
* fix: submarine git pull

* fix: create empty directory

* oops, we only popd once

(cherry picked from commit 6e2287f)

Co-authored-by: Cappy Ishihara <[email protected]>
  • Loading branch information
raboneko and korewaChino authored Jul 9, 2024
1 parent eed70b3 commit fb07a03
Showing 1 changed file with 8 additions and 2 deletions.
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

0 comments on commit fb07a03

Please sign in to comment.