mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 09:44:13 +00:00
tools/chainload.py: Add --quiet arg to suppress FB
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
f590ef73d0
commit
9fab740a77
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,7 @@ sys.path.append(str(pathlib.Path(__file__).resolve().parents[1]))
|
||||||
import argparse, pathlib, time
|
import argparse, pathlib, time
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='Mach-O loader for m1n1')
|
parser = argparse.ArgumentParser(description='Mach-O loader for m1n1')
|
||||||
|
parser.add_argument('-q', '--quiet', action="store_true", help="Disable framebuffer")
|
||||||
parser.add_argument('-x', '--xnu', action="store_true", help="Load XNU")
|
parser.add_argument('-x', '--xnu', action="store_true", help="Load XNU")
|
||||||
parser.add_argument('-c', '--call', action="store_true", help="Use call mode")
|
parser.add_argument('-c', '--call', action="store_true", help="Use call mode")
|
||||||
parser.add_argument('payload', type=pathlib.Path)
|
parser.add_argument('payload', type=pathlib.Path)
|
||||||
|
@ -27,6 +28,9 @@ entry = macho.entry
|
||||||
entry -= macho.vmin
|
entry -= macho.vmin
|
||||||
entry += new_base
|
entry += new_base
|
||||||
|
|
||||||
|
if args.quiet:
|
||||||
|
p.iodev_set_usage(IODEV.FB, 0)
|
||||||
|
|
||||||
if args.xnu:
|
if args.xnu:
|
||||||
sepfw_start, sepfw_length = u.adt["chosen"]["memory-map"].SEPFW
|
sepfw_start, sepfw_length = u.adt["chosen"]["memory-map"].SEPFW
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue