aboutsummaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* 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-142-13/+13
| | | | | | | | | | 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 DESTDIR path in disk_imageBrian Woods2019-10-251-8/+9
| | | | | | | | | | When the user supplies a relative path to use as a working tmp directory, the path is broken when a cd occurs in the script. Fix this by using the absolute path for DESTDIR when we cd. Fixes: "Fix copying files to boot partition in disk_image" Signed-off-by: Brian Woods <brian.woods@xilinx.com> Acked-by: Stefano Stabellini <sstabellini@kernel.org>
* Add command line arguments for disk_imageBrian Woods2019-10-252-8/+84
| | | | | | | | | Add some simple command line arguments and some dependency checking that makes running the script outside of a container much easier. 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>
* Convert indentation of disk_imageBrian Woods2019-10-251-23/+23
| | | | | | | | Convert the indentation of disk_image to 4 space from hard tabs so that it matches the rest of the Imagebuilder scripts. Signed-off-by: Brian Woods <brian.woods@xilinx.com> Acked-by: Stefano Stabellini <sstabellini@kernel.org>
* Fix copying files to boot partition in disk_imageBrian Woods2019-10-241-2/+24
| | | | | | | | | | Copy only the files that were used to generate the size of the boot partition. This fixes a bug where if the Dom0 ramdisk is over ~16M the boot partition will run out of space since everything in the directory is copied over. Signed-off-by: Brian Woods <brian.woods@xilinx.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
* Fix hardcoded dom0 ramdisk name in disk_imageBrian Woods2019-10-241-4/+5
| | | | | | | | Get rid of a hardcoded dom0 ramdisk name so that it doesn't err out when the name is different. Signed-off-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-233-7/+77
| | | | | | | | | | | 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-213-3/+8
| | | | Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
* Rename docker-extras to scriptsStefano Stabellini2019-10-214-0/+362
Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>