Page MenuHomeFreeBSD

LinuxKPI: treat firmware file names more lenient
ClosedPublic

Authored by bz on Mar 31 2021, 3:44 PM.

Details

Summary

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:
MFC-after: 2 weeks
Differential Revision:

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

bz requested review of this revision.Mar 31 2021, 3:44 PM

LGTM
There don't seems to be drm firmware with '-' in it btw.

hselasky added a subscriber: hselasky.

Looks good.

This revision is now accepted and ready to land.Apr 1 2021, 9:10 AM