Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 11, 2025

拉取/合并请求描述:(PR description)

为什么提交这份PR (why to submit this PR)

当前基础系统(Kernel, shell, libc/posix, file system, network stack, device subsystem)的Group划分显得很乱,很随意,需要对这些Group划分进行整理,变得简单清晰。Group名称会在一些IDE中作为分类组出现,因此需要简洁、分类清晰、条理清晰。

你的解决方案是什么 (what is your solution)

统一规范化基础系统的Group命名:

基础系统组重命名:

  • klibcLibc (kernel libc, 1个文件)
  • libcpuCPU (所有CPU架构, 56个文件)
  • mmMemm (内存管理, 1个文件)
  • POSIXLibc (POSIX接口, 15个文件)
  • CompilerLibc (编译器支持, 9个文件)

设备驱动统一化:

  • ktimeDeviceDrivers (1个文件)
  • CherryUSBUsbStack (1个文件,USB协议栈独立分组)
  • components/drivers下其他组件已使用 DeviceDrivers (48个文件)

影响范围:

  • 共修改84个SConscript文件
  • 仅修改 DefineGroup() 的字符串参数,无功能性改变
  • 纯组织结构优化

重组后的Group结构:

  • Kernel层: Libc, Kernel
  • CPU支持: CPU
  • 内存管理: Memm
  • 设备驱动: DeviceDrivers
  • USB协议栈: UsbStack
  • 文件系统: Filesystem
  • 网络协议栈: lwIP, SAL, AT

请提供验证的bsp和config (provide the config and bsp)

  • BSP: bsp/qemu-virt64-aarch64

  • .config: 默认配置

  • action: 构建系统dry-run测试通过

当前拉取/合并请求的状态 Intent for your PR

必须选择一项 Choose one (Mandatory):

  • 本拉取/合并请求是一个草稿版本 This PR is for a code-review and is intended to get feedback
  • 本拉取/合并请求是一个成熟版本 This PR is mature, and ready to be integrated into the repo

代码质量 Code Quality:

我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:

  • 已经仔细查看过代码改动的对比 Already check the difference between PR and old code
  • 代码风格正确,包括缩进空格,命名及其他风格 Style guide is adhered to, including spacing, naming and other styles
  • 没有垃圾代码,代码尽量精简,不包含#if 0代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up
  • 所有变更均有原因及合理的,并且不会影响到其他软件组件代码或BSP All modifications are justified and not affect other components or BSP
  • 对难懂代码均提供对应的注释 I've commented appropriately where code is tricky
  • 代码是高质量的 Code in this PR is of high quality
  • 已经使用formatting 等源码格式化工具确保格式符合RT-Thread代码规范 This PR complies with RT-Thread code specification

Fixes #10904

Original prompt

This section details on the original issue you should resolve

<issue_title>[Feature] 对基础系统的Group进行整理</issue_title>
<issue_description>### Describe problem solved by the proposed feature

当前基础系统(Kernel, shell, libc/posix, file system, network stack, device subsystem)的Group划分显得很乱,很随意,需要对这些Group划分进行整理,变得简单清晰。

  • klibc 统一变更成Libc;如涉及到POSIX的,也统一变更成 Libc
  • libcpu 统一变更成 CPU
  • mm 统一变更成 Memm
  • components/drivers 下的 Group 都统一成 DeviceDrivers

Describe your preferred solution

No response

Describe possible alternatives

No response</issue_description>

<agent_instructions>给出建议的方式,希望Group名称简洁,分类清晰,条理清晰。<因为Group名称也会在一些IDE中做为分类组而出现></agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI and others added 2 commits November 11, 2025 20:56
…iler→Libc

Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>
Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor groups for basic system organization Reorganize Group names in build system for clarity and IDE integration Nov 11, 2025
Copilot AI requested a review from BernardXiong November 11, 2025 21:01
Copilot finished work on behalf of BernardXiong November 11, 2025 21:01
@github-actions github-actions bot added Kernel PR has src relate code Arch: RISC-V BSP related with risc-v Arch: ARM/AArch64 BSP related with arm libcpu labels Nov 11, 2025
@github-actions
Copy link

github-actions bot commented Nov 11, 2025

📌 Code Review Assignment

🏷️ Tag: components

Reviewers: Maihuanyi

Changed Files (Click to expand)
  • components/drivers/ktime/SConscript
  • components/drivers/usb/cherryusb/SConscript
  • components/libc/compilers/armlibc/SConscript
  • components/libc/compilers/common/SConscript
  • components/libc/compilers/common/extension/SConscript
  • components/libc/compilers/common/extension/fcntl/msvc/SConscript
  • components/libc/compilers/common/extension/fcntl/octal/SConscript
  • components/libc/compilers/dlib/SConscript
  • components/libc/compilers/musl/SConscript
  • components/libc/compilers/newlib/SConscript
  • components/libc/compilers/picolibc/SConscript
  • components/libc/posix/delay/SConscript
  • components/libc/posix/io/aio/SConscript
  • components/libc/posix/io/epoll/SConscript
  • components/libc/posix/io/eventfd/SConscript
  • components/libc/posix/io/mman/SConscript
  • components/libc/posix/io/poll/SConscript
  • components/libc/posix/io/signalfd/SConscript
  • components/libc/posix/io/stdio/SConscript
  • components/libc/posix/io/termios/SConscript
  • components/libc/posix/io/timerfd/SConscript
  • components/libc/posix/ipc/SConscript
  • components/libc/posix/libdl/SConscript
  • components/libc/posix/pthreads/SConscript
  • components/libc/posix/signal/SConscript
  • components/libc/posix/tls/SConscript
  • components/mm/SConscript

🏷️ Tag: components_libc

Reviewers: GorrayLi mysterywolf

Changed Files (Click to expand)
  • components/libc/compilers/armlibc/SConscript
  • components/libc/compilers/common/SConscript
  • components/libc/compilers/common/extension/SConscript
  • components/libc/compilers/common/extension/fcntl/msvc/SConscript
  • components/libc/compilers/common/extension/fcntl/octal/SConscript
  • components/libc/compilers/dlib/SConscript
  • components/libc/compilers/musl/SConscript
  • components/libc/compilers/newlib/SConscript
  • components/libc/compilers/picolibc/SConscript
  • components/libc/posix/delay/SConscript
  • components/libc/posix/io/aio/SConscript
  • components/libc/posix/io/epoll/SConscript
  • components/libc/posix/io/eventfd/SConscript
  • components/libc/posix/io/mman/SConscript
  • components/libc/posix/io/poll/SConscript
  • components/libc/posix/io/signalfd/SConscript
  • components/libc/posix/io/stdio/SConscript
  • components/libc/posix/io/termios/SConscript
  • components/libc/posix/io/timerfd/SConscript
  • components/libc/posix/ipc/SConscript
  • components/libc/posix/libdl/SConscript
  • components/libc/posix/pthreads/SConscript
  • components/libc/posix/signal/SConscript
  • components/libc/posix/tls/SConscript

📊 Current Review Status (Last Updated: 2025-11-12 05:14 CST)

  • GorrayLi Pending Review
  • Maihuanyi Pending Review
  • mysterywolf Pending Review

📝 Review Instructions

  1. 维护者可以通过单击此处来刷新审查状态: 🔄 刷新状态
    Maintainers can refresh the review status by clicking here: 🔄 Refresh Status

  2. 确认审核通过后评论 LGTM/lgtm
    Comment LGTM/lgtm after confirming approval

  3. PR合并前需至少一位维护者确认
    PR must be confirmed by at least one maintainer before merging

ℹ️ 刷新CI状态操作需要具备仓库写入权限。
ℹ️ Refresh CI status operation requires repository Write permission.

src += Glob('platform/rtthread/usb_check.c')

group = DefineGroup('CherryUSB', src, depend = ['RT_USING_CHERRYUSB'], LIBS = LIBS, LIBPATH=LIBPATH, CPPPATH = path, CPPDEFINES = CPPDEFINES)
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_CHERRYUSB'], LIBS = LIBS, LIBPATH=LIBPATH, CPPPATH = path, CPPDEFINES = CPPDEFINES)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot CherryUSB部分更改成UsbStack

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed CherryUSB group to UsbStack in bb1688f.

Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>
Copilot AI requested a review from BernardXiong November 11, 2025 21:13
Copilot finished work on behalf of BernardXiong November 11, 2025 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] 对基础系统的Group进行整理

3 participants