aboutsummaryrefslogtreecommitdiff
path: root/scripts/uboot-script-gen
Commit message (Collapse)AuthorAgeFilesLines
...
* Add options for Xen and Dom0 CMD argumentsBrian Woods2020-10-271-3/+22
| | | | | | | | | | | Both XEN_CMD and DOM0_CMD are optional settings in the config file that set Xen's and Dom0's command line arguments. If not set, a default value will be used. Also, for Dom0's command line arguments, if root isn't set in it, it will determine the best option based on the load argument. Signed-off-by: Brian Woods <brian.woods@xilinx.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
* Don't display full path when printing helpBrian Woods2020-08-051-3/+4
| | | | | | Signed-off-by: Brian Woods <brian.woods@xilinx.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
* Update doc for uboot-script-gen -dBrian Woods2020-05-131-1/+1
| | | | | | | | | | | The -d option for uboot-script-gen was poorly worded. The -d option isn't a working directory but rather the "root" directory for where the tftp or other root directory would be in relation to the files. Any files generated in the created of the boot.src/source files are in /tmp and are deleted afterwards. Signed-off-by: Brian Woods <brian.woods@xilinx.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
* Add support for absolute paths in configSwagath Gadde2020-05-131-1/+3
| | | | | | | | | Some build systems like yocto use absolute paths. Add support for them so they can be used in the config file. Signed-off-by: Swagath Gadde <swagath.gadde@xilinx.com> Signed-off-by: Brian Woods <brian.woods@xilinx.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
* Increase file compatibility for DTBsBrian Woods2020-05-131-0/+5
| | | | | | | | | | In some distros (like RHEL 6 and 7), file identifies the device tree blobs (DTBs) as "data". To make imagebuilder work on these older distros, change it where DTBs are correctly identified as "Device Tree Blob" or "data". Signed-off-by: Brian Woods <brian.woods@xilinx.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
* Add clk_ignore_unused to the Linux kernel command line optionsStefano Stabellini2020-04-171-1/+1
| | | | | | | | | clk_ignore_unused reduces clock related errors and warning on many platforms. It looks like a safer default to have. Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com> CC: woods@xilinx.com CC: izhar.ameer.shaikh@xilinx.com
* Use stat -L instead of stat, file -L instead of fileStefano Stabellini2020-04-141-4/+4
| | | | | | | | | | Use stat -L and file -L so that the two tools follow symlinks correctly. Also fix an error in check_file_type: the error function is called cleanup_and_return_err, not clean_up_and_err_out. Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com> Reviewed-by: Brian Woods <brian.woods@xilinx.com>
* Introduce a -o option to specify output filenameStefano Stabellini2020-03-051-2/+13
| | | | | | | | | | Introduce a -o command line option for uboot-script-gen to be able to easily specify the output filename for the uboot script and the uboot script source. Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com> Signed-off-by: Brian Woods <brian.woods@xilinx.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
* Increase default dom0_mem to 1GStefano Stabellini2020-03-051-1/+1
| | | | | | To account for configurations with larger rootfses. Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
* Add stricter checking of files in configBrian Woods2020-01-171-2/+22
| | | | | | | | | The boot script files would still be generated even if the files used in the config don't exist. This checks to make sure the files exist and if they don't, it exits and errs out. Signed-off-by: Brian Woods <brian.woods@xilinx.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
* Add robustness to file type checkingBrian Woods2020-01-171-3/+10
| | | | | | | | | | | | Some versions of the file command and Xen will output: xen: Linux kernel ARM boot executable zImage (little-endian) and executables that file doesn't recognize are simply classified as "data." So changing "MS-DOS executable" to "executable" and or'ing that with "data" should increase coverage without making the check useless. Suggested-by: Stefano Stabellini <sstabellini@kernel.org> Signed-off-by: Brian Woods <brian.woods@xilinx.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
* remove tmp files when finishedBrian Woods2020-01-161-0/+12
| | | | | | | | Currently there are tmp files left after the script is run. This keeps track of the files and deletes them when exiting. Signed-of-by: Brian Woods <brian.woods@xilinx.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
* Fix help message formatting in uboot-script-genBrian Woods2019-10-241-4/+4
| | | | | | | | | There was a mixure of spaces and tabs in the help message of uboot-script-gen. Fix it to only use tabs like disk_image's help message. Signed-off-by: Brian Woods <brian.woods@xilinx.com> Acked-by: Stefano Stabellini <sstabellini@kernel.org>
* Fix typo in error messageStefano Stabellini2019-10-241-1/+1
| | | | Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
* Add command line arguments for uboot-script-genBrian Woods2019-10-231-3/+75
| | | | | | | | | | | 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>
* Remove serrors=forward, rely on the default Xen settings for serrorsStefano Stabellini2019-10-221-1/+1
| | | | Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
* Pass the config file to uboot-script-gen as parameterStefano Stabellini2019-10-211-1/+6
| | | | Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
* Rename docker-extras to scriptsStefano Stabellini2019-10-211-0/+209
Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>