From g1201 at myriade.ca Thu Mar 7 07:20:36 2019 From: g1201 at myriade.ca (Gilles) Date: Thu, 7 Mar 2019 01:20:36 -0500 Subject: Adding a .bin driver Message-ID: 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 From rln-nard at arbetsmyra.dyndns.org Thu Mar 7 13:37:46 2019 From: rln-nard at arbetsmyra.dyndns.org (Ronny Nilsson) Date: Thu, 7 Mar 2019 13:37:46 +0100 Subject: Adding a .bin driver In-Reply-To: References: Message-ID: <201903071337.46653.rln-nard@arbetsmyra.dyndns.org> 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//fs-template/lib/firmware cp rt2870.bin nard/platform//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