Then use the OpenWrt Imagebuilder for your custom image and it will automatically include the NAND support.