Merge changes from topic "dtbtool" into o8.1

* changes:
  dtbtool: dtbToolCM -> dtbToolLineage
  dtbtool: use O_TRUNC when writing to output file
  dtbtool: Recursively search input directory for dtb files
  Fix build breaks on M
  Fix error checking of open file error
  dtbtool: use stat to determine file type if its unknown
  dtbtool: use detected version to determine entry_size