Removing COMPAT stuff from kernel

Vincent DEFERT <[email protected]> Wed, 30 Jul 2025 15:20:45 +0000
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <[email protected]>
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.