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@2, so that
the conf@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@1 configuration will contain the
kernel and device tree binary file only, and conf@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
--
_______________________________________________
meta-xilinx mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-xilinx