mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2024-11-26 08:49:50 +00:00
Merge branch 'master' of github.com:robmcmullen/atrcopy
This commit is contained in:
commit
0a8cd454b5
@ -253,9 +253,12 @@ def assemble(image, source_files, data_files, obj_files, run_addr=""):
|
|||||||
def boot_image(image_name, source_files, data_files, obj_files, run_addr=""):
|
def boot_image(image_name, source_files, data_files, obj_files, run_addr=""):
|
||||||
image_cls = parsers_for_filename(image_name)[0]
|
image_cls = parsers_for_filename(image_name)[0]
|
||||||
segments, run_addr = assemble_segments(source_files, data_files, obj_files, run_addr)
|
segments, run_addr = assemble_segments(source_files, data_files, obj_files, run_addr)
|
||||||
image = image_cls.create_boot_image(segments, run_addr)
|
if segments:
|
||||||
print("saving boot disk %s" % (image_name))
|
image = image_cls.create_boot_image(segments, run_addr)
|
||||||
image.save(image_name)
|
print("saving boot disk %s" % (image_name))
|
||||||
|
image.save(image_name)
|
||||||
|
else:
|
||||||
|
print("No segments to save to boot disk")
|
||||||
|
|
||||||
|
|
||||||
def shred_image(image, value=0):
|
def shred_image(image, value=0):
|
||||||
|
Loading…
Reference in New Issue
Block a user