diff --git a/SmartL_E802/README.md b/SmartL_E802/README.md index 0725675de876536ea815d5dc7ed957ec844edf9c..6885fbe3e9f8ec70990dff8ba3dc4b04c8061d1d 100644 --- a/SmartL_E802/README.md +++ b/SmartL_E802/README.md @@ -8,13 +8,7 @@ QEMU can simulate the kernel to run on different boards, freeing the dependence 1. Set up the Compilation tool chain - Tip: Users can also skip this step by using the following instructions directly to use the compiler configured in the default environment. - - To use the default environment, execute '3.Get source code' and then install the default compiler in the root directory by executing the following instructions. - - ```shell - sh build/prebuilts_download.sh - ``` + Note: [Downloadable directly](https://repo.huaweicloud.com/openharmony/compiler/gcc_csky/v3.10.29/linux/csky-v3.10.29.tar.gz) Optional compiler installation process: @@ -39,20 +33,6 @@ QEMU can simulate the kernel to run on different boards, freeing the dependence source ~/.bashrc ``` - d) Delete the default compiler path: - - change SmartL_E802\liteos_m\config.gni: - - ```c - board_toolchain_path = "$ohos_root_path/prebuilts/gcc/linux-x86/csky/csky/bin" - ``` - - to - - ```c - board_toolchain_path = "" - ``` - 2. Install qemu a) create `csky_qemu` folder and enter it diff --git a/SmartL_E802/README_zh.md b/SmartL_E802/README_zh.md index 6c83129fb2db23698c783884a6b123b1d22800f2..295cef034781fc66808c226e697e6cf202559b95 100644 --- a/SmartL_E802/README_zh.md +++ b/SmartL_E802/README_zh.md @@ -8,13 +8,7 @@ QEMU可以模拟内核运行在不同的单板,解除对物理开发板的依 1. 编译工具链安装 - 提示:用户也可以直接使用下列指令来使用默认环境中配置好的编译器,跳过该步骤。 - - 若要使用默认环境请先执行 '3.获取源码' ,然后在根目录下执行下列指令安装默认编译器。 - - ```shell - sh build/prebuilts_download.sh - ``` + 提示: [可直接下载](https://repo.huaweicloud.com/openharmony/compiler/gcc_csky/v3.10.29/linux/csky-v3.10.29.tar.gz) 可选的编译器安装流程: @@ -39,20 +33,6 @@ QEMU可以模拟内核运行在不同的单板,解除对物理开发板的依 source ~/.bashrc ``` - d) 删除默认的编译器路径: - - 修改SmartL_E802\liteos_m\config.gni: - - ```c - board_toolchain_path = "$ohos_root_path/prebuilts/gcc/linux-x86/csky/csky/bin" - ``` - - 改为 - - ```c - board_toolchain_path = "" - ``` - 2. qemu安装 a) 创建`csky_qemu`文件夹并进入 diff --git a/SmartL_E802/liteos_m/config.gni b/SmartL_E802/liteos_m/config.gni index a1d0c2a3443652baf95699d860b482302b4b4543..a9329643fe9992c0de0b78a39e40ad1ed419cba2 100644 --- a/SmartL_E802/liteos_m/config.gni +++ b/SmartL_E802/liteos_m/config.gni @@ -29,7 +29,7 @@ board_arch = "ck802" board_toolchain = "csky-elfabiv2-gcc" # The toolchain path instatlled, it's not mandatory if you have added toolchian path to your ~/.bashrc. -board_toolchain_path = "$ohos_root_path/prebuilts/gcc/linux-x86/csky/csky/bin" +board_toolchain_path = "" # Compiler prefix. board_toolchain_prefix = "csky-elfabiv2-" diff --git a/esp32/README.md b/esp32/README.md index 9549d5590600be3b7e98424b0d54a5fa3047b800..a3b159875d67b4e52cbf32b5cabc8535d5a1271c 100644 --- a/esp32/README.md +++ b/esp32/README.md @@ -14,13 +14,7 @@ QEMU can simulate the kernel to run on different boards ,eliminate dependence on Annotation: If you skip the installation of esp-idf, you can install the toolchain as follows: - Tip: Users can also skip this step by using the following instructions directly to use the compiler configured in the default environment. - - To use the default environment, execute '3.Get source code' and then install the default compiler in the root directory by executing the following instructions. - - ```shell - sh build/prebuilts_download.sh - ``` + Note: [Downloadable directly](https://repo.huaweicloud.com/openharmony/compiler/gcc_esp/2019r2-8.2.0/linux/esp-2019r2-8.2.0.zip) Optional compiler installation process: @@ -35,20 +29,6 @@ QEMU can simulate the kernel to run on different boards ,eliminate dependence on . ./export.sh ``` - c) Delete the default compiler path: - - change esp32\liteos_m\config.gni: - - ```c - board_toolchain_path = "$ohos_root_path/prebuilts/gcc/linux-x86/esp/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/" - ``` - - to - - ```c - board_toolchain_path = "" - ``` - Annotation: The version of the toolchain used in the test is GCC Version 8.2.0 (Crosstool-ng ESP-2019R2) or GCC Version 8.4.0 (Crosstool-ng ESP-2021R1). 2. Install esptool diff --git a/esp32/README_zh.md b/esp32/README_zh.md index 7879768ccbbe33c1e3545adb7b0ee0b64274d82b..0c1921d7c5f151ffb737e89775eebfadcd099bdd 100644 --- a/esp32/README_zh.md +++ b/esp32/README_zh.md @@ -14,13 +14,7 @@ QEMU可以模拟内核运行在不同的单板,解除对物理开发板的依 注:若跳过安装esp-idf可以按照下列方式安装工具链: - 提示:用户也可以直接使用下列指令来使用默认环境中配置好的编译器,跳过该步骤。 - - 若要使用默认环境请先执行 '3.获取源码' ,然后在根目录下执行下列指令安装默认编译器。 - - ```shell - sh build/prebuilts_download.sh - ``` + 提示:[可直接下载](https://repo.huaweicloud.com/openharmony/compiler/gcc_esp/2019r2-8.2.0/linux/esp-2019r2-8.2.0.zip) 可选的编译器安装流程: @@ -35,20 +29,6 @@ QEMU可以模拟内核运行在不同的单板,解除对物理开发板的依 . ./export.sh ``` - c) 删除默认的编译器路径: - - 修改esp32\liteos_m\config.gni: - - ```c - board_toolchain_path = "$ohos_root_path/prebuilts/gcc/linux-x86/esp/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/" - ``` - - 改为 - - ```c - board_toolchain_path = "" - ``` - 注:本教程使用的工具链版本为gcc version 8.2.0 (crosstool-NG esp-2019r2)或gcc version 8.4.0 (crosstool-NG esp-2021r1) 2. esptool安装 diff --git a/esp32/liteos_m/config.gni b/esp32/liteos_m/config.gni index 3648fe3f20610da215b72f2b18261db013343c0d..13726e73966bd7a4c37af614a109106224f10f17 100644 --- a/esp32/liteos_m/config.gni +++ b/esp32/liteos_m/config.gni @@ -32,7 +32,7 @@ board = "esp32" board_toolchain = "xtensa-esp32-elf-gcc" # The toolchain path instatlled, it's not mandatory if you have added toolchian path to your ~/.bashrc. -board_toolchain_path = "$ohos_root_path/prebuilts/gcc/linux-x86/esp/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/" +board_toolchain_path = "" # Compiler prefix. board_toolchain_prefix = "xtensa-esp32-elf-"