Skip to content

Commit

Permalink
Merge pull request #8 from zhlhlf/master
Browse files Browse the repository at this point in the history
更改打包逻辑 将从002_DNA中匹配通用的super分区镜像
  • Loading branch information
zhlhlf authored Apr 6, 2024
2 parents a43dbb9 + dd54906 commit 527ae8e
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions cyrus.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,18 +552,20 @@ def patch_addons():


def repack_super():
infile = glob(V.DNA_CONF_DIR + '*_contexts.txt')
if not infile:
parts = [
'system',
'system_ext',
'product',
'vendor',
'odm']
else:
parts = []
parts_1 = [
'system',
'system_ext',
'product',
'vendor',
'odm',
"vendor_dlmk",
"my_"
]
parts = []
for i in parts_1:
infile = glob(V.DNA_DIST_DIR + i+'*'+'.img')
for file in infile:
parts.append(os.path.basename(file).rsplit('_', 1)[0])
parts.append(os.path.basename(file).rsplit('.', 1)[0])
argvs = f'lpmake --metadata-size 65536 --super-name super --device super:{V.SETUP_MANIFEST["SUPER_SIZE"]}:{int(V.SETUP_MANIFEST["SUPER_SECTOR"]) * 512} '
if V.SETUP_MANIFEST['IS_VAB'] == '1':
argvs += '--metadata-slots 3 --virtual-ab -F '
Expand Down

0 comments on commit 527ae8e

Please sign in to comment.