[meta-xilinx] [PATCH] get_dtb_list function which formats the dtb files properly before adding to IMAGE_BOOT_FILES
Manjukumar Harthikote Matha
MANJUKUM at xilinx.com
Thu Jan 11 15:42:32 PST 2018
Hi Franz/Nathan,
> -----Original Message-----
> From: meta-xilinx-bounces at yoctoproject.org [mailto:meta-xilinx-
> bounces at yoctoproject.org] On Behalf Of Franz Forstmayr
> Sent: Thursday, January 11, 2018 3:04 AM
> To: meta-xilinx at lists.yoctoproject.org
> Subject: [meta-xilinx] [PATCH] get_dtb_list function which formats the dtb files
> properly before adding to IMAGE_BOOT_FILES
>
> Replaced the hard-coded devicetree files in IMAGE_BOOT_FILES with a function,
> which formats the KERNEL_DEVICETREE list properly.
>
> v2: Removed the additional "True" statement from d.getvar.
>
> Signed-off-by: Franz Forstmayr <f.forstmayr at gmail.com>
> Reviewed-by: Nathan Rossi <nathan at nathanrossi.com>
> ---
> meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc | 8 ++++++++
> meta-xilinx-bsp/conf/machine/zc702-zynq7.conf | 2 +-
> meta-xilinx-bsp/conf/machine/zc706-zynq7.conf | 2 +-
> meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf | 2 +-
> meta-xilinx-bsp/conf/machine/zedboard-zynq7.conf | 2 +-
> meta-xilinx-bsp/conf/machine/zybo-zynq7.conf | 2 +-
> 6 files changed, 13 insertions(+), 5 deletions(-)
>
> diff --git a/meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc
> b/meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc
> index 77fbec8..6a9d1b7 100644
> --- a/meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc
> +++ b/meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc
> @@ -34,6 +34,14 @@ XSERVER ?= " \
> ${XSERVER_EXT} \
> "
>
> +def get_dtb_list(d):
> + if d.getVar("KERNEL_DEVICETREE"):
> + dtbs = d.getVar("KERNEL_DEVICETREE").split(" ")
> + dtbs = [os.path.basename(d) for d in dtbs]
> + if len(dtbs) != 0:
> + return " ".join([d.getVar("KERNEL_IMAGETYPE") + "-" + dtb for dtb in dtbs])
> + return ""
> +
When using KERNEL_IMAGETYPES how will this work? There is a pending patch on meta-xilinx for example to build multiple kernel images using KERNEL_IMAGETYPES variable.
For ex:
KERNEL_IMAGETYPES ="uImage zImage"
Thanks,
Manju
<....>
More information about the meta-xilinx
mailing list