Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k #15

Open
wants to merge 2 commits into
base: kitkat
Choose a base branch
from
Open

k #15

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions releasetools/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,7 @@ def worker():
# map recovery.fstab's fs_types to mount/format "partition types"
PARTITION_TYPES = { "yaffs2": "MTD", "mtd": "MTD", "ext3": "EMMC",
"ext4": "EMMC", "emmc": "EMMC", "vfat": "EMMC",
"f2fs": "EMMC","bml": "BML",
"auto": "EMMC"}

def GetTypeAndDevice(mount_point, info):
Expand Down
5 changes: 5 additions & 0 deletions releasetools/edify_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ def WriteRawImage(self, mount_point, fn):
elif partition_type == "EMMC":
self.script.append(
'package_extract_file("%(fn)s", "%(device)s");' % args)
elif partition_type == "BML":
self.script.append(
('assert(package_extract_file("%(fn)s", "/tmp/%(device)s.img"),\n'
' write_raw_image("/tmp/%(device)s.img", "%(device)s"),\n'
' delete("/tmp/%(device)s.img"));') % args)
else:
raise ValueError("don't know how to write \"%s\" partitions" % (p.fs_type,))

Expand Down