[meta-xilinx] How to over-ride a task defined in a .bbclass

Elvis Dowson elvis.dowson at gmail.com
Fri Feb 10 20:58:20 PST 2017


I have a task in a xilinx-fitimage.bbclass that I would like to over-ride,
but not sure how, even after trying several combinations of naming my user
recipe ending with a file extension .bbappend or .bbclassappend

The original source file is in the PetaLinux-2016.4 distribution.

Make the following change to the
source/arm/layers/meta-xilinx/classes/xilinx-fitimage.bbclass file, to
force the kernel, devicetree and ramdisk configuration to conf at 2, so that
the conf at 1, which is the default, would end up containing only the kernel
and devicetree.


do_assemble_xilinx_fitimage() {

if [ -z "${FITIMAGE_DTBIMG}" ]; then

bbfatal "No dtb was defined, Please set FITIMAGE_DTBIMG appropriately."

fi

${XILINXBASE}/scripts/bin/mkits.sh -v "${MACHINE}" \

-k "${FITIMAGE_KERNELIMG}" -c 1 -c 2 \

-C "${FITIMAGE_KERNEL_COMPRESSION_TYPE}" \

-e "${FITIMAGE_KERNEL_ENTRYPOINT}" \

-a "${FITIMAGE_KERNEL_LOADADDRESS}" \

-r "${DEPLOY_DIR_IMAGE}/${FITIMAGE_ROOTFSIMG}" -c 2 \

-C "${FITIMAGE_ROOTFS_COMPRESSION_TYPE}" \

-d "${FITIMAGE_DTBIMG}" -c 1 -c 2 \

-o fit-image.its

uboot-mkimage -f fit-image.its fitImage

}


This will ensure that the default conf at 1 configuration will contain the
kernel and device tree binary file only, and conf at 2 will contain the
kernel, device tree binary and the rootfilesystem.

I defined my own xilinx-fitimage-user.bbclass, inherited from
xilinx-fitimage class, and proceeded to redefine the task with the above
change (highlighted in red), but it had no effect in the generated output.

What would the correct way be, to inherit from the xilinx-fitimage.bbclass
and over-ride the declaration of just one specific task?

Regards,

Elvis Dowson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20170211/28bc2fc9/attachment.html>


More information about the meta-xilinx mailing list