From 0353c52c9dd05e0dcd2b092320b3bd90287325d1 Mon Sep 17 00:00:00 2001 From: Jeffrey Townsend Date: Wed, 9 Nov 2016 22:23:16 +0000 Subject: [PATCH] Make boot-config files optional. --- tools/mkinstaller.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/mkinstaller.py b/tools/mkinstaller.py index 36d7b2ae..e3945bd2 100755 --- a/tools/mkinstaller.py +++ b/tools/mkinstaller.py @@ -166,7 +166,7 @@ if __name__ == '__main__': choices = ['amd64', 'powerpc', 'armel', 'arm64']) ap.add_argument("--initrd", nargs=2, help="The system initrd.") ap.add_argument("--fit", nargs=2, help="The system FIT image.") - ap.add_argument("--boot-config", help="The boot-config source.", required=True) + ap.add_argument("--boot-config", help="The boot-config source.") ap.add_argument("--add-file", help="Add the given file to the installer package.", nargs='+', default=[]) ap.add_argument("--add-dir", help="Optional directory to include in the installer.", nargs='+', default=[]) ap.add_argument("--swi", help="Include the given SWI in the installer.") @@ -197,7 +197,8 @@ if __name__ == '__main__': if ops.fit: installer.add_fit(*ops.fit) - installer.add_file(ops.boot_config) + if ops.boot_config: + installer.add_file(ops.boot_config) for f in ops.add_file: installer.add_file(f)