mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +08:00
tools/release.sh: Build sim:asan instead of sim:nsh
since sim:asan could do more check Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Abdelatif Guettouche
parent
e6e3cc7e02
commit
403b09fa60
@@ -133,18 +133,18 @@ function check_nuttx_apps() {
|
|||||||
check_required_files "$RELEASE_DIR"
|
check_required_files "$RELEASE_DIR"
|
||||||
}
|
}
|
||||||
|
|
||||||
function check_sim_nsh_build() {
|
function check_sim_asan_build() {
|
||||||
RELEASE_DIR="nuttx"
|
RELEASE_DIR="nuttx"
|
||||||
echo "Trying to build $RELEASE_DIR sim:nsh..."
|
echo "Trying to build $RELEASE_DIR sim:asan..."
|
||||||
cd "$RELEASE_DIR"
|
cd "$RELEASE_DIR"
|
||||||
output=$(make distclean; ./tools/configure.sh sim:nsh; make) 2>&1
|
output=$(make distclean; ./tools/configure.sh sim:asan; make) 2>&1
|
||||||
return_value=$?
|
return_value=$?
|
||||||
if [ $return_value -eq 0 ]; then
|
if [ $return_value -eq 0 ]; then
|
||||||
echo " OK: we were able to build sim:nsh."
|
echo " OK: we were able to build sim:asan."
|
||||||
else
|
else
|
||||||
RETURN_CODE=1
|
RETURN_CODE=1
|
||||||
echo "$output"
|
echo "$output"
|
||||||
echo " - Error building sim:nsh."
|
echo " - Error building sim:asan."
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
@@ -154,7 +154,7 @@ function usage() {
|
|||||||
echo " Given release full URL, release name, or a local directory, downloads or copies"
|
echo " Given release full URL, release name, or a local directory, downloads or copies"
|
||||||
echo " all files in that directory (which for a release should include nuttx and nuttx-apps, sha512, "
|
echo " all files in that directory (which for a release should include nuttx and nuttx-apps, sha512, "
|
||||||
echo " asc, and tar.gz files), checks the release SHA512 and GPG signatures, checks the unpacked "
|
echo " asc, and tar.gz files), checks the release SHA512 and GPG signatures, checks the unpacked "
|
||||||
echo " directories for required files, and tries to build NuttX for sim:nsh."
|
echo " directories for required files, and tries to build NuttX for sim:asan."
|
||||||
echo
|
echo
|
||||||
echo " If tempdir is specified, it will be removed and recreated; if it is not specified, /tmp/nuttx-checkrelease"
|
echo " If tempdir is specified, it will be removed and recreated; if it is not specified, /tmp/nuttx-checkrelease"
|
||||||
echo " is used."
|
echo " is used."
|
||||||
@@ -212,6 +212,6 @@ download_release
|
|||||||
import_key
|
import_key
|
||||||
check_nuttx
|
check_nuttx
|
||||||
check_nuttx_apps
|
check_nuttx_apps
|
||||||
check_sim_nsh_build
|
check_sim_asan_build
|
||||||
|
|
||||||
exit $RETURN_CODE
|
exit $RETURN_CODE
|
||||||
|
|||||||
Reference in New Issue
Block a user