自动创建export/lib目录
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -35,4 +35,7 @@ tools/gen_img/*.map
|
|||||||
tools/gen_img/*.out
|
tools/gen_img/*.out
|
||||||
tools/gen_img/*.bin
|
tools/gen_img/*.bin
|
||||||
tools/gen_img/*.bin.fw
|
tools/gen_img/*.bin.fw
|
||||||
tools/gen_img/lib_sdk_source/
|
tools/gen_img/lib_sdk_source/
|
||||||
|
mfgtool/ah/ah
|
||||||
|
mfgtool/lzma/elzma
|
||||||
|
mfgtool/oem_tool/oem_tool
|
||||||
|
@@ -653,32 +653,34 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#prepare sdk source.
|
build_prepare() {
|
||||||
GEN_IMG_FOLDER="../tools/gen_img"
|
#prepare sdk source.
|
||||||
if [ ! -d "${GEN_IMG_FOLDER}/lib_sdk_source" ]; then
|
GEN_IMG_FOLDER="../tools/gen_img"
|
||||||
mkdir ${GEN_IMG_FOLDER}/lib_sdk_source
|
if [ ! -d "${GEN_IMG_FOLDER}/lib_sdk_source" ]; then
|
||||||
fi
|
mkdir ${GEN_IMG_FOLDER}/lib_sdk_source
|
||||||
|
fi
|
||||||
# 如果不存在这些工具则创建
|
# 如果不存在这些工具则创建
|
||||||
if [ ! -e "../tools/bin_tool/bin2hex" ]; then
|
if [ ! -e "../tools/bin_tool/bin2hex" ]; then
|
||||||
cd "../tools/bin_tool"
|
cd "../tools/bin_tool"
|
||||||
gcc bin2hex.c -o bin2hex
|
gcc bin2hex.c -o bin2hex
|
||||||
cd -
|
cd -
|
||||||
fi
|
fi
|
||||||
|
if [ ! -e "../tools/bin_tool/hex2bin" ]; then
|
||||||
if [ ! -e "../tools/bin_tool/hex2bin" ]; then
|
cd "../tools/bin_tool"
|
||||||
cd "../tools/bin_tool"
|
gcc hex2bin.c -o hex2bin
|
||||||
gcc hex2bin.c -o hex2bin
|
cd -
|
||||||
cd -
|
fi
|
||||||
fi
|
if [ ! -e "../tools/bin_tool/bin2hex_frame" ]; then
|
||||||
|
cd "../tools/bin_tool"
|
||||||
if [ ! -e "../tools/bin_tool/bin2hex_frame" ]; then
|
gcc bin2hex_frame.c -o bin2hex_frame
|
||||||
cd "../tools/bin_tool"
|
cd -
|
||||||
gcc bin2hex_frame.c -o bin2hex_frame
|
fi
|
||||||
cd -
|
if [ ! -e "../export/lib" ]; then
|
||||||
fi
|
mkdir ../export/lib
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
build_prepare
|
||||||
|
|
||||||
export HW_CHIP_ID="${DEF_CHIP_ID}"
|
export HW_CHIP_ID="${DEF_CHIP_ID}"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user