dtbtool: Recursively search input directory for dtb files
On some kernels (msm8916), the build creates an empty subdirectory
in the dtb output directory.
arch/arm64/boot/dts <-- dtb location
arch/arm64/boot/dts/qcom <-- empty directory
The dt_image.mk will find the first directory which exists in its
predefined list of directories. The empty directory then causes
no dtb files to be found.
Rather than try to specify the correct directory, make dtbtool smart
enough to traverse into subdirectories and find all dtb files. An
accompanying change to dt_image.mk is required to only search the
most generic path.
Change-Id: I56e7344c5c6d1e6a56d939cf8aaf3da9f1e6a714
1 file changed