summaryrefslogtreecommitdiffstats
path: root/scripts/mxsimage.c
Commit message (Collapse)AuthorAgeFilesLines
* scripts: mxsimage: Fix build with OpenSSL < 1.1.xSascha Hauer2017-03-021-31/+31
| | | | | | | Move the compatibility wrapper functions up so that they are defined before they are used. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts: mxsimage: Fix build with OpenSSL 1.1.xSascha Hauer2017-01-091-34/+70
| | | | | | | | | | | The EVP_MD_CTX and EVP_CIPHER_CTX are made opaque since 1.1.x , so instead of embedding them directly into struct sb_image_ctx and initializing them using EVP_*_CTX_init(), we use pointers and allocate the crypto contexts using EVP_*_CTX_new(). This is an adoption of the U-Boot commit 7bae13b7579a6b from Marek Vasut Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts: mxs: Use Kernel includesSascha Hauer2016-02-021-3/+1
| | | | | | Use the common definition of ARRAY_SIZE and roundup. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts: add mxsimage toolSascha Hauer2015-01-051-0/+2561
This is copied from U-Boot v2014.10 and modified for use with barebox: - Add a main() function to make it a standalone tool - Add option to pass in the prepare stage and bootloader image as options. If the config file contains @PREP@ or @BOOTLOADER@ the string will be replaced with the actual image file passed via the -p and -b options. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>