Skip to contentSkip to conversation

dtc: Remove -O dtbo support

PATCH Applied Masahiro Yamada 2 participants 2 messages Mar 11, 2021 – Mar 12, 2021 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dtc: Remove -O dtbo support

This partially reverts 163f0469bf2e ("dtc: Allow overlays to have .dtbo extension").

I think accepting "dtbo" as --out-format is strange. This is not shown by --help, at least.

*.dtb and *.dtbo should have the same format, "dtb".

---

 dtc.c | 2 --
 1 file changed, 2 deletions(-)
dtc.c +0 -2
index 838c5df..3962d3f 100644
@@ -359,8 +359,6 @@ 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")) {
Signature · 1 line
2.27.0

A message that is not in the archive (sent off-list or not yet received): 20210311094956.924310-1-masahiroy-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org

Applied
#2 lore raw
Quoted 9 lines · Masahiro Yamada

This partially reverts 163f0469bf2e ("dtc: Allow overlays to have .dtbo extension").

I think accepting "dtbo" as --out-format is strange. This is not shown by --help, at least.

*.dtb and *.dtbo should have the same format, "dtb".

Oops, yes. When reviewing 163f0469bf2e I missed the fact that it accepted -O dtbo as well changing the default based on file extension.

Applied.

Quoted 18 lines

---

 dtc.c | 2 --
 1 file changed, 2 deletions(-)
dtc.c +0 -2
index 838c5df..3962d3f 100644
@@ -359,8 +359,6 @@ 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")) {
Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson