RT-Thread / RT-Thread/rt-thread

[Feature] __RT_KERNEL_SOURCE__宏所在的位置是不是有些不合理?

Open
#9,380 1 comment 0 reactions 0 assignees View on GitHub

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__
image

Describe your preferred solution

No response

Describe possible alternatives

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.