mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
spl: LOAD_FIT_FULL: Support 'kernel' and 'firmware' properties
The 'firmware' property of a config node takes precedence over the 'kernel' property. 'standalone' is deprecated. However, give users a couple of releases where 'standalone' still works, but warns loudly. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
parent
60138aa87c
commit
51d3a8b54f
1 changed files with 18 additions and 1 deletions
|
@ -215,7 +215,24 @@ static int spl_load_fit_image(struct spl_image_info *spl_image,
|
||||||
ret = fit_image_load(&images, (ulong)header,
|
ret = fit_image_load(&images, (ulong)header,
|
||||||
NULL, &fit_uname_config,
|
NULL, &fit_uname_config,
|
||||||
IH_ARCH_DEFAULT, IH_TYPE_STANDALONE, -1,
|
IH_ARCH_DEFAULT, IH_TYPE_STANDALONE, -1,
|
||||||
FIT_LOAD_REQUIRED, &fw_data, &fw_len);
|
FIT_LOAD_OPTIONAL, &fw_data, &fw_len);
|
||||||
|
if (ret >= 0) {
|
||||||
|
printf("DEPRECATED: 'standalone = ' property.");
|
||||||
|
printf("Please use either 'firmware =' or 'kernel ='\n");
|
||||||
|
} else {
|
||||||
|
ret = fit_image_load(&images, (ulong)header, NULL,
|
||||||
|
&fit_uname_config, IH_ARCH_DEFAULT,
|
||||||
|
IH_TYPE_FIRMWARE, -1, FIT_LOAD_OPTIONAL,
|
||||||
|
&fw_data, &fw_len);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ret < 0) {
|
||||||
|
ret = fit_image_load(&images, (ulong)header, NULL,
|
||||||
|
&fit_uname_config, IH_ARCH_DEFAULT,
|
||||||
|
IH_TYPE_KERNEL, -1, FIT_LOAD_OPTIONAL,
|
||||||
|
&fw_data, &fw_len);
|
||||||
|
}
|
||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue