summaryrefslogtreecommitdiff
path: root/xibuild.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 22:27:24 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 22:27:24 +0100
commit29bec3847866b7193413c6516198f3cdebff4e00 (patch)
tree8642da6de81ea217b12ea8a83d0676a9aac6398f /xibuild.sh
parent76b91e996a38ff95095d887639aee5a2a8eb4fa6 (diff)
made build profile by default use march=native
Diffstat (limited to 'xibuild.sh')
-rw-r--r--xibuild.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/xibuild.sh b/xibuild.sh
index 65a34f4..118841c 100644
--- a/xibuild.sh
+++ b/xibuild.sh
@@ -14,6 +14,7 @@ build_dir="$xibuild_dir/build"
export_dir="$xibuild_dir/build/xipkg"
doinstall=false
+dostrip=true
doclean=false
checkopt=""
@@ -49,6 +50,8 @@ ${BLUE}Avaiable Options:
${LIGHT_CYAN}clean: clean the out directory after building and installing
${BLUE}-n
${LIGHT_CYAN}nocheck: skip running the step stage of building
+ ${BLUE}-s
+ ${LIGHT_CYAN}nostrip: do not strip debugging symbols from binary
${BLUE}Available Commands:
${LIGHT_GREEN}prepare
@@ -199,7 +202,7 @@ xibuild_sign () {
info_file=$xipkg.info
{
printf "SIGNATURE="
- openssl dgst -sign $key_file $xipkg | base64 | tr '\n' ' ':w
+ openssl dgst -sign $key_file $xipkg | base64 | tr '\n' ' '
printf "\n"
} >> $info_file
done
@@ -219,7 +222,7 @@ xibuild_clean () {
rm $out_dir/build.log
}
-while getopts ":r:l:C:k:p:b:d:vcinh" opt; do
+while getopts ":r:l:C:k:p:b:d:vcinsh" opt; do
case "${opt}" in
r)
root=$(realpath ${OPTARG});;
@@ -243,6 +246,8 @@ while getopts ":r:l:C:k:p:b:d:vcinh" opt; do
doclean=true;;
n)
checkopt="-n";;
+ s)
+ dostrip=false;;
h)
usage; exit 0;;
esac
@@ -250,7 +255,10 @@ done
shift $((OPTIND-1))
-tasks="prepare fetch build strip package describe"
+
+tasks="prepare fetch build"
+$dostrip && tasks="$tasks strip"
+tasks="$tasks package describe"
[ "$key_file" ] && tasks="$tasks sign"