Kernel external module with firmware
A message that is not in the archive (sent off-list or not yet received): [email protected]
Ok, I figured it out :).
I need to declare a "non-standard" package name. Solved by adding PACKAGES_append += "${PN}-firmware".
Quoted 46 lines · Sol via lists.yoctoproject.org
Hi,
I followed the hello-mod example and got my module compiling, installed, mounted to target and even functioning (talking to the hw). I am trying to add now firmware binaries to send to the hardware.*I added the following to my .bb*:
do_install_append() { install -d ${D}${base_libdir}/firmware/xxx install ${WORKDIR}/FwImage/*.bin ${D}${base_libdir}/firmware/xxx/ }FILES_${PN}-firmware = "${base_libdir}/firmware/xxx/xxx*.bin"
*This is the output from bitbake -e xxx|grep ^FILES_* :
FILES_xxx-firmware="/lib/firmware/xxx/xxx*.bin" FILES_xxx-bin="/usr/bin/*/usr/sbin/*" FILES_xxx-locale="/usr/share/locale" FILES_SOLIBSDEV="/lib/lib*.so/usr/lib/lib*.so" FILES_xxx-doc="/usr/share/doc/usr/share/man/usr/share/info/usr/share/gtk-doc/usr/share/gnome/help"
FILES_xxx=""
FILES_xxx-dev="/usr/include/lib/lib*.so/usr/lib/lib*.so/usr/lib/*.la/usr/lib/*.o/usr/lib/pkgconfig/usr/share/pkgconfig/usr/share/aclocal/lib/*.o/usr/lib/xxx/*.la/lib/*.la" FILES_xxx-dbg="/usr/lib/debug/usr/src/debug" FILES_xxx-staticdev="/usr/lib/*.a/lib/*.a/usr/lib/xxx/*.a"*But I still get*:
ERROR: xxx-module-r0do_package: QA Issue: xxx: Files/directories were installed but not shipped in any package:
/lib/firmware
/lib/firmware/xxx
/lib/firmware/xxx/xxx1.bin
/lib/firmware/xxx/xxx2.bin
/lib/firmware/xxx/xxx3.bin
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them withindo_install.
xxx: 5 installed and not shipped files. [installed-vs-shipped]Any idea what am I doing wrong?
Thanks,
Sol