mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-08 11:51:48 +00:00
Update build.sh
This commit is contained in:
parent
101ae0a361
commit
65b86393c2
1 changed files with 4 additions and 2 deletions
6
build.sh
6
build.sh
|
@ -1,8 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
ARG=${1:-'--confirm'}
|
ARG=${1:-'--confirm'}
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||||
|
|
||||||
# Clean-up from last build
|
# Clean-up from last build
|
||||||
|
@ -22,12 +20,16 @@ cp $poc_path ./source/main.c
|
||||||
|
|
||||||
cp ./romfs/icon/nxdumptool.jpg ./romfs/icon/$poc_name.jpg
|
cp ./romfs/icon/nxdumptool.jpg ./romfs/icon/$poc_name.jpg
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ ${ARG,,} != "--noconfirm" ]; then
|
if [ ${ARG,,} != "--noconfirm" ]; then
|
||||||
make BUILD_TYPE="$poc_name" -j$(nproc)
|
make BUILD_TYPE="$poc_name" -j$(nproc)
|
||||||
else
|
else
|
||||||
make BUILD_TYPE="$poc_name" -j8 PREFIX="ccache aarch64-none-elf-"
|
make BUILD_TYPE="$poc_name" -j8 PREFIX="ccache aarch64-none-elf-"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set +e
|
||||||
|
|
||||||
rm -f ./romfs/icon/$poc_name.jpg
|
rm -f ./romfs/icon/$poc_name.jpg
|
||||||
|
|
||||||
mv -f ./$poc_name.nro ./code_templates/tmp/$poc_name.nro
|
mv -f ./$poc_name.nro ./code_templates/tmp/$poc_name.nro
|
||||||
|
|
Loading…
Reference in a new issue