common: build.sh: build_info support get SDK version
Signed-off-by: Weiwen Chen <cww@rock-chips.com> Change-Id: Id153cbc39d2bf4afcd2f979d424a565967f9b482
This commit is contained in:
@ -252,6 +252,15 @@ function build_info(){
|
||||
echo "No found target board config!!!"
|
||||
fi
|
||||
|
||||
if [ -f .repo/manifest.xml ]; then
|
||||
local sdk_ver=""
|
||||
sdk_ver=`grep "include name" .repo/manifest.xml | awk -F\" '{print $2}'`
|
||||
sdk_ver=`realpath .repo/manifests/${sdk_ver}`
|
||||
echo "Build SDK version: `basename ${sdk_ver}`"
|
||||
else
|
||||
echo "Not found .repo/manifest.xml [ignore] !!!"
|
||||
fi
|
||||
|
||||
echo "Current Building Information:"
|
||||
echo "Target Product: $TARGET_PRODUCT_DIR"
|
||||
echo "Target BoardConfig: `realpath $BOARD_CONFIG`"
|
||||
|
||||
Reference in New Issue
Block a user