by mikece · 11mo ago · 0 comments
Improving FreeBSD will make it easier to run BSD on non-apple hardware which will eat into their bottom line.
The number of people who will buy a Mac to run BSD is a rounding error, and those people won't buy iCloud subscriptions anyway.
The number of people who want to run FreeBSD on their laptops probably numbers in the hundreds. Not exactly a threat to Apple's bottom line.
On the other hand, some of those people are FreeBSD developers who create and maintain code that Apple would like to have the option of using. That relationship is worth something to Apple.
Due to GPL, they release the sources to the BSD code they use. Everything else is proprietary.
Likewise Sony used BSD for PlayStation OS. They publish the sources to the changes to BSD they made, the rest is proprietary.
BSD has a BSD license. It doesn't require source code releases.
Aside from that the answer is "Corporate Goodwill." That actually is a bottom line number that gets reported.
Because they sell and advertise MacOS. Not "compatible with a wide range of OSes" (like say raspberry pis).
People buying a laptop due to goodwill and openness does happen (I bought my framework 13 due to that), but that's not a game Apple has played since Woz left - and for the worse, I think.
I have seen others say that CUPS is.
And there is libdispatch, mdns, etc.
Anyway, they contribute more than you think.
The OS-X (now branded as "macOS") kernel was not, and is not, a derivative of the FreeBSD kernel, or any other BSD, even though macOS/OS-X has a FreeBSD kernel component due to its Mach heritage. The userland tools are however BSD. OS-X's kernel is XNU and from the XNU GitHub repo[0]:
XNU kernel is part of the Darwin operating system for use
in macOS and iOS operating systems. XNU is an acronym for X
is Not Unix. XNU is a hybrid kernel combining the Mach
kernel developed at Carnegie Mellon University with
components from FreeBSD and a C++ API for writing drivers
called IOKit. XNU runs on x86_64 and ARM64 for both single
processor and multi-processor configurations.
I recommend the book "Mac OS X Internals"[1] for a detailed analysis of same.EDIT:
In theory, XNU could simultaneously run the existing FreeBSD subsystem alongside Linux and/or MS-Windows ones. In practice, this would be a herculean effort fraught with difficulty.
See QNX[2] for another example of a micro-kernel OS architecture.
0 - https://github.com/apple-oss-distributions/xnu
1 - https://books.apple.com/us/book/mac-os-x-internals/id4343583...
But hey, Darwin is open source so if someone wants to do go on a provenance archeological dig, it could be done!
Apple has no interest in assisting a competing operating system.
ie anything Apple didn't create/release themselves
OS-X/macOS runs an entirely different kernel called XNU[0][1], which is why userland tools can be imported whereas FreeBSD kernel and device driver code cannot.