Yocto dnf error in do_roofs

1

I am trying to compile boot.scr from boot.cmd in Yocto "sumo", then adding it to the rootfs image.

In /meta-myrepo/recipes-bootscript/bootscript/my-bootscript_1.0.bb I have:

DESCRIPTION = "U-boot boot script"
LICENSE = "CLOSED"

DEPENDS = "u-boot-mkimage-native"

SRC_URI += "file://boot.cmd"

S = "${WORKDIR}"

do_compile() {
        mkimage -A arm -T script -C none -n "Boot script" -d "${WORKDIR}/boot.cmd" boot.scr
}

do_install() {
        install -d ${D}boot/
        install -m 0644 boot.scr ${D}boot/
}

FILES_${PN} += "/boot"
FILES_${PN} += "/boot/boot.scr"

When I run: bitbake my-bootscript it runs ok But when I run: bitbake fsl-image-gui I always get the error:

ERROR: fsl-image-gui-1.0-r0 do_rootfs: Could not invoke dnf. 
Command '/home/user/var-fsl-yocto/build_xwayland/tmp/work/imx8mm_var_dart-poky-linux/fsl-image-gui/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c ... locale-base-en-gb' returned 1:
Added oe-repo repo from /home/user/var-fsl-yocto/build_xwayland/tmp/work/imx8mm_var_dart-poky-linux/fsl-image-gui/1.0-r0/oe-rootfs-repo
Last metadata expiration check: 0:00:02 ago on Mon 22 Apr 2019 10:55:32 PM UTC.
No match for argument: my-bootscript
Error: Unable to find a match

ErectCrested

Posted 2019-04-22T22:59:16.017

Reputation: 21

Try to add the following in the bottom of your recipe: PACKAGES = "${PN}" – Georg P. – 2019-07-24T08:25:28.777

Answers

0

I don't know why but, after a lot of search and try, I found that using IMAGE_CLASSES += " my-recipe" instead of IMAGE_INSTALL_append = " my-recipe" makes everything work.

Sandro

Posted 2019-04-22T22:59:16.017

Reputation: 1