Skip to content

Commit f5a7a25

Browse files
committed
downloadfiles: set initrd config for nand/nor
1 parent 8adf9bf commit f5a7a25

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

downloadfiles.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,13 @@ def getInitrdInfo():
272272
newconfig[replacement+"file"]=fname
273273
else: print("no bfiles defined!")
274274

275+
if device in ["spim-nand","nor"]:
276+
if ifiles:
277+
fname="rootfs_arm64.cpio.zst"
278+
if fname in ifiles:
279+
print(f"initrd-file: {fname}")
280+
download(ifiles.get(fname),fname)
281+
newconfig["initrd"]=fname
275282

276283
with open(conffile, 'w') as f:
277284
for d in newconfig:

0 commit comments

Comments
 (0)