HomeFreeBSD

LinuxKPI: treat firmware file names more lenient

Description

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)
Differential Revision: https://reviews.freebsd.org/D29514

(cherry picked from commit 37c3241a43160dd236bd4767fce46e846cb17227)

Details

Provenance
bzAuthored on Mar 31 2021, 3:25 PM
Reviewer
hselasky
Differential Revision
D29514: LinuxKPI: treat firmware file names more lenient
Parents
rG57d5000e593b: mlx5: remove dependency on ifnet specifics of linux/netdevice.h
Branches
Unknown
Tags
Unknown