cmake: DTS post-processing of ELF file depends on CONFIG_HAS_DTS

Only run gen_handles.py if CONFIG_HAS_DTS is set. This enables vendors
without device tree implementations to compile without the generated
dependencies.

Signed-off-by: Morten Priess <mtpr@oticon.com>
1 file changed