From fba962ef115761c9e9129d44d88351f3dddcbe46 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 8 Oct 2021 12:32:23 -0700 Subject: [PATCH] kern: clean up mesosphere buildscript --- mesosphere/build_mesosphere.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mesosphere/build_mesosphere.py b/mesosphere/build_mesosphere.py index f5fb44fc8..ed85e3282 100644 --- a/mesosphere/build_mesosphere.py +++ b/mesosphere/build_mesosphere.py @@ -30,16 +30,16 @@ def main(argc, argv): embedded_ini = f.read() except: pass - embedded_ini_offset = align_up(kernel_end, 0x1000) + 0x1000 + embedded_ini_offset = align_up(kernel_end, 0x1000) embedded_ini_end = embedded_ini_offset + len(embedded_ini) # TODO: Create and embed an INI, eventually. - kernel_ldr_offset = align_up(embedded_ini_end, 0x1000) + 0x1000 + kernel_ldr_offset = align_up(embedded_ini_end, 0x1000) + (0x1000 if len(embedded_ini) == 0 else 0) kernel_ldr_end = kernel_ldr_offset + len(kernel_ldr) mesosphere_end = align_up(kernel_ldr_end, 0x1000) with open(argv[3], 'wb') as f: f.write(kernel[:kernel_metadata_offset + 4]) - f.write(pk('