dtc-noyaml.patch 599 B

12345678910111213141516
  1. diff -Nur linux-5.4.53.orig/scripts/dtc/dtc.c linux-5.4.53/scripts/dtc/dtc.c
  2. --- linux-5.4.53.orig/scripts/dtc/dtc.c 2020-07-22 09:33:18.000000000 +0200
  3. +++ linux-5.4.53/scripts/dtc/dtc.c 2020-07-28 14:20:10.000000000 +0200
  4. @@ -349,12 +349,6 @@
  5. if (streq(outform, "dts")) {
  6. dt_to_source(outf, dti);
  7. -#ifndef NO_YAML
  8. - } else if (streq(outform, "yaml")) {
  9. - if (!streq(inform, "dts"))
  10. - die("YAML output format requires dts input format\n");
  11. - dt_to_yaml(outf, dti);
  12. -#endif
  13. } else if (streq(outform, "dtb")) {
  14. dt_to_blob(outf, dti, outversion);
  15. } else if (streq(outform, "asm")) {