Hi! In src.conf, it is documented as follows: WITHOUT_FDT Set to not build Flattened Device Tree support as part of the base system. This includes the device tree compiler (dtc) and libfdt support library. I have noticed that these files are actually not deleted after setting the flag in src.conf. I also didn't spot any Obsolete files related with this build option. How can I check that it even honors the build flag, i.e. it does not build those binaries?
By inspection WITH_/WITHOUT_FDT does not control the build of the dtc compiler; libfdt is not an installed library so does not need to be optionally removed.
Hi, So we could say: “works as intended”? What exactly does it control then? Thx
% git ls-files | ag Makefile | xargs ag MK_FDT stand/Makefile 18:S.${MK_FDT}+= fdt stand/efi/Makefile 11:SUBDIR.${MK_FDT}+= fdt stand/efi/loader/Makefile 72:.if defined(HAVE_FDT) && ${MK_FDT} != "no" stand/powerpc/Makefile 10:SUBDIR.${MK_FDT}+= kboot stand/powerpc/ofw/Makefile 24:.if ${MK_FDT} == "yes" stand/uboot/Makefile 7:SUBDIR.${MK_FDT}+=fdt targets/pseudo/userland/misc/Makefile.depend 10:.if ${MK_FDT} != "no" So it appears that it controls FDT in a small set of loaders.
Interesting, thank you for elaborating on this! Do you agree that the src.conf manual page entry for WITHOUT_FDT is not clear in this regard? Closing this bug.
(In reply to Dries Michiels from comment #4) Yes I agree it is unclear and also I think as implemented it doesn't quite make sense.