This matches the behavior of the makefile ports but implemented for CMake, making it easy to specify custom board definitions. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>