初始提交
This commit is contained in:
33
build/build_ah.sh
Executable file
33
build/build_ah.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -f ../Makefile
|
||||
ln -s ./build/Makefile ../Makefile
|
||||
|
||||
CLEANUP_OPT="1"
|
||||
|
||||
if [ "$1" = "?" ]; then
|
||||
echo "usage:"
|
||||
echo "$0 [TARGET_TYPE] [NOT_CLEAN]"
|
||||
echo "* [TARGET_TYPE] -- Necessary, kl1|kl2|kl3."
|
||||
echo "* [NOT_CLEAN] -- Optional, clean or not, 'not_clean' means incremental build, default is cleanup."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$1x" = "kl3x" ]; then
|
||||
. env_kunlun3_tool.sh
|
||||
elif [ "$1x" = "kl2x" ]; then
|
||||
. env_kunlun2.sh
|
||||
else
|
||||
. env.sh
|
||||
fi
|
||||
|
||||
export soft_float_enable=1
|
||||
|
||||
set -o errexit
|
||||
|
||||
if [ "${CLEANUP_OPT}" == "1" ]; then
|
||||
make -C .. ah_clean
|
||||
fi
|
||||
|
||||
# build dtest
|
||||
make -C .. ah opt_build=1
|
Reference in New Issue
Block a user