From 06d92ee94ba7fa805b83491f7e408ad5b1b46ad4 Mon Sep 17 00:00:00 2001 From: Brian Woods Date: Tue, 22 Oct 2019 18:38:57 -0700 Subject: Add command line arguments for uboot-script-gen Add some simple command line arguments and some dependency checking that makes running this outside of a container much easier. The environment variable LOAD_CMD has been removed and all the config options are done via command line arguemtnt for consistency. Signed-off-by: Brian Woods Signed-off-by: Stefano Stabellini Reviewed-by: Stefano Stabellini --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index f26ff54..5eb4a49 100644 --- a/README.md +++ b/README.md @@ -71,13 +71,16 @@ Where: Then you can invoke uboot-script-gen as follows: ``` -$ export LOAD_CMD="tftpb" -$ bash ./scripts/uboot-script-gen /path/to/config-file +$ bash ./scripts/uboot-script-gen -c /path/to/config-file -d . -t tftp ``` -Where LOAD_CMD specifies the u-boot command to load the binaries. -For tftp, use LOAD_CMD="tftpb". -For SCSI, use LOAD_CMD="load scsi 0:1". +Where: +-c specifies the path to the config file to use +-d specifies the working directory (path in the config file are relative + to it) +-t specifies the u-boot command to load the binaries. "tftp" and "sd" + are shorthands for "tftpb" and "load scsi 0:1", but actually any + arbitrary command can be used, for instance -t "fatload" is valid. ## Container Usage -- cgit v1.2.3