Merge "add MODEL,VERSION,OTA_HOST to /etc/version."

This commit is contained in:
yuyongzhen
2018-12-05 16:06:52 +08:00
committed by Gerrit Code Review
2 changed files with 11 additions and 0 deletions

10
common/Version.mk Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
#MODEL NAME
export RK_MODEL=RKXXXX_RETROGAME
#SOFT VERSION
export RK_VERSION=V1.0.0
#OTA HOST
export RK_OTA_HOST=172.16.21.205:8080

View File

@ -12,6 +12,7 @@ TOP_DIR=$(pwd)
COMMON_DIR=$TOP_DIR/device/rockchip/common
BOARD_CONFIG=$TOP_DIR/device/rockchip/.BoardConfig.mk
source $BOARD_CONFIG
source $TOP_DIR/device/rockchip/common/Version.mk
if [ ! -n "$1" ];then
echo "build all and save all as default"