aboutsummaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* 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>