aboutsummaryrefslogtreecommitdiff
path: root/tools/k3_fit_atf.sh
diff options
context:
space:
mode:
authorAswath Govindraju2021-06-04 22:00:31 +0530
committerLokesh Vutla2021-06-09 22:23:44 +0530
commit0c51509224302fa83889ef0bf7039e24ddc59ec5 (patch)
treed086a9451565e976d6e93519b07f6b5f2cccd3de /tools/k3_fit_atf.sh
parentdc9f1009b1057e451d66f94dcbc25bc7c64fe67b (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> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Suman Anna <s-anna@ti.com> Link: https://lore.kernel.org/r/20210604163043.12811-2-a-govindraju@ti.com
Diffstat (limited to 'tools/k3_fit_atf.sh')
-rwxr-xr-xtools/k3_fit_atf.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/k3_fit_atf.sh b/tools/k3_fit_atf.sh
index 4e9f69c0878..2c0287a6339 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"
@@ -40,8 +40,8 @@ cat << __HEADER_EOF
arch = "arm64";
compression = "none";
os = "arm-trusted-firmware";
- load = <0x70000000>;
- entry = <0x70000000>;
+ load = <$1>;
+ entry = <$1>;
};
tee {
description = "OPTEE";
@@ -65,6 +65,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