From 060958edd025e8113b22596c333a1121104c2b92 Mon Sep 17 00:00:00 2001 From: Jeffrey Townsend Date: Sun, 28 Aug 2016 18:44:23 +0000 Subject: [PATCH] Option to add additional custom files. --- tools/mkinstaller.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/mkinstaller.py b/tools/mkinstaller.py index 4d503e74..36d7b2ae 100755 --- a/tools/mkinstaller.py +++ b/tools/mkinstaller.py @@ -167,6 +167,7 @@ if __name__ == '__main__': 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("--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.") ap.add_argument("--work-dir", help="Set work directory and keep intermediates for debugging.") @@ -198,6 +199,9 @@ if __name__ == '__main__': installer.add_file(ops.boot_config) + for f in ops.add_file: + installer.add_file(f) + for d in ops.add_dir: installer.add_dir(d)