Can´t overwrite files in my rootfs (but present in package image)

Hello,

I´m working with an i.MX6 module and try to generate a Linux Kernel + RootFS with Yocto. The build process was successful. So my next step is to add a new recipe which install some binaries in it. I try to overwrite the wpa_supplicant and some stuff of it.

SRC_URI = "file://wpa_supplicant \
                     file://wpa_cli \
                     file://wpa_passphrase"

INSANE_SKIP_${PN} = "ldflags"
FILES_${PN} += "${sbindir} ${bindir}"

do_install() {
    install -d ${D}${sbindir}
    install -d ${D}${bindir}

   install -m 0755 ${WORKDIR}/wpa_cli ${D}/{sbindir}
   install -m 0755 ${WORKDIR}/wpa_supplicant ${D}/{sbindir}
   install -m 0755 ${WORKDIR}/wpa_passphrase ${D}/bindir}
}

After the system was built my files arent available in the rootfs. I see that the files from the original wpa-supplicant recipe will be taken. I thought if my layer has a higher priority than the recipe, I am able to overwrite those files. Any idea whats the problem?

Hi Patrick

Welcome to the Toradex Community!

Could you provide the version of your module’s hardware and software?
Which openembedded branch are you compiling? What is your application?