The Linux kernel 4.6.6 - For creating custom Linux appliances in FreeBSD without a Linux VM or jail. reddit / BSD ---------------------------------------------------------------------- pyvpx · 2016-08-14 13:55 I dont understand how this works at all. I can build a Linux distro/appliance in FreeBSD, with the FreeBSD toolchain? or...? more succinctly, how does this port get used *precisely*? ---------------------------------------------------------------------- stopczyk · 2016-08-15 03:14 I used the port so that I can delete the linux kernel. Felt good. Seriously though, I'm curious myself. I would expect anyone building a linux appliance to have a custom kernel. Perhaps patches in the port could be of assistance getting that to work, but even that seems shady. ---------------------------------------------------------------------- Freeky · 2016-08-15 03:18 It builds the Linux kernel and dumps it in `$LINUX_INSTALL_PATH` - by default `/usr/local/linux-kernel` Providing a suitable userspace to go with it, and turning it into something bootable, is left as an exercise. ---------------------------------------------------------------------- pyvpx · 2016-08-15 08:03 left as an exercise meaning it's *possible*, then? ---------------------------------------------------------------------- fredmorcos · 2016-08-15 09:56 This might be related to that: https://www.freebsd.org/news/status/report-2015-10-2015-12.html#Linux- Kernel-as-a-Library-Added-to-the-Ports-Collection ---------------------------------------------------------------------- Freeky · 2016-08-15 12:50 Avoiding pre-built binaries and emulation, you can cross-compile. e.g. lang/gnatdroid-x86 will install a cross-compiler for Android. I don't think there's a port for a more generic Linux cross-compiler but it's certainly doable. Trivial with Go - `GOOS=linux GOARCH=amd64 go build` and it'll spew out a binary for that platform and architecture no questions asked.