From f6272a2661b3c19d16378468c515b7026cb1f3da Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 25 Oct 2025 01:09:54 +0000 Subject: [PATCH 1/4] Initial plan From 30be0be69027995bb057f93d566838f41aabc49b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 25 Oct 2025 01:17:02 +0000 Subject: [PATCH 2/4] Update kconfiglib to use sysprog21/Kconfiglib fork Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com> --- .github/workflows/utest_auto_run.yml | 2 +- bsp/qemu-vexpress-a9/.config | 8 ++++++++ bsp/qemu-vexpress-a9/rtconfig.h | 4 ++++ tools/requirements.txt | 2 +- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/utest_auto_run.yml b/.github/workflows/utest_auto_run.yml index 107b1b3fe6c..4140dd19dc0 100644 --- a/.github/workflows/utest_auto_run.yml +++ b/.github/workflows/utest_auto_run.yml @@ -91,7 +91,7 @@ jobs: run: | sudo apt-get update sudo apt-get -yqq install scons qemu-system git - pip3 install kconfiglib + pip3 install git+https://github.com/sysprog21/Kconfiglib - name: Install ToolChains shell: bash diff --git a/bsp/qemu-vexpress-a9/.config b/bsp/qemu-vexpress-a9/.config index 67eb2636e1f..ad4825bdf53 100644 --- a/bsp/qemu-vexpress-a9/.config +++ b/bsp/qemu-vexpress-a9/.config @@ -742,6 +742,7 @@ CONFIG_RT_PAGE_MAX_ORDER=11 # CONFIG_PKG_USING_RVBACKTRACE is not set # CONFIG_PKG_USING_HPATCHLITE is not set # CONFIG_PKG_USING_THREAD_METRIC is not set +# CONFIG_PKG_USING_UORB is not set # end of tools packages # @@ -836,6 +837,7 @@ CONFIG_RT_PAGE_MAX_ORDER=11 # CONFIG_PKG_USING_R_RHEALSTONE is not set # CONFIG_PKG_USING_HEARTBEAT is not set # CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set +# CONFIG_PKG_USING_CHERRYECAT is not set # end of system packages # @@ -992,6 +994,12 @@ CONFIG_RT_PAGE_MAX_ORDER=11 # CONFIG_PKG_USING_GD32_ARM_CMSIS_DRIVER is not set # CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER is not set # end of GD32 Drivers + +# +# HPMicro SDK +# +# CONFIG_PKG_USING_HPM_SDK is not set +# end of HPMicro SDK # end of HAL & SDK Drivers # diff --git a/bsp/qemu-vexpress-a9/rtconfig.h b/bsp/qemu-vexpress-a9/rtconfig.h index 8125bcebd16..1a74668b660 100644 --- a/bsp/qemu-vexpress-a9/rtconfig.h +++ b/bsp/qemu-vexpress-a9/rtconfig.h @@ -418,6 +418,10 @@ /* GD32 Drivers */ /* end of GD32 Drivers */ + +/* HPMicro SDK */ + +/* end of HPMicro SDK */ /* end of HAL & SDK Drivers */ /* sensors drivers */ diff --git a/tools/requirements.txt b/tools/requirements.txt index 33b60c4c741..fe0d7a1115b 100644 --- a/tools/requirements.txt +++ b/tools/requirements.txt @@ -1,5 +1,5 @@ scons>=4.0.1 requests>=2.27.1 tqdm>=4.67.1 -kconfiglib>=13.7.1 +kconfiglib @ git+https://github.com/sysprog21/Kconfiglib PyYAML>=6.0 \ No newline at end of file From 32afa64f94f13afe095fc113e19c8b06a60a65f1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 25 Oct 2025 01:19:02 +0000 Subject: [PATCH 3/4] Update BSP documentation to use sysprog21/Kconfiglib Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com> --- bsp/k230/README.md | 4 ++-- bsp/ultrarisc/ur_dp1000_evb/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bsp/k230/README.md b/bsp/k230/README.md index f6f29066f51..64c8f60e041 100644 --- a/bsp/k230/README.md +++ b/bsp/k230/README.md @@ -73,10 +73,10 @@ $ sudo apt install -y scons python3-pip u-boot-tools patch ### 3.2.2. 一些 python 软件包 -因为本 BSP 只在 RT-Thread v5.1.0 以上才支持,所以需要确保本地已经安装过 kconfiglib。采用清华源是为了加快安装速度。 +因为本 BSP 只在 RT-Thread v5.1.0 以上才支持,所以需要确保本地已经安装过 kconfiglib。 ```shell -$ pip3 install kconfiglib -i https://pypi.tuna.tsinghua.edu.cn/simple +$ pip3 install git+https://github.com/sysprog21/Kconfiglib ``` 另外还需要一些软件包用于 rttpkgtool 打包。 diff --git a/bsp/ultrarisc/ur_dp1000_evb/README.md b/bsp/ultrarisc/ur_dp1000_evb/README.md index 017b3cdbf58..9c080169b97 100644 --- a/bsp/ultrarisc/ur_dp1000_evb/README.md +++ b/bsp/ultrarisc/ur_dp1000_evb/README.md @@ -51,7 +51,7 @@ export RTT_CC_PREFIX=riscv64-unknown-linux-musl- ```shell sudo apt install scons python3-pip -pip install kconfiglib +pip install git+https://github.com/sysprog21/Kconfiglib ``` ### 4.2.3. 编译 From 1eb8eda923db26b3644aa6769f5a3411d8ac7c12 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 25 Oct 2025 01:23:48 +0000 Subject: [PATCH 4/4] Add installation speed optimization note for Chinese users Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com> --- bsp/k230/README.md | 2 ++ bsp/ultrarisc/ur_dp1000_evb/README.md | 3 +++ 2 files changed, 5 insertions(+) diff --git a/bsp/k230/README.md b/bsp/k230/README.md index 64c8f60e041..8f6656804d6 100644 --- a/bsp/k230/README.md +++ b/bsp/k230/README.md @@ -79,6 +79,8 @@ $ sudo apt install -y scons python3-pip u-boot-tools patch $ pip3 install git+https://github.com/sysprog21/Kconfiglib ``` +注意:如果下载速度较慢,可以使用 git 代理或设置 pip 镜像源来加速安装。 + 另外还需要一些软件包用于 rttpkgtool 打包。 ```shell diff --git a/bsp/ultrarisc/ur_dp1000_evb/README.md b/bsp/ultrarisc/ur_dp1000_evb/README.md index 9c080169b97..56c4a6b75c6 100644 --- a/bsp/ultrarisc/ur_dp1000_evb/README.md +++ b/bsp/ultrarisc/ur_dp1000_evb/README.md @@ -53,6 +53,9 @@ export RTT_CC_PREFIX=riscv64-unknown-linux-musl- sudo apt install scons python3-pip pip install git+https://github.com/sysprog21/Kconfiglib ``` + +注意:如果下载速度较慢,可以使用 git 代理或设置 pip 镜像源来加速安装。 + ### 4.2.3. 编译 ```shell