Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 857639 - sys-kernel/gentoo-sources-5.15.52: No rule to make target '/lib/firmware/bnx2/bnx2-mips-09-6.2.1a.fw', needed by 'drivers/base/firmware_loader/builtin/bnx2/bnx2-mips-09-6.2.1a.fw.gen.o'
Summary: sys-kernel/gentoo-sources-5.15.52: No rule to make target '/lib/firmware/bnx2...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-11 13:49 UTC by Alex Efros
Modified: 2022-07-11 14:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
.config (.config,147.56 KB, text/plain)
2022-07-11 13:49 UTC, Alex Efros
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Efros 2022-07-11 13:49:42 UTC
Created attachment 791051 [details]
.config

While updating from sys-kernel/gentoo-sources-5.15.41 to 5.15.52 I got kernel compilation error. Kernel config is same (make oldconfig without any changes).

# uname -a
Linux cruncher 5.15.41-gentoo #1 SMP PREEMPT Sat May 21 07:23:59 GMT 2022 x86_64 Intel(R) Xeon(R) CPU X5680 @ 3.33GHz GenuineIntel GNU/Linux
# eselect kernel list
Available kernel symlink targets:
  [1]   linux-5.15.52-gentoo *
# cd /usr/src/linux
# gzip -dc /proc/config.gz >.config
# make oldconfig
# make
...
make[4]: *** No rule to make target '/lib/firmware/bnx2/bnx2-mips-09-6.2.1a.fw', needed by 'drivers/base/firmware_loader/builtin/bnx2/bnx2-mips-09-6.2.1a.fw.gen.o'.  Stop.
make[3]: *** [scripts/Makefile.build:551: drivers/base/firmware_loader/builtin] Error 2
make[2]: *** [scripts/Makefile.build:551: drivers/base/firmware_loader] Error 2
make[1]: *** [scripts/Makefile.build:551: drivers/base] Error 2
make: *** [Makefile:1871: drivers] Error 2

# grep -i bnx2 .config
CONFIG_EXTRA_FIRMWARE="bnx2/bnx2-mips-09-6.2.1a.fw"
# CONFIG_SCSI_BNX2_ISCSI is not set
CONFIG_BNX2=y
# CONFIG_BNX2X is not set

# ls -l drivers/base/firmware_loader/builtin/bnx2/
total 4
-rw-r--r-- 1 root root 544 Jul 11 13:27 bnx2-mips-09-6.2.1a.fw.gen.S



Not sure is it related to the issue, but it looks like older sys-kernel/linux-firmware-20210818 provides more versions including one matching current kernel's version (bnx2-mips-09-6.2.1a):

# qlist '=sys-kernel/linux-firmware-20210818' | grep bnx2-mips
/lib/firmware/bnx2/bnx2-mips-06-4.6.16.fw
/lib/firmware/bnx2/bnx2-mips-06-6.0.15.fw
/lib/firmware/bnx2/bnx2-mips-09-6.0.17.fw
/lib/firmware/bnx2/bnx2-mips-09-5.0.0.j9.fw
/lib/firmware/bnx2/bnx2-mips-09-4.6.17.fw
/lib/firmware/bnx2/bnx2-mips-06-6.2.1.fw
/lib/firmware/bnx2/bnx2-mips-09-6.2.1.fw
/lib/firmware/bnx2/bnx2-mips-09-6.2.1a.fw
/lib/firmware/bnx2/bnx2-mips-09-6.2.1b.fw
/lib/firmware/bnx2/bnx2-mips-06-5.0.0.j6.fw
/lib/firmware/bnx2/bnx2-mips-09-5.0.0.j3.fw
/lib/firmware/bnx2/bnx2-mips-06-5.0.0.j3.fw
/lib/firmware/bnx2/bnx2-mips-06-6.2.3.fw
/lib/firmware/bnx2/bnx2-mips-09-5.0.0.j15.fw

but current sys-kernel/linux-firmware-20220708 provides less versions and don't provide version matching current kernel's version:

# qlist '=sys-kernel/linux-firmware-20220708' | grep bnx2-mips
/lib/firmware/bnx2/bnx2-mips-09-6.2.1b.fw
/lib/firmware/bnx2/bnx2-mips-06-6.2.3.fw
Comment 1 Alex Efros 2022-07-11 14:05:44 UTC
Downgrading from sys-kernel/linux-firmware-20220708 (current stable) to 20220610 (previous stable) has resolved the issue.
Comment 2 Ben Kohler gentoo-dev 2022-07-11 14:23:45 UTC
This is because you are hardcoding CONFIG_EXTRA_FIRMWARE="bnx2/bnx2-mips-09-6.2.1a.fw"