To build YAFFS in the Linux kernel tree you need to run the patch-in-yaffs script. After you've run the script, go back tou your normal kernel making procedure and configure the yaffs settings you want.