RT-Thread / RT-Thread/rt-thread
[Feature] __RT_KERNEL_SOURCE__宏所在的位置是不是有些不合理?
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 12.2k
- Forks
- 5.4k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 40
Description
Describe problem solved by the proposed feature
不是太理解为什么要将这个__RT_KERNEL_SOURCE__宏放置到每个单独文件的选项设置框里。
有个内核文件不小心从工程中移除了,再手动添加该文件就开始报错,找了好久最后使用env重刷工程才恢复正常,经过对比才发现有这个宏存在。手动添加文件后,还要在文件单独选项设置框里添加__RT_KERNEL_SOURCE__
Describe your preferred solution
No response
Describe possible alternatives
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining where the RT_KERNEL_SOURCE macro is stored in each kernel file's individual project settings and how env-based project regeneration restores it. Determine and document an agreed macro location or configuration behavior so a removed and manually re-added kernel file builds without requiring a per-file manual setting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot, operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100