toaruos/util/make_mbr.krk
2021-10-20 23:14:39 +09:00

9 lines
236 B
Plaintext

#!/usr/bin/env kuroko
from util import ISO
let image = ISO('image.iso')
let cdfile = image.get_file('/boot.sys')
print(f'--defsym BOOT_FILE_SIZE={cdfile.extent_length_lsb} --defsym BOOT_FILE_OFFSET={cdfile.extent_start_lsb * 2048}')