Using "make uboot-menuconfig" and selecting Boot Media -> Support for booting from NAND flash (NAND_BOOT) causes the build to fail with the following. /buildroot/output/host/bin/aarch64-buildroot-linux-gnu-ld.bfd: common/spl/built-in.o: in function `spl_nand_fit_read': /buildroot/output/build/uboot-lf-5.10.y-1.0.0/common/spl/spl_nand.c:44: undefined reference to `nand_spl_load_image' /buildroot/output/host/bin/aarch64-buildroot-linux-gnu-ld.bfd: common/spl/built-in.o: in function `spl_nand_load_element': /buildroot/output/build/uboot-lf-5.10.y-1.0.0/common/spl/spl_nand.c:56: undefined reference to `nand_spl_load_image' /buildroot/output/host/bin/aarch64-buildroot-linux-gnu-ld.bfd: /buildroot/output/build/uboot-lf-5.10.y-1.0.0/common/spl/spl_nand.c:84: undefined reference to `nand_spl_load_image' /buildroot/output/host/bin/aarch64-buildroot-linux-gnu-ld.bfd: common/spl/built-in.o: in function `spl_nand_load_image': /buildroot/output/build/uboot-lf-5.10.y-1.0.0/common/spl/spl_nand.c:102: undefined reference to `nand_init' /buildroot/output/host/bin/aarch64-buildroot-linux-gnu-ld.bfd: /buildroot/output/build/uboot-lf-5.10.y-1.0.0/common/spl/spl_nand.c:166: undefined reference to `nand_deselect' make[3]: *** [scripts/Makefile.spl:420: spl/u-boot-spl] Error 1 make[2]: *** [Makefile:1864: spl/u-boot-spl] Error 2 make[1]: *** [package/pkg-generic.mk:293: /buildroot/output/build/uboot-lf-5.10.y-1.0.0/.stamp_built] Error 2 make: *** [Makefile:82: _all] Error 2 Target is freescale_imx8mnevk. Commands issued: make uboot-menuconfig Select Boot Media -> Support for booting from NAND flash, exit and save. make uboot-rebuild all
Thanks for your bug report, but this is not a Buildroot bug, but a U-Boot bug. It should be reported to the U-Boot community: this bug exists outside of Buildroot, if you build the same version of U-Boot, with the same exact configuration produced by Buildroot, you will reproduce the same issue.