Re: Removing COMPAT stuff from kernel

Paul Goyette <[email protected]> Wed, 30 Jul 2025 08:27:32 -0700 (PDT)
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <[email protected]>
Build a kernel without the varios ``options COMPAT_*''

you can start with the NOCOMPAT config instead of GENERIC - see
$SRC/sys/arch/amd64/conf/*

On Wed, 30 Jul 2025, Vincent DEFERT wrote:

> Is there a way to remove all the compatibility code (Linux, 32 bit, etc) when 
> building the kernel?
> For an embedded use case, I'm 100% sure I will never need it and I'm curious 
> to see how small the kernel can be.
>
> !DSPAM:688a385d16201706619054!
>
>

+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)           | 1B11 1849 721C 56C8 F63A | [email protected]    |
| Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | [email protected]  |
| & Network Engineer  |                          | [email protected] |
+---------------------+--------------------------+----------------------+