
Introduce a new environment variable CENGN_STRATEGY to control download sources, 4 choices: cengn: download from CENGN only cengn_first: download from CENGN first, then upstream upstream: download from upstream only upsream_first: download from upstream first, then CENGN default value is "cengn_first" download_mirror_upstream() return the right url based on the CENGN_STRATEGY. url_to_cengn() converts an upstream url to CENGN url. Test Plan: Pass: verify download -s with "upstream" Pass: verify download -s with "cengn" Pass: verify download -s with "cengn_first", if set wrong CENGN url, download from upstream Pass: verify download -s with "upstream_first", if set wrong upstream url, download from CENGN Story: 2008846 Task: 43138 Signed-off-by: Yue Tao <yue.tao@windriver.com> Change-Id: I8a1f7cf956ac0da9684aa593870ceba322272531
Description
StarlingX build source tree root
Languages
Python
62%
Shell
36.9%
BitBake
0.6%
Dockerfile
0.5%