]> git.sur5r.net Git - u-boot/commitdiff
warp7: Make CONFIG_SYS_FDT_ADDR a define
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Tue, 24 Apr 2018 17:46:40 +0000 (18:46 +0100)
committerStefano Babic <sbabic@denx.de>
Thu, 26 Apr 2018 06:53:22 +0000 (08:53 +0200)
In order to sign images with the IMX code-signing-tool (CST) we need to
know the load address of a given image. The best way to derive this load
address is to make it into a define - so that u-boot.cfg contains the
address - which we can then parse when generating the IMX CST headers.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Ryan Harkin <ryan.harkin@linaro.org>
Tested-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
board/warp7/Kconfig
include/configs/warp7.h

index 61c33fb53e1feb0e2288a14453ddd701244f7ded..00df19d47fffb79a01aa6c2f39ad831cb3598730 100644 (file)
@@ -6,4 +6,10 @@ config SYS_BOARD
 config SYS_CONFIG_NAME
        default "warp7"
 
+config SYS_FDT_ADDR
+       hex "FDT load address"
+       default 0x83000000
+       help
+         The address the FDT file should be loaded to.
+
 endif
index e12b90bc166edfcec95fd98d3bdcb3854f57fe59..344042c9b33b8faed2752b26665c81227c6f69c2 100644 (file)
@@ -39,7 +39,7 @@
        "fdt_high=0xffffffff\0" \
        "initrd_high=0xffffffff\0" \
        "fdt_file=imx7s-warp.dtb\0" \
-       "fdt_addr=0x83000000\0" \
+       "fdt_addr=" __stringify(CONFIG_SYS_FDT_ADDR)"\0" \
        "optee_addr=" __stringify(CONFIG_OPTEE_LOAD_ADDR)"\0" \
        "boot_fdt=try\0" \
        "ip_dyn=yes\0" \