Re: building custom kernel on -current: unknown option "COMPAT_LINUX"

From: John Baldwin <jhb_at_freebsd.org>
Date: Thu, 14 Feb 2013 16:31:55 -0500
On Saturday, February 09, 2013 10:01:25 pm illoai_at_gmail.com wrote:
> On 9 February 2013 20:26, Anton Shterenlikht <mexas_at_bristol.ac.uk> wrote:
> 
> >
> > I removed COMPAT_LINUX, and only left
> >
> > options COMPAT_43
> > options COMPAT_LINUX32
> >
> 
> From /usr/src/sys/amd64/conf/NOTES (9.1-RELEASE):
> 
> # Enable Linux ABI emulation
> #XXX#options    COMPAT_LINUX
> 
> # Enable 32-bit Linux ABI emulation (requires COMPAT_43 and
> COMPAT_FREEBSD32)
> options         COMPAT_LINUX32
> 
> I think I first ran up against this when I moved to 9.0 some
> time ago, but yes, amd64 uses a different kernel config
> option than i386 for linux compat.
> 
> I tend to leave it as a module & load it if I perchance
> need it. This also allows rebuilding & reloading the
> modules without a reboot, should it need it.  The
> modules seems to build fine without having to
> fiddle about with kernel config jiggerypokey.

COMPAT_LINUX will work on amd64 eventually and will be used for 64-bit Linux 
binaries (COMPAT_LINUX32 is to run Linux/i386 binaries on FreeBSD/amd64).

-- 
John Baldwin
Received on Thu Feb 14 2013 - 20:38:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:34 UTC