misc/autogen_parameter_manager/Kconfig 中的 select RT_USING_HEAP、select RT_USING_CAN 应删除

Open Beginner friendly
#2,035 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Domain
build-system

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.

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.

证据

  1. 实际包源码并没有这两条 select:autogen 的源码仓库 https://github.com/wdfk-prog/parameters 中,其 Kconfig 顶层只
    select RT_USING_MUTEX
  2. 带来的实际影响:
    • 在 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。
Dominant language
Python
Stars
252
Forks
358
Avg merge
1d 13h
Merged PRs (30d)
13

Contributor guide

No contributing guide indexed for this repository

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.

More from RT-Thread/packages

All issues in RT-Thread/packages

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.