CONFIG_LEGACY_BOARDS is not available for thedefaultarchitecture x86.
Result is shown for architecture mips

CONFIG_LEGACY_BOARDS (not configurable)

configname: CONFIG_LEGACY_BOARDS

Linux Kernel Configuration
└─>LEGACY_BOARDS
In linux kernel since version 4.1 (release Date: 2015-06-21)  
Select this from your board if the board must use a legacy, non-UHI,
boot protocol. This will cause the kernel to scan through the list of
supported machines calling their detect functions in turn if the
kernel is booted without being provided with an FDT via the UHI
boot protocol.