Can I compile Linux hardware code with FreeBSD?

So I have a close-source wi-fi card. It works fine with windows ofc and fine with Linux because Ubuntu's developers develop a hardware support for that driver and its open-source. So Im really enjoying using FreeBSD but not being able to connection internet without ethernet cable or extra wi-fi dongle is what I want. Here is the question:
Can I add Linux's hardware support codes to FreeBSD(that I cloned from its github page) and compile it and copy to my disk with hardware supports I need??

Thanks for reading all these and thinking to help...

So its that simple to download an AUR package on Arch Linux:
What about FreeBSD?!
I also saw topics opened about this driver and still not supports over ports or 13.0 update so I guess the best solution can be adding Linux things in it.
 
Hello,

Unfortunately this is not so simple.

Someone have created already an request, you maybe want to create some noise.
Yea I see. Last comment was 2020-07-31 11:35:53 UTC. I dont have a BugZilla account currently so I will not comment but I guess maybe I can solve it by copying that source files in FreeBSD source or cant we cross-compile that codes for FreeBSD OS binary and copy them to running system then inform system about that new hardwares(by the way I guess that cant be work maybe because systems compiling with hardwares already so adding them later not seems to be very good idea.) It works on Arch Linux to download compiled hardware binaries and being able to use them without recompiling whole system. Maybe I can check out what that hardware AUR package contains and changes on Arch Linux so try same things on FreeBSD too. Some time FreeBSD makes me like using linux. ofc its not linux but system paths like linux lol(maybe because unix-like huh)
 
arch_linux_aur_package_for_wificard.png


Oh seems like you are right. Lots of Linux things :(
 
Back
Top