Updated defconfig, added build function