summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>2022-09-02 15:10:51 +0200
committerKever Yang <kever.yang@rock-chips.com>2022-09-04 20:00:39 +0800
commit001f788cdbb5481d59c926f4651416c24b7b5773 (patch)
tree24e5d16e34b78acd27e100ebd757a9c860f0f1e2
parent32c8d1ce5cb70b68db74089e5d74c690f2575071 (diff)
rockchip: generate idbloader.img content for u-boot-rockchip.bin with binman for ARM
idbloader.img content - currently created by way of Makefile - can be created by binman directly. So let's do that for Rockchip ARM platforms. Cc: Quentin Schulz <foss+uboot@0leil.net> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
-rw-r--r--Makefile2
-rw-r--r--arch/arm/dts/rockchip-u-boot.dtsi11
2 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5750a9e4b88..dbe1aa254a7 100644
--- a/Makefile
+++ b/Makefile
@@ -1011,7 +1011,7 @@ endif
else
ifeq ($(CONFIG_SPL),y)
# Generate these inputs for binman which will create the output files
-INPUTS-y += idbloader.img u-boot.img
+INPUTS-y += u-boot.img
endif
endif
endif
diff --git a/arch/arm/dts/rockchip-u-boot.dtsi b/arch/arm/dts/rockchip-u-boot.dtsi
index eae3ee715da..ad72ca97007 100644
--- a/arch/arm/dts/rockchip-u-boot.dtsi
+++ b/arch/arm/dts/rockchip-u-boot.dtsi
@@ -17,8 +17,17 @@
filename = "u-boot-rockchip.bin";
pad-byte = <0xff>;
- blob {
+ mkimage {
filename = "idbloader.img";
+ args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
+#ifdef CONFIG_TPL
+ multiple-data-files;
+
+ u-boot-tpl {
+ };
+#endif
+ u-boot-spl {
+ };
};
u-boot-img {