How to remove all 32-bit code from the kernel and from all the ports.

I compile kernel and ports from source. Is it possible to remove all 32-bit code, and how ? Offcourse i want to compile my compilers clang,gcc without any problem.
Note : Everything which explicitly depends on 32-bit will fail...
 
The beauty of FreeBSD! Mixing 32bits with 64bits in Linux (with few exceptions) for a long time would have spelt doom.
 
Is this MK_LIB32 documented in a man page. I did not found it ?

What i did found was:
cat /usr/src/release/Makefile | grep MK
Code:
        DESTDIR=${.OBJDIR}/${.TARGET} MK_AT=no \
        MK_INSTALLLIB=no MK_LIB32=no MK_MAIL=no \
        MK_TOOLCHAIN=no MK_PROFILE=no \
        MK_RESCUE=no MK_DICT=no \
        MK_KERNEL_SYMBOLS=no MK_TESTS=no MK_DEBUG_FILES=no \
        DESTDIR=${.OBJDIR}/${.TARGET} MK_AT=no \
        MK_GAMES=no \
        MK_INSTALLLIB=no MK_LIB32=no MK_MAIL=no \
        MK_TOOLCHAIN=no MK_PROFILE=no \
        MK_RESCUE=no MK_DICT=no \
        MK_KERNEL_SYMBOLS=no MK_TESTS=no MK_DEBUG_FILES=no \
        DESTDIR=${.OBJDIR}/${.TARGET} MK_RESCUE=no MK_KERNEL_SYMBOLS=no \
        MK_TESTS=no MK_DEBUG_FILES=no \
 
In my kernel conf file i'll give a try to :
Code:
nooption     COMPAT_FREEBSD32    # Compatible with i386 binaries
I wonder what will fail ?
 
Generally speaking, if every package is compiled from source and supports 64-bit, nothing. Its quite literal as stated there, eg; if a port downloaded a 32-bit binary and installed that as the package, the binary will not run. I tweaked my kernel / world configuration in the past (I just run GENERIC now, benefit is minimal but its fun for tinkering), and this was not an option that caused any pain :).
 
Back
Top