mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-08 08:16:59 +02:00
environment: ti: Add get_fit_config command to get FIT config string
When OE is packaging a dtb file into the FIT image it names the node based on the dtb filename. Node names can't have "/" so it is turned into "_". We select our FIT config using the "fdtfile" env var so we don't duplicate the board_name to fdt logic. Result is fdtfile needs mangled when used to select a config node from OE made FIT image. Do this here. Signed-off-by: Andrew Davis <afd@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
8f3e2d14a6
commit
837833a724
@ -55,7 +55,8 @@
|
|||||||
"do;" \
|
"do;" \
|
||||||
"setenv overlaystring ${overlaystring}'#'${overlay};" \
|
"setenv overlaystring ${overlaystring}'#'${overlay};" \
|
||||||
"done;\0" \
|
"done;\0" \
|
||||||
"run_fit=bootm ${addr_fit}#conf-${fdtfile}${overlaystring}\0" \
|
"get_fit_config=setexpr name_fit_config gsub / _ conf-${fdtfile}\0" \
|
||||||
|
"run_fit=run get_fit_config; bootm ${addr_fit}#${name_fit_config}${overlaystring}\0" \
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* DDR information. If the CONFIG_NR_DRAM_BANKS is not defined,
|
* DDR information. If the CONFIG_NR_DRAM_BANKS is not defined,
|
||||||
|
@ -20,5 +20,6 @@ get_overlaystring=
|
|||||||
do;
|
do;
|
||||||
setenv overlaystring ${overlaystring}'#'${overlay};
|
setenv overlaystring ${overlaystring}'#'${overlay};
|
||||||
done;
|
done;
|
||||||
run_fit=bootm ${addr_fit}#conf-${fdtfile}${overlaystring}
|
get_fit_config=setexpr name_fit_config gsub / _ conf-${fdtfile}
|
||||||
|
run_fit=run get_fit_config; bootm ${addr_fit}#${name_fit_config}${overlaystring}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user