Adding a .bin driver
Ronny Nilsson
rln-nard at arbetsmyra.dyndns.org
Thu Mar 7 13:37:46 CET 2019
Hi
If you only need a single firmware blob you can forget about the
linux-firmware-1 package and do like this instead:
mkdir -p nard/platform/<MY-PRODUCT>/fs-template/lib/firmware
cp rt2870.bin nard/platform/<MY-PRODUCT>/fs-template/lib/firmware
Regarding your build issue; I tried your product recipe and it works fine! But
since you don't need linux-firmware-1 anymore lets not dig into it.
As an alternative to distclean you can as well try
make productclean
It will shorten the rebuild cycle by retaining the toolchain.
/Ronny
------------------------------------------
> My minimal experience with make is a painful drawback. I need help.
>
> In my project, I need to add the rt2870.bin driver which is in
> /apps/linux-firmware/.
>
> The Rules.mk of my b2 "product" or platform is:
> ===
> export BOARD ?= raspi_b_rev2
>
> # Product b2 recipe
>
> PKGS_APPS += linux-firmware/linux-firmware-1
>
> PRODUCT_DEPS += skeleton
> include $(PATH_TOP)/platform/skeleton/Rules.mk
> ===
> It results in:
> make[3]: Entering directory
> '/home/gilles/nard/apps/linux-firmware/linux-firmware-1'
> make[3]: Nothing to be done for 'all'.
> ...
> Makefile:9: recipe for target 'install' failed
>
> Is it possible to load only the required drivers instead of the full set
> of linux-firmware?
>
> In general, how do I add a .bin, .so, a data file or a mix of those?
>
> I read your pages many times. I am reading the mailman archives now.
>
> There I found the importance of make distclean, before compiling.
>
> Thanks.
>
> ~ Gilles
More information about the Nard
mailing list