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

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

Nobody has claimed this yet.

Assessment

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

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.

Description

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

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

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

Dominant language
Python
Stars
79
Forks
64
Avg merge
4d 2h
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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/env

All issues in RT-Thread/env

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.