Re: Removing COMPAT stuff from kernel

Greg Troxel <[email protected]> Wed, 30 Jul 2025 11:26:25 -0400
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <[email protected]>
Vincent DEFERT <[email protected]> writes:

> 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.

did you try

  read the kernel config

  comment out stuff you think you don't want

  see if the resulting kernel still does what you want?