[OE-core] [PATCH v2] kernel-fitimage.bbclass: Allow set/unset load address for FDT
Rick Altherr
raltherr at google.com
Wed Feb 15 04:18:03 UTC 2017
Reviewed-by: Rick Altherr <raltherr at google.com>
On Tue, Feb 14, 2017 at 7:03 PM, Nikunj Kela <nikunj.kela at gmail.com> wrote:
> Allow the load address for the FDT segment in the fitImage. This
> allows U-Boot to load the FDT at a specific address.
>
> UBOOT_FDT_LOADADDRESS - Specifies the load address used by u-boot
> for the FDT
>
> Signed-off-by: Nikunj Kela <nikunj.kela at gmail.com>
> ---
> meta/classes/kernel-fitimage.bbclass | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-
> fitimage.bbclass
> index 1c3b4b7..7f9da49 100644
> --- a/meta/classes/kernel-fitimage.bbclass
> +++ b/meta/classes/kernel-fitimage.bbclass
> @@ -127,6 +127,11 @@ EOF
> fitimage_emit_section_dtb() {
>
> dtb_csum="sha1"
> + fdt_loadline=""
> +
> + if [ -n "${UBOOT_FDT_LOADADDRESS}" ]; then
> + fdt_loadline="load = <${UBOOT_FDT_LOADADDRESS}>;"
> + fi
>
> cat << EOF >> ${1}
> fdt@${2} {
> @@ -135,6 +140,7 @@ fitimage_emit_section_dtb() {
> type = "flat_dt";
> arch = "${UBOOT_ARCH}";
> compression = "none";
> + ${fdt_loadline}
> hash at 1 {
> algo = "${dtb_csum}";
> };
> --
> 2.5.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170214/86932c6c/attachment-0002.html>
More information about the Openembedded-core
mailing list