Skip to content

Commit

Permalink
Update run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yeliqin666 authored Jun 8, 2024
1 parent aff5eaf commit 6ed7262
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ def packChoo(project):
if types[f] == 'bootimg':
dboot(project + os.sep + parts[f], project + os.sep + parts[f] + ".img")
elif types[f] == 'dtb':
makedtb(project + os.sep + parts[f], project)
makedtb(parts[f], project)
elif types[f] == 'dtbo':
makedtbo(parts[f], project)
else:
Expand All @@ -1196,7 +1196,7 @@ def packChoo(project):
if types[f] == 'bootimg':
dboot(project + os.sep + parts[f], project + os.sep + parts[f] + ".img")
elif types[f] == 'dtb':
makedtb(project + os.sep + parts[f], project)
makedtb(parts[f], project)
elif types[f] == 'dtbo':
makedtbo(parts[f], project)
else:
Expand Down Expand Up @@ -1227,7 +1227,7 @@ def packChoo(project):
if types[int(filed)] == 'bootimg':
dboot(project + os.sep + parts[int(filed)], project + os.sep + parts[int(filed)] + ".img")
elif types[int(filed)] == 'dtb':
makedtb(project + os.sep + parts[int(filed)], project)
makedtb(parts[int(filed)], project)
elif types[int(filed)] == 'dtbo':
makedtbo(parts[int(filed)], project)
else:
Expand Down Expand Up @@ -1343,7 +1343,7 @@ def undtb(project, infile):
call(
f'dtc -@ -I dtb -O dts {dtb} -o {dts}',
out=1)
open(project + os.sep + os.sep + "config" + os.sep + "dtbinfo_" + os.path.basename(infile).split(".")[0] + "_dtbs", 'w').close()
open(project + os.sep + os.sep + "config" + os.sep + "dtbinfo_" + os.path.basename(infile).split(".")[0], 'w').close()
ysuc("反编译完成!")
time.sleep(1)

Expand Down

0 comments on commit 6ed7262

Please sign in to comment.