diff options
author | Aswath Govindraju <a-govindraju@ti.com> | 2021-06-04 22:42:57 +0530 |
---|---|---|
committer | Praneeth Bajjuri <praneeth@ti.com> | 2021-06-06 23:36:48 -0500 |
commit | da87c136c2f4e3777d56109dbf46e34e6e865e06 (patch) | |
tree | f1271134db7178021de47be7331580c6b9468ac1 /tools | |
parent | 247af9520334cf0ee016ffdd0319defe26c3013b (diff) |
tools: k3_fit_atf: Add support for providing ATF load address using a Kconfig symbol
Add support for providing ATF load address with a Kconfig symbol.
Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Reviewed-by: Suman Anna <s-anna@ti.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/k3_fit_atf.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/k3_fit_atf.sh b/tools/k3_fit_atf.sh index c0940a2fcc..3a476ced98 100755 --- a/tools/k3_fit_atf.sh +++ b/tools/k3_fit_atf.sh @@ -5,7 +5,7 @@ # ATF, OPTEE, SPL and multiple device trees (given on the command line). # Inspired from board/sunxi/mksunxi_fit_atf.sh # -# usage: $0 <dt_name> [<dt_name> [<dt_name] ...] +# usage: $0 <atf_load_addr> <dt_name> [<dt_name> [<dt_name] ...] [ -z "$ATF" ] && ATF="bl31.bin" @@ -47,8 +47,8 @@ cat << __HEADER_EOF arch = "arm64"; compression = "none"; os = "arm-trusted-firmware"; - load = <0x70000000>; - entry = <0x70000000>; + load = <$1>; + entry = <$1>; }; tee { description = "OPTEE"; @@ -82,6 +82,9 @@ cat << __HEADER_EOF }; __HEADER_EOF +# shift through ATF load address in the command line arguments +shift + for dtname in $* do cat << __FDT_IMAGE_EOF |