The 'gen_build_files.sh' script fails if the build directory is not the same as the source directory, e.g. make menuconfig O=/path/to/somewhere! It won't generate the required files!
Affects 1.17.0!
Fixed in git.