Skip to content

Commit 5e942b3

Browse files
committed
downloadfiles: add variant to change uEnv.txt
should be one of - bpi-r3-mini - bpi-r4-2g5 - bpi-r4-pro - bpi-r4-lite
1 parent a8bb620 commit 5e942b3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

downloadfiles.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def read_settings(infile):
3333
config[key]=value.replace("\n", "")
3434
return config
3535

36-
config=None
36+
config={}
3737
conffile='sourcefiles_'+board+'.conf'
3838
if os.path.isfile(conffile):
3939
config=read_settings(conffile)
@@ -216,6 +216,8 @@ def getInitrdInfo():
216216
else: print(f"{board} not found in ubootfiles")
217217

218218
newconfig={}
219+
newconfig["variant"]=config.get("variant","")
220+
219221
if config and config.get("skipubootdownload"):
220222
newconfig["skipubootdownload"]=config.get("skipubootdownload")
221223
newconfig["imgfile"]=config.get("imgfile","")

0 commit comments

Comments
 (0)