Skip to content

Commit

Permalink
fix: Do not strip binaries in submarine (#1428)
Browse files Browse the repository at this point in the history
* fix: Do not strip binaries in submarine

* Update anda/system/submarine/submarine.spec

Co-authored-by: lea <[email protected]>
Signed-off-by: Cappy Ishihara <[email protected]>

---------

Signed-off-by: Cappy Ishihara <[email protected]>
Co-authored-by: lea <[email protected]>
(cherry picked from commit 3c49f8c)
  • Loading branch information
korewaChino authored and raboneko committed Jul 9, 2024
1 parent 169224b commit c041f3f
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions anda/system/submarine/submarine.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@
%elifarch aarch64
%global arch arm64
%endif
# do not strip binaries
%define __strip /bin/true
%define debug_package %{nil}


Name: submarine
Version: 0.2.1
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 depthcharge-tools
BuildRequires: make gcc flex bison elfutils-devel parted vboot-utils golang xz bc openssl-devel git depthcharge-tools uboot-tools

%description
An experimental bootloader for ChomeOS's depthcharge.
Expand All @@ -20,18 +24,27 @@ Submarine provides a minimal Linux environmemt that lives in a small partition
(or a different system if you're brave.)

%prep
go install github.com/u-root/[email protected]
git clone --recurse-submodules --shallow-submodules -b v%version %url .

pushd u-root
go install
popd

%build
export PATH=$PATH:$HOME/go/bin
%make_build %arch

%install
mkdir -p %buildroot/boot %buildroot%_datadir/submarine
install -Dm644 build/submarine-*.kpart %buildroot%_datadir/submarine/
# Symlink the installed kpart to just submarine.kpart
pushd %buildroot%_datadir/submarine/
find . -name 'submarine-*.kpart' -exec ln -srf {} submarine.kpart \;
popd

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

%files
%_datadir/submarine/submarine-*.kpart
%_datadir/submarine/submarine.kpart
%_datadir/submarine/submarine-*.bin

0 comments on commit c041f3f

Please sign in to comment.