rk1808: improve update_tool with self-defined log dir

Change-Id: I242a8418caa497e786a50c82eb653f69a212fd3e
Signed-off-by: Hertz Wang <wangh@rock-chips.com>
This commit is contained in:
Hertz Wang
2019-05-14 16:49:15 +08:00
parent 7d2a99ecec
commit 60751ba5f6
7 changed files with 33 additions and 3 deletions

View File

@ -0,0 +1,10 @@
firmware=update.img
loader=loader.bin
parameter=parameter
misc=
boot=boot.img
kernel=kernel.img
system=system.img
recovery=recovery.img
rockusb_id=
msc_id=

View File

@ -8,12 +8,22 @@ if [ $# -ne 4 ]; then
exit -1
fi
cat /proc/cpuinfo |grep Intel
cat /proc/cpuinfo |grep -E "Intel|AMD"
if [ $? -ne 0 ]; then
echo "use arm version"
UPGRADE_TOOL=$SCRIPT_ROOT/upgrade_tool_arm
LOG_DIR=~/.rockchip/upgrade_tool/aarch64/log
CONFIG_INI=$SCRIPT_ROOT/aarch64_release/config.ini
UPGRADE_TOOL=$SCRIPT_ROOT/aarch64_release/upgrade_tool
else
UPGRADE_TOOL=$SCRIPT_ROOT/upgrade_tool_x86
LOG_DIR=~/.rockchip/upgrade_tool/x64/log
CONFIG_INI=$SCRIPT_ROOT/x64_release/config.ini
UPGRADE_TOOL=$SCRIPT_ROOT/x64_release/upgrade_tool
fi
mkdir -p $LOG_DIR
grep log_dir $CONFIG_INI > /dev/null
if [ $? -ne 0 ]; then
echo "log_dir=$(realpath $LOG_DIR)" >> $CONFIG_INI
fi
LOADER=$1

View File

@ -0,0 +1,10 @@
firmware=update.img
loader=loader.bin
parameter=parameter
misc=
boot=boot.img
kernel=kernel.img
system=system.img
recovery=recovery.img
rockusb_id=
msc_id=

Binary file not shown.