RT-Thread / RT-Thread/packages
misc/autogen_parameter_manager/Kconfig 中的 select RT_USING_HEAP、select RT_USING_CAN 应删除
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 252
- Forks
- 358
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 13
Description
问题描述
autogen_parameter_manager 软件包的索引条目 misc/autogen_parameter_manager/Kconfig 中,包开关定义处带了两条多余的
select:
kconfig
menuconfig PKG_USING_AUTOGEN_PARAMETER_MANAGER
bool "autogen_parameter_manager: parameter table management library"
default n
select RT_USING_HEAP # ← 建议删除
select RT_USING_CAN # ← 建议删除
help
RT-Thread package wrapper for autogen_parameter_manager.
证据
- 实际包源码并没有这两条 select:autogen 的源码仓库 https://github.com/wdfk-prog/parameters 中,其 Kconfig 顶层只
select RT_USING_MUTEX - 带来的实际影响:
- 在 menuconfig 中勾选本包会强制勾选 CAN 设备框架(RT_USING_CAN),即使目标 BSP 根本没启用 CAN 外设(无
BSP_USING_CANx、HAL 未使能 HAL_CAN_MODULE_ENABLED),编译时 HAL_Drivers 仍会编译 drv_can.c,报 unknown type name
'CAN_HandleTypeDef',导致编译失败——而本包本身并不需要 CAN。
- 在 menuconfig 中勾选本包会强制勾选 CAN 设备框架(RT_USING_CAN),即使目标 BSP 根本没启用 CAN 外设(无
Contributor guide
No contributing guide indexed for this repository
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
Open misc/autogen_parameter_manager/Kconfig and compare its package definition with the upstream Kconfig described in the issue. Remove the unnecessary RT_USING_HEAP and RT_USING_CAN selections, then verify in menuconfig that enabling the package no longer forces those options and that the affected configuration can build without CAN support.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 88/100