diff --git a/middleware/third_party/arduino/build/package_mtk_linkit_7697_index.json b/middleware/third_party/arduino/build/package_mtk_linkit_7697_index.json index d4b899b..db17da8 100644 --- a/middleware/third_party/arduino/build/package_mtk_linkit_7697_index.json +++ b/middleware/third_party/arduino/build/package_mtk_linkit_7697_index.json @@ -12,10 +12,10 @@ { "name": "LinkIt 7697", "architecture": "linkit_rtos", - "version": "1.0.0", + "version": "0.6.0", "category": "Contributed", - "url": "http://localhost:8080/mediatek_linkit_7697-1.0.0.tar.bz2", - "archiveFileName": "mediatek_linkit_7697-1.0.0.tar.bz2", + "url": "http://localhost:8080/mediatek_linkit_7697-0.6.0.tar.bz2", + "archiveFileName": "mediatek_linkit_7697-0.6.0.tar.bz2", "boards": [ { "name": "LinkIt 7697" @@ -30,7 +30,7 @@ { "packager": "LinkIt", "name": "flash_tool", - "version": "1.0.0" + "version": "0.6.0" } ] } @@ -72,27 +72,27 @@ }, { "name": "flash_tool", - "version": "1.0.0", + "version": "1.3.0", "systems": [ { "host": "i686-mingw32", - "url": "http://localhost:8080/mediatek_linkit_7697_flash_tool-1.0.0.tar.bz2", - "archiveFileName": "mediatek_linkit_7697_flash_tool-1.0.0.tar.bz2" + "url": "http://localhost:8080/mediatek_linkit_7697_flash_tool-1.3.0.tar.bz2", + "archiveFileName": "mediatek_linkit_7697_flash_tool-1.3.0.tar.bz2" }, { "host": "i386-apple-darwin11", - "url": "http://localhost:8080/mediatek_linkit_7697_flash_tool-1.0.0.tar.bz2", - "archiveFileName": "mediatek_linkit_7697_flash_tool-1.0.0.tar.bz2" + "url": "http://localhost:8080/mediatek_linkit_7697_flash_tool-1.3.0.tar.bz2", + "archiveFileName": "mediatek_linkit_7697_flash_tool-1.3.0.tar.bz2" }, { "host": "i686-linux-gnu", - "url": "http://localhost:8080/mediatek_linkit_7697_flash_tool-1.0.0.tar.bz2", - "archiveFileName": "mediatek_linkit_7697_flash_tool-1.0.0.tar.bz2" + "url": "http://localhost:8080/mediatek_linkit_7697_flash_tool-1.3.0.tar.bz2", + "archiveFileName": "mediatek_linkit_7697_flash_tool-1.3.0.tar.bz2" }, { "host": "x86_64-linux-gnu", - "url": "http://localhost:8080/mediatek_linkit_7697_flash_tool-1.0.0.tar.bz2", - "archiveFileName": "mediatek_linkit_7697_flash_tool-1.0.0.tar.bz2" + "url": "http://localhost:8080/mediatek_linkit_7697_flash_tool-1.3.0.tar.bz2", + "archiveFileName": "mediatek_linkit_7697_flash_tool-1.3.0.tar.bz2" } ] } diff --git a/middleware/third_party/arduino/hardware/arduino/mt7697/platform.txt b/middleware/third_party/arduino/hardware/arduino/mt7697/platform.txt index 7952794..e9ffd8f 100755 --- a/middleware/third_party/arduino/hardware/arduino/mt7697/platform.txt +++ b/middleware/third_party/arduino/hardware/arduino/mt7697/platform.txt @@ -129,7 +129,7 @@ recipe.size.regex.data=^(?:\.data|\.bss|\.heap|.\stack_dummy)\s+([0-9]+).* # 5 Upload tools # ------------------------ -tools.flash_tool.path={runtime.tools.flash_tool-1.0.0.path} +tools.flash_tool.path={runtime.tools.flash_tool.path} tools.flash_tool.cmd=upload.py tools.flash_tool.cmd.windows=upload.exe diff --git a/middleware/third_party/arduino/hardware/tools/mt7687/flash_tool/upload.py b/middleware/third_party/arduino/hardware/tools/mt7687/flash_tool/upload.py old mode 100644 new mode 100755 diff --git a/mk_ide_pkg.pl b/mk_ide_pkg.pl index 88fdc5d..5007e85 100755 --- a/mk_ide_pkg.pl +++ b/mk_ide_pkg.pl @@ -141,11 +141,13 @@ sub main { my $outpath; my $pkg_ver; + my $tool_ver; my $show_help; Getopt::Long::GetOptions( 'o=s' => \$outpath, 'v=s' => \$pkg_ver, + 't=s' => \$tool_ver, 'help' => \$show_help, ); @@ -153,7 +155,8 @@ sub main if (defined($show_help)) { print("USEAGE: -o=xxx Indicate the output path - -v=xxx Indicate the package version\n"); + -v=xxx Indicate the package version + -t=xxx Indicate the tool version\n"); exit(0); } @@ -173,6 +176,10 @@ sub main $pkg_ver="0.1.0" if (not defined($pkg_ver)); print("The pgk_ver: $pkg_ver\n"); + + $tool_ver="1.3.0" if (not defined($tool_ver)); + print("The tool_ver: $tool_ver\n"); + # build packages &build_base_pkg($outpath); @@ -183,7 +190,7 @@ sub main # pack into bz2 system("cd $outpath; tar -cvjf mediatek_linkit_7697-$pkg_ver.tar.bz2 mt7697; cd -"); - system("cd $outpath; tar -cvjf mediatek_linkit_7697_flash_tool-$pkg_ver.tar.bz2 flash_tool; cd -"); + system("cd $outpath; tar -cvjf mediatek_linkit_7697_flash_tool-$tool_ver.tar.bz2 flash_tool; cd -"); # TODO: my $package_json="middleware/third_party/arduino/build/package_mtk_linkit_7697_index.json";