diff options
author | Brian Woods | 2019-10-22 18:38:57 -0700 |
---|---|---|
committer | Stefano Stabellini | 2019-10-23 10:28:11 -0700 |
commit | 06d92ee94ba7fa805b83491f7e408ad5b1b46ad4 (patch) | |
tree | e628fb79d143679156dc7f3dcaad76c13f332eea /README.md | |
parent | 4eb6ba90286ae298c536fcee95832c592be3661c (diff) |
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 <brian.woods@xilinx.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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 |