|
@@ -674,6 +674,18 @@ int fit_image_load(bootm_headers_t *images, ulong addr,
|
|
|
int arch, int image_type, int bootstage_id,
|
|
|
enum fit_load_op load_op, ulong *datap, ulong *lenp);
|
|
|
|
|
|
+/**
|
|
|
+ * image_source_script() - Execute a script
|
|
|
+ *
|
|
|
+ * Executes a U-Boot script at a particular address in memory. The script should
|
|
|
+ * have a header (FIT or legacy) with the script type (IH_TYPE_SCRIPT).
|
|
|
+ *
|
|
|
+ * @addr: Address of script
|
|
|
+ * @fit_uname: FIT subimage name
|
|
|
+ * @return result code (enum command_ret_t)
|
|
|
+ */
|
|
|
+int image_source_script(ulong addr, const char *fit_uname);
|
|
|
+
|
|
|
#ifndef USE_HOSTCC
|
|
|
/**
|
|
|
* fit_get_node_from_config() - Look up an image a FIT by type
|