From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kcPh7-0007EA-9J for ptxdist@pengutronix.de; Tue, 10 Nov 2020 10:12:06 +0100 Received: by mail-wr1-x441.google.com with SMTP id p8so11015409wrx.5 for ; Tue, 10 Nov 2020 01:12:04 -0800 (PST) From: avazquez.dev@gmail.com Date: Tue, 10 Nov 2020 10:11:53 +0100 Message-Id: <1604999513-21229-1-git-send-email-avazquez.dev@gmail.com> Subject: [ptxdist] [PATCH] ptxd_make_fit_image: Add mandatory properties List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: AVazquez From: AVazquez Add mandatory properties for types kernel and ramdisk. Signed-off-by: AVazquez --- 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