Full, detailed instructions given in man afterboot
To compile a kernel inside a writable source tree, do the following:
# cd /usr/src/sys/arch/somearch/conf
# vi SOMEFILE # (to make any changes)
# config SOMEFILE
# cd ../compile/SOMEFILE
# make
Multiple configs. -- easy to see the differences between them