我正在尝试在 Yocto“sumo”中从 boot.cmd 编译 boot.scr,然后将其添加到 rootfs 映像中。
我/meta-myrepo/recipes-bootscript/bootscript/my-bootscript_1.0.bb
有:
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"
当我运行时:bitbake my-bootscript
它运行正常但是当我运行时:bitbake fsl-image-gui
我总是收到错误:
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