Hi, I am trying to build an Upgrade package which basically has some shell scripts as executables. But I don't want them included in the rootfs, instead I will place them over the air when a upgrade is required. Below is the .bb file which I have written for achieving the same.
SECTION = "MINE" LICENSE = "MINE" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MINE;md5=02598586d9274e819091ab3ade64d910" UTILS_PATH="" SRC_URI += "file://upgrade.sh \ " do_fetch(){ #do nothing echo "do_fetch" } do_configure(){ #do nothing echo "do_configure" } do_compile(){ #do nothing echo "do_compile" } do_install() { install -d ${WORKDIR}/utils install -m 0755 ${WORKDIR}/upgrade_verify_file.sh ${WORKDIR}/utils tar -czf upgradeUtils.tgz -C ${WORKDIR} utils cp ${WORKDIR}/upgradeutils-0.1/upgradeUtils.tgz ${TOPDIR} } FILES_${PN} += "${WORKDIR}/utils \ " But while executing "bitbake core-image-base", I am getting the following error. ERROR: core-image-base-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/karthik/dev/dev_yocto_dev/tmp/work/arm-linux-gnueabi/core-image-base/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /home/karthik/dev/dev_yocto_dev/tmp/work/arm-linux-gnueabi/core-image-base/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/karthik/dev/dev_yocto_dev/tmp/work/arm-linux-gnueabi/core-image-base/1.0-r0/rootfs/etc/yum.repos.d --repofrompath=oe-repo,/home/karthik/dev/dev_yocto_dev/tmp/work/ccimx6ulsbc-dey-linux-gnueabi/core-image-base/1.0-r0/oe-rootfs-repo --installroot=/home/karthik/dev/dev_yocto_dev/tmp/work/arm-linux-gnueabi/core-image-base/1.0-r0/rootfs --setopt=logdir=/home/karthik/dev/dev_yocto_dev/tmp/work/arm-linux-gnueabi/core-image-base/1.0-r0/temp -x udev-cache --nogpgcheck install base-passwd dhcp-server dnf null-logger packagegroup-base-extended packagegroup-core-boot packagegroup-core-eclipse-debug packagegroup-core-ssh-dropbear packagegroup-bluetooth packagegroup-network packagegroup-wireless psplash python-dbus python-pygobject rht rpm ruby run-postinsts shadow sqlite3 upgradeutils locale-base-en-us locale-base-en-gb' returned 1: Added oe-repo repo from /home/karthik/dev/dev_yocto_dev/tmp/work/arm-linux-gnueabi/core-image-base/1.0-r0/oe-rootfs-repo Last metadata expiration check: 0:00:00 ago on Mon 25 Mar 2019 09:07:49 AM UTC. No package upgradeutils available. Error: Unable to find a match ERROR: core-image-base-1.0-r0 do_rootfs: Function failed: do_rootfs ERROR: Logfile of failure stored in: /home/karthik/dev/dev_yocto_dev/tmp/work/arm-linux-gnueabi/core-image-base/1.0-r0/temp/log.do_rootfs.21424 ERROR: Task (/home/karthik/dev/dev_yocto_dev/sources/poky/meta/recipes-core/images/core-image-base.bb:do_rootfs) failed with exit code '1' Is this error because the rootfs is searching for upgradeutils for including it in the rootfs ? If so, how I can avoid that ? Thank you for your valuable time. Karthik B
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto