41 lines
709 B
Bash
41 lines
709 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
rm -f ../Makefile
|
||
|
ln -s ./build/Makefile ../Makefile
|
||
|
|
||
|
FLASH_SIZE_nM=4
|
||
|
CLEANUP_OPT="1"
|
||
|
|
||
|
#print help info.
|
||
|
if [ "?" == "$1" ]; then
|
||
|
echo "*$0 [NOT_CLEAN]"
|
||
|
echo "* [NOT_CLEAN] -- Optional, clean or not, 'not_clean' means incremental build, default is cleanup."
|
||
|
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
#incremental build option.
|
||
|
for k in $@; do
|
||
|
if [ "${k}" == "not_clean" ]; then
|
||
|
CLEANUP_OPT="0"
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
#include kl3 environment
|
||
|
. env_kunlun3_tool.sh
|
||
|
|
||
|
export build_amp_type=0
|
||
|
export psram_enable=0
|
||
|
export layout_index=1
|
||
|
export dtest_only=1
|
||
|
|
||
|
set -o errexit
|
||
|
|
||
|
if [ "${CLEANUP_OPT}" == "1" ]; then
|
||
|
make -C .. clobber
|
||
|
make -C .. dtest_clean
|
||
|
fi
|
||
|
|
||
|
# build kl3 dtest
|
||
|
make -C .. dtest opt_build=1
|