mirror of
https://xff.cz/git/u-boot/
synced 2025-10-20 01:14:39 +02:00
image: Add a function to find a script in an image
Split this functionality out of the 'source' command so it can be used from another place. For now leave it where it is, but a future patch will move it out of cmd/ Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -729,6 +729,20 @@ int fit_image_load(struct bootm_headers *images, ulong addr,
|
||||
int image_source_script(ulong addr, const char *fit_uname,
|
||||
const char *confname);
|
||||
|
||||
/**
|
||||
* image_locate_script() - Locate the raw script in an image
|
||||
*
|
||||
* @buf: Address of image
|
||||
* @size: Size of image in bytes
|
||||
* @fit_uname: Node name of FIT image to read
|
||||
* @confname: Node name of FIT config to read
|
||||
* @datap: Returns pointer to raw script on success
|
||||
* @lenp: Returns size of raw script on success
|
||||
* @return 0 if OK, non-zero on error
|
||||
*/
|
||||
int image_locate_script(void *buf, int size, const char *fit_uname,
|
||||
const char *confname, char **datap, uint *lenp);
|
||||
|
||||
/**
|
||||
* fit_get_node_from_config() - Look up an image a FIT by type
|
||||
*
|
||||
|
Reference in New Issue
Block a user