From 7bffa1ee4c8bdb991966dc8d686e40a5ba053cb7 Mon Sep 17 00:00:00 2001 From: Weiwen Chen Date: Wed, 22 Sep 2021 15:50:59 +0800 Subject: [PATCH] common: build.sh: build_info support get SDK version Signed-off-by: Weiwen Chen Change-Id: Id153cbc39d2bf4afcd2f979d424a565967f9b482 --- common/build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/build.sh b/common/build.sh index 89747b4..09d0f63 100755 --- a/common/build.sh +++ b/common/build.sh @@ -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`"