Hi.. there Hope all are doing well I'm new bie with the Yocto Currently dealing with the *Yocto kirkstone*
*The intention is to split the custom package and installing the readm.txt file with the same with using FILES and PACKAGES variable* this is how i wrote the recipe > > DESCRIPTION = "Yocto recipe to create the custom package and copying > readme.txt in it" > SUMMARY = "${DESCRIPTION}" > AUTHOR = "Mahendra Sondagar (mahendrasondaga...@gmail.com)" > LICENSE = "MIT" > LIC_FILES_CHKSUM = > "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" > SRC_URI = "file://readme.txt" > S = "${WORKDIR}" > # Specify the custom package name > PACKAGES = "${PN} ${PN}-test" > # Define the installation steps > do_install() { > install -d ${D}${datadir}/mydir > install -m 0644 readme.txt ${D}${datadir}/mydir > } > # Ensure the files are split correctly between packages > FILES:${PN} += "${datadir}/mydir/readme.txt" > FILES:${PN}-test += "${datadir}/mydir/readme.txt" > > > As you can see above ${PN}-test is my custom package, in which i need to > install the readme.txt > I'm able to build the recipe, however while building the custom image, it's causing the below errors ERROR: custom-image-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/mahendra/Documents/MyWorkSpace/my-git/Yocto-stm32mp1/build-mp1/tmp/work/stm32mp1-poky-linux-gnueabi/custom-image/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/mahendra/Documents/MyWorkSpace/my-git/Yocto-stm32mp1/build-mp1/tmp/work/stm32mp1-poky-linux-gnueabi/custom-image/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/mahendra/Documents/MyWorkSpace/my-git/Yocto-stm32mp1/build-mp1/tmp/work/stm32mp1-poky-linux-gnueabi/custom-image/1.0-r0/rootfs/etc/yum.repos.d --installroot=/home/mahendra/Documents/MyWorkSpace/my-git/Yocto-stm32mp1/build-mp1/tmp/work/stm32mp1-poky-linux-gnueabi/custom-image/1.0-r0/rootfs --setopt=logdir=/home/mahendra/Documents/MyWorkSpace/my-git/Yocto-stm32mp1/build-mp1/tmp/work/stm32mp1-poky-linux-gnueabi/custom-image/1.0-r0/temp --repofrompath=oe-repo,/home/mahendra/Documents/MyWorkSpace/my-git/Yocto-stm32mp1/build-mp1/tmp/work/stm32mp1-poky-linux-gnueabi/custom-image/1.0-r0/oe-rootfs-repo --nogpgcheck install base-passwd bluez5 dbus dropbear expat hello-mod hello-test hello-world i2c-tools iw kernel-module-r8188eu linux-firmware-rtl8188 module-init-tools mygit mymake mypackages mypackages-doc mypackages2 mypackages2-test packagegroup-core-boot packagegroup-tools-bluetooth pciutils python3 python3-pip run-postinsts shadow usbutils util-linux wireless-regdb-static wpa-supplicant locale-base-en-us' returned 1: DNF version: 4.11.1 cachedir: /home/mahendra/Documents/MyWorkSpace/my-git/Yocto-stm32mp1/build-mp1/tmp/work/stm32mp1-poky-linux-gnueabi/custom-image/1.0-r0/rootfs/var/cache/dnf Added oe-repo repo from /home/mahendra/Documents/MyWorkSpace/my-git/Yocto-stm32mp1/build-mp1/tmp/work/stm32mp1-poky-linux-gnueabi/custom-image/1.0-r0/oe-rootfs-repo User-Agent: falling back to 'libdnf': could not detect OS or basearch repo: using cache for: oe-repo oe-repo: using metadata from Sat 17 Aug 2024 07:21:34 PM UTC. Last metadata expiration check: 0:00:01 ago on Sat 17 Aug 2024 08:03:00 PM UTC. No match for argument: mypackages2-test Error: Unable to find a match: mypackages2-test DEBUG: custom-image-1.0-r0 do_rootfs: Python function do_rootfs finished ERROR: Logfile of failure stored in: /home/mahendra/Documents/MyWorkSpace/my-git/Yocto-stm32mp1/build-mp1/tmp/work/stm32mp1-poky-linux-gnueabi/custom-image/1.0-r0/temp/log.do_rootfs.52022 ERROR: Task (/home/mahendra/Documents/MyWorkSpace/my-git/Yocto-stm32mp1/meta-custom/recipes-core/images/custom-image.bb:do_rootfs) failed with exit code '1' *This states "mypackages2-test". However, i have already installed mypackage2-test with the image* *For the further debugging, i have confirmed from the WORKDIR that the readme.txt is not getting copied in to the mypackages2-test package* here are the logs tree packages-split/ packages-split/ ├── mypackages2 │ └── usr │ └── share │ └── mydir │ └── readme.txt ├── mypackages2-src └── mypackages2-test Can anyone help me here ? Thanks in advance Regards, Mahendra
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63717): https://lists.yoctoproject.org/g/yocto/message/63717 Mute This Topic: https://lists.yoctoproject.org/mt/107954307/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-