Add dev_info v2(Default is v1)
Change-Id: I49693856ab5c97a5df3c199ed75091c4eee1800b
diff --git a/build.sh b/build.sh
index 201bf90..b8e75d6 100755
--- a/build.sh
+++ b/build.sh
@@ -16,6 +16,8 @@
export BUILD_GCC_VERSION=`cat config | grep CONFIG_GCC_VERSION | cut -d '=' -f 2`
+export MBTK_DEV_INFO_VERSION=`cat config | grep CONFIG_DEV_INFO_VERSION | cut -d '=' -f 2`
+
if [ -n "$1" ] ;then
case "$1" in
v1)
@@ -68,7 +70,7 @@
# Copy All SO Files.
# cp -f mbtk/libmbtk_lib/wifi/libs out/lib
cp -f out/lib/* $1/lib
-
+
# Copy All Bin Files.
#cp -f out/bin/* $1/bin
[ -f out/bin/at ] && cp -f out/bin/at $1/bin
@@ -87,8 +89,8 @@
[ -f out/bin/mbtk_version ] && cp -f out/bin/mbtk_version $1/bin
[ -f out/bin/mbtk_servicesd ] && cp -f out/bin/mbtk_servicesd $1/bin
[ -f out/bin/aboot-tiny ] && cp -f out/bin/aboot-tiny $1/bin
-
-
+
+
# Copy GNSS(5311) bin files.
[ -f mbtk/aboot-tiny/files/release/jacana_fw.bin ] && cp -f mbtk/aboot-tiny/files/release/jacana_fw.bin $1/etc
[ -f mbtk/aboot-tiny/files/config/jacana_pvt.bin ] && cp -f mbtk/aboot-tiny/files/config/jacana_pvt.bin $1/etc
@@ -106,7 +108,7 @@
if [ ! -d $ROOTFS_DIR/lib ];then
mkdir $ROOTFS_DIR/lib
fi
-
+
copy_bin_and_lib $ROOTFS_DIR
else
echo "No found rootfs : $ROOTFS_DIR"
@@ -119,20 +121,20 @@
if [ -d $TEMP_MBTK_DIR ];then
rm -rf $TEMP_MBTK_DIR
fi
-
+
mkdir -p $TEMP_MBTK_DIR/mbtk/include
mkdir -p $TEMP_MBTK_DIR/mbtk/rootfs/bin
mkdir -p $TEMP_MBTK_DIR/mbtk/rootfs/lib
mkdir -p $TEMP_MBTK_DIR/mbtk/rootfs/etc
mkdir -p $TEMP_MBTK_DIR/mbtk/test
-
+
copy_bin_and_lib $TEMP_MBTK_DIR/mbtk/rootfs
-
+
# Copy include file.
if [ -d mbtk/include ];then
cp -rf mbtk/include/* $TEMP_MBTK_DIR/mbtk/include
fi
-
+
# Copy test source.
if [ -d mbtk/test ];then
cope_file="mbtk/test/*"
@@ -147,6 +149,7 @@
{
echo BUILD_STD_LIBC=$BUILD_STD_LIBC
echo MBTK_SOURCE_VERSION=$MBTK_SOURCE_VERSION
+ echo MBTK_DEV_INFO_VERSION=$MBTK_DEV_INFO_VERSION
}
function main()
@@ -154,11 +157,11 @@
if [ ! -d out/lib ];then
mkdir -p out/lib
fi
-
+
if [ ! -d out/bin ];then
mkdir -p out/bin
fi
-
+
if [ "$BUILD_LIBC_TEMP" == "musl" ];then
[ -f mbtk/libmbtk_lib/wifi/libs/libwpa_client_musl.so ] && cp -f mbtk/libmbtk_lib/wifi/libs/libwpa_client_musl.so mbtk/libmbtk_lib/wifi/libs/libwpa_client.so
else
@@ -168,24 +171,24 @@
if [ -n "$1" ] ;then
if [ "$1" == "v1" -o "$1" == "v2" ];then
build clean
-
-
+
+
else
build $1
exit 0
fi
fi
-
+
if [ ! -d out/lib ];then
mkdir -p out/lib
fi
-
+
if [ ! -d out/bin ];then
mkdir -p out/bin
fi
build
-
+
print_arg
file_copy