Non-existent task do_mender_tar_src

Hi,
i have the following error:

ERROR: Task do_patch in <…mypath…>/sources/meta-mender/meta-mender-core/recipes-bsp/u-boot/u-boot-fw-utils-mender-auto-provided_1.0.bb depends upon non-existent task do_mender_tar_src in <…mypath…>/sources/meta-secc-secc/recipes-bsp/u-boot/u-boot-secc-secc.bb
ERROR: Command execution failed: 1

I found this page discussing this error, but none of the suggested fixes worked for me:
https://groups.google.com/a/lists.mender.io/g/mender/c/MI3m6UXWDhs/m/-zoRxwEvAgAJ

I am trying to build for the yocto project (zeus), with a custom fork of u-boot.

Does anyone know how to solve this?
Regards,
Kolya

You need to require the u-boot-mender.inc file somewhere in your recipe.

Hi @drewmoseley,
I have already done that.
Here is my u-boot bb file:

SUMMARY = "U-Boot for LF SECC SECC (based on Variscite's i.MX boards)"
require recipes-bsp/u-boot/u-boot.inc
require recipes-bsp/u-boot/u-boot-mender.inc
inherit pythonnative

PROVIDES += "u-boot"
RPROVIDES_${PN} += "u-boot"
DEPENDS_append = " python dtc-native"

include u-boot-common.inc

inherit fsl-u-boot-localversion

LOCALVERSION ?= "-${SRCBRANCH}"

BOOT_TOOLS = "imx-boot-tools"

PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "(mx6|secc-secc)"

UBOOT_NAME_mx6 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
UBOOT_NAME_secc-secc = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
UBOOT_NAME_mx7 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"

Here is my u-boot bbappend file:

MENDER_UBOOT_AUTO_CONFIGURE = "0"

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI_append = " \
	file://0005-fw_env_main.c-Fix-incorrect-size-for-malloc-ed-strin.patch \
"

Regards,
Kolya

Hmm. That normally fixed it for me. @kacf any suggestions?

Make sure you have also defined:

MENDER_FEATURES_ENABLE_append = " mender-uboot"
MENDER_FEATURES_DISABLE_append = " mender-grub"

in either local.conf or another global file. This is required to integrate with the U-Boot boot loader.

Thanks @kacf,
i think that did it!
Regards,
Kolya