Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkMatterCore committed Apr 15, 2024
1 parent 101ae0a commit 65b8639
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash
ARG=${1:-'--confirm'}

set -e

cd "$(dirname "${BASH_SOURCE[0]}")"

# Clean-up from last build
Expand All @@ -22,12 +20,16 @@ cp $poc_path ./source/main.c

cp ./romfs/icon/nxdumptool.jpg ./romfs/icon/$poc_name.jpg

set -e

if [ ${ARG,,} != "--noconfirm" ]; then
make BUILD_TYPE="$poc_name" -j$(nproc)
else
make BUILD_TYPE="$poc_name" -j8 PREFIX="ccache aarch64-none-elf-"
fi

set +e

rm -f ./romfs/icon/$poc_name.jpg

mv -f ./$poc_name.nro ./code_templates/tmp/$poc_name.nro
Expand Down

0 comments on commit 65b8639

Please sign in to comment.