RT-Thread / RT-Thread/env

【建议】通过宏定义 SDK_AUTO_INSTALL_DEPENDENCY 实现依赖自动拉取

Open
#268 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
78
Forks
64
Avg merge
1d 2h
Merged PRs (30d)
7

Description

提出原因:
目前主仓bsp大部分都将驱动库抽离了出来,但是需要用户手动执行软件包拉取指令(虽然已经给出了提示,编译之前必须先执行软件包更新与拉取动作),但是还是很多用户不看提示

解决方案:
是不是可以考虑加个机制,比如说一个宏定义:SDK_AUTO_INSTALL_DEPEDENCY,由bsp的.config和rtconfig.h定义,env一旦识别到当前bsp使能该选项,则自动开启软件包依赖下载(pkgs --upgrade --force, pkgs --update)

当然后续如果需要扩展其他依赖项功能,都可以基于此去扩展

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.

Research direction

Start by tracing how env reads a BSP's .config and rtconfig.h, then inspect the existing pkgs --upgrade --force and pkgs --update entry points. The work is done when an enabled SDK_AUTO_INSTALL_DEPENDENCY option reliably triggers dependency retrieval while preserving current behavior when it is disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.