mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] ptxd_make_fit_image: Add mandatory properties
@ 2020-11-10  9:11 avazquez.dev
  2020-11-10 14:38 ` Denis Osterland-Heim
  0 siblings, 1 reply; 5+ messages in thread
From: avazquez.dev @ 2020-11-10  9:11 UTC (permalink / raw)
  To: ptxdist; +Cc: AVazquez

From: AVazquez <avazquez.dev@gmail.com>

Add mandatory properties for types kernel and ramdisk.

Signed-off-by: AVazquez <avazquez.dev@gmail.com>
---
 platforms/kernel-fit.in            | 10 ++++++++++
 scripts/lib/ptxd_make_fit_image.sh |  4 ++++
 2 files changed, 14 insertions(+)

diff --git a/platforms/kernel-fit.in b/platforms/kernel-fit.in
index 8cbc1a8..d917a97 100644
--- a/platforms/kernel-fit.in
+++ b/platforms/kernel-fit.in
@@ -17,6 +17,16 @@ menuconfig KERNEL_FIT
 
 if KERNEL_FIT
 
+config KERNEL_FIT_LOAD
+	string
+	default "0xC0008000"
+	prompt "Kernel load address"
+
+config KERNEL_FIT_ENTRY
+	string
+	default "0xC0008000"
+	prompt "Kernel entry address"
+
 config KERNEL_FIT_SIGNED
 	bool
 	prompt "sign FIT image"
diff --git a/scripts/lib/ptxd_make_fit_image.sh b/scripts/lib/ptxd_make_fit_image.sh
index 9754d1e..4314b0e 100644
--- a/scripts/lib/ptxd_make_fit_image.sh
+++ b/scripts/lib/ptxd_make_fit_image.sh
@@ -21,7 +21,10 @@ ptxd_make_image_fit_its() {
 			data = /incbin/("${image_kernel}");
 			type = "kernel";
 			arch = "$(ptxd_get_ptxconf PTXCONF_ARCH_STRING)";
+			os = "linux";
 			compression = "none";
+			load = <$(ptxd_get_ptxconf PTXCONF_KERNEL_FIT_LOAD)>;
+			entry = <$(ptxd_get_ptxconf PTXCONF_KERNEL_FIT_ENTRY)>;
 			hash-1 {
 				algo = "sha256";
 			};
@@ -33,6 +36,7 @@ EOF
 			description = "initramfs";
 			data = /incbin/("${image_initramfs}");
 			type = "ramdisk";
+			os = "linux";
 			compression = "none";
 			hash-1 {
 				algo = "sha256";
-- 
1.9.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-11 12:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-10  9:11 [ptxdist] [PATCH] ptxd_make_fit_image: Add mandatory properties avazquez.dev
2020-11-10 14:38 ` Denis Osterland-Heim
2020-11-11  8:47   ` Alex Vazquez
2020-11-11  8:59     ` Sascha Hauer
2020-11-11 12:00       ` Alex Vazquez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox