diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2021-01-06 15:26:08 +0530 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2021-01-11 21:55:55 +1100 |
commit | 163f0469bf2ed8b2fe5aa15bc796b93c70243ddc (patch) | |
tree | 0c29902e8d5d175188ad5a8b3d2b3743bbdb990c /dtc.c | |
parent | 3b01518e688d7c7d9d46ac41b11dd2b0c4788775 (diff) | |
download | device-tree-compiler-163f0469bf2ed8b2fe5aa15bc796b93c70243ddc.tar.gz |
dtc: Allow overlays to have .dtbo extension
Allow the overlays to have .dtbo extension instead of just .dtb. This
allows them to be identified easily by tools as well as humans.
Allow the dtbo outform in dtc.c for the same.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Message-Id: <30fd0e5f2156665c713cf191c5fea9a5548360c0.1609926856.git.viresh.kumar@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'dtc.c')
-rw-r--r-- | dtc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -122,6 +122,8 @@ static const char *guess_type_by_name(const char *fname, const char *fallback) return "dts"; if (!strcasecmp(s, ".yaml")) return "yaml"; + if (!strcasecmp(s, ".dtbo")) + return "dtb"; if (!strcasecmp(s, ".dtb")) return "dtb"; return fallback; @@ -357,6 +359,8 @@ int main(int argc, char *argv[]) #endif } else if (streq(outform, "dtb")) { dt_to_blob(outf, dti, outversion); + } else if (streq(outform, "dtbo")) { + dt_to_blob(outf, dti, outversion); } else if (streq(outform, "asm")) { dt_to_asm(outf, dti, outversion); } else if (streq(outform, "null")) { |