]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
LinuxKPI: treat firmware file names more lenient
authorBjoern A. Zeeb <bz@FreeBSD.org>
Wed, 31 Mar 2021 15:25:01 +0000 (15:25 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Fri, 2 Apr 2021 10:03:39 +0000 (10:03 +0000)
commit37c3241a43160dd236bd4767fce46e846cb17227
tree6c55cadcfa451ee830112b953c75b98ec46e405e
parent4ded022d3b8948e92c8f8353364ff2c79d720e68
LinuxKPI: treat firmware file names more lenient

A lot of firmware files have a "-" in the name.  That "-" is a problem
when dealing with shell variables or loader (e.g., auto-loading .ko).
It may thus often be convenient to generate firmware kernel object files
with s/-/_/g in the name.  In order to automatically find them from
drivers using LinuxKPI also substitue the '-' for a '_' like we do
for '/' and '.' already.

Reviewed-by: hselasky, manu (ok)
MFC-after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D29514
sys/compat/linuxkpi/common/src/linux_firmware.c