Page MenuHomeFreeBSD

net/wifi-firmware-kmod: [WIP] Attempt to simplify wifi-firmware ports
AbandonedPublic

Authored by jrm on May 26 2024, 2:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 17, 7:03 PM
Unknown Object (File)
Mon, Jan 6, 10:48 AM
Unknown Object (File)
Oct 31 2024, 3:00 AM
Unknown Object (File)
Oct 31 2024, 2:56 AM
Unknown Object (File)
Oct 31 2024, 2:54 AM
Unknown Object (File)
Oct 21 2024, 7:04 AM
Unknown Object (File)
Sep 26 2024, 10:40 AM
Unknown Object (File)
Sep 24 2024, 9:25 AM
Subscribers
None

Details

Reviewers
bz
Summary

This is very much still a work in progress. You may not want to spend time looking yet, but I'm creating this reviewing now to prevent any duplication of work. I may not have an opportunity to continue for some time due to BSDCan

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 57922
Build 54810: arc lint + arc unit

Event Timeline

jrm requested review of this revision.May 26 2024, 2:06 PM
jrm created this revision.

TODO:

  • look into the post-install-license target
  • run through linters (portclippy/portfmt)
  • testing

I compared this to a pre-flavor version I had (which never was in Phab).
Flavors were an after-though for this revision after manu requested the firmware to be broken up in D44918.

I think I in the end indeed just substituted most of the WRCSRC bits with WRKSRC/FLAVOR and done the trick from porters handbook given one of the FLAVOR variables wasn't set for one of the .for loops at the right moment and weird stuff had happened. If this is not a problem anymore I'll be more than happy with your cleanup. Let me know when you are done and I'll run a build.

It'll likely make it easier to later add (a) per-__FreeBSD_version versions and (b) only install the firmware and no more .ko at all in main and later (given imp's work there).

Thanks a lot for doing it and taking the time. It was last year and the this year hard for anything to step up despite that I had asked at some point on wireless (interested parties) and added ports committers as subscribers.

net/wifi-firmware-kmod/Makefile.inc
30

I think I have an idea how to sort the licenses; I'll see if I can find time to fully test in between other things.

net/wifi-firmware-kmod/Makefile.inc
30

Hi Bjoern,

I believe there are two reasonable solutions.

  1. Update Mk/bsd.license.mk to add something like a LICENSE_EXTRA variable to record these extra files associated with the main LICENSE_FILE. This way ports will only need to set one variable, and the license framework will handle everything in a /correct/ way.
  1. Append all these files into one license file.
  1. will make this and potentially other ports simpler, and 2. will be easier and quicker now.

What do you think?

Hi Joe,

I took your changes from here and posted an attempt to sort out the license file problem a different way.
See https://reviews.freebsd.org/D46124

I don't know if that approach is feasible but we can also discuss that there.