diff --git a/.gitmodules b/.gitmodules index 370934c08..bb6b8eda3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "Ubiquitous/RT_Thread/rt-thread"] path = Ubiquitous/RT_Thread/rt-thread url = https://code.gitlink.org.cn/chunyexixiaoyu/rt-thread.git -[submodule "Ubiquitous/RT_Thread/bsp/k210/kendryte-sdk/kendryte-sdk-source"] +[submodule "Ubiquitous/RT_Thread/aiit_board/k210/kendryte-sdk/kendryte-sdk-source"] path = Ubiquitous/RT_Thread/aiit_board/k210/kendryte-sdk/kendryte-sdk-source url = https://code.gitlink.org.cn/chunyexixiaoyu/kendryte-sdk-source.git diff --git a/Ubiquitous/RT_Thread/README.md b/Ubiquitous/RT_Thread/README.md index c08ddec90..692d331b3 100644 --- a/Ubiquitous/RT_Thread/README.md +++ b/Ubiquitous/RT_Thread/README.md @@ -27,8 +27,12 @@ Rt-thread/rt-thread 使用 RT-Thread 作为系统基础设施,提供底层支 运行以下指令下载代码、编译运行: ``` -# 进入xiuos目录下载更新子模块(包括RT-thread 和 K210 SDK) -git submodule update --init --recursive +# 下载代码 +# 进入xiuos目录下载更新子模块(包括RT-thread 和 K210 SDK(如果用到K210 需更新kendryte-sdk))执行以下三条命令或者直接执行当前目录下的download.sh脚本命令 +git submodule init +git submodule update Ubiquitous/RT_Thread/rt-thread +git submodule update Ubiquitous/RT_Thread/aiit_board/k210/kendryte-sdk/kendryte-sdk-source + # 进入 xiuos/Ubiquitous/Rt-thread/aiit_board/stm32f407_core 配置 Kconfig scons --menuconfig # 编译 @@ -40,4 +44,3 @@ st-flash write rtthread.bin 0x8000000 同时也可以支持windows开发环境进行上述命令进行编译,需安装env插件,详细介绍可以参照[rt-thread官方资料](https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/application-note/setup/standard-project/an0017-standard-project?id=%e4%bd%bf%e7%94%a8-env-%e5%88%9b%e5%bb%ba-rt-thread-%e9%a1%b9%e7%9b%ae%e5%b7%a5%e7%a8%8b )。 - diff --git a/Ubiquitous/RT_Thread/build.sh b/Ubiquitous/RT_Thread/build.sh new file mode 100644 index 000000000..6be5951ba --- /dev/null +++ b/Ubiquitous/RT_Thread/build.sh @@ -0,0 +1,6 @@ +#切换到root目录 +cd ../../ +echo $(pwd) +git submodule init +git submodule update Ubiquitous/RT_Thread/rt-thread +git submodule update Ubiquitous/RT_Thread/aiit_board/k210/kendryte-sdk/kendryte-sdk-source \ No newline at end of file