[Feature][ZXW-130]merge P50U02 version
Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I4f29ec5bb7c59385f23738d2b7ca84e67c100f69
diff --git a/boot/common/scripts/build/build_zloader_dlon.sh b/boot/common/scripts/build/build_zloader_dlon.sh
index bfc6394..b5daa43 100755
--- a/boot/common/scripts/build/build_zloader_dlon.sh
+++ b/boot/common/scripts/build/build_zloader_dlon.sh
@@ -23,22 +23,15 @@
if [ $is_ok -eq 1 ];then
echo "";
- echo "Configuring ["$chip"_"$board"_zloader_dlon_config] for ["$chip" "$board" "$key_path"] board ...";
+ echo "Configuring ["$chip"_"$board"_zloader_dlon_config] for ["$chip" "$board"] board ...";
cp z-load.bin $SRC_PATH/common/scripts/tools;
cd $SRC_PATH/common/scripts/tools;
./expand z-load.bin;
-
- mkdir -p $KEYS_PATH/Input
- mkdir -p $KEYS_PATH/Output
+
chmod -R 777 $SRC_PATH/
- mv z-load.bin $KEYS_PATH/Input/zloader.bin
- cd $KEYS_PATH
- ./SignImage -z ./Input/zloader.bin ./test_key/$key_path/private.k
- cp ./Input/zloader.bin $SRC_PATH/prj/$chip/$board/bin/dl_on/zloader.bin
- rm -rf Input
- rm -rf Output
-
+ $SRC_PATH/../tools/SignTool/SignImage -z -i z-load.bin -o $SRC_PATH/prj/$chip/$board/bin/dl_on/zloader.bin -k $SRC_PATH/../tools/SignTool/key/RSA_1024/private.k
+
echo "--Finished build [zloader.bin] ...";
echo "................................................OK....";
echo "";