1000-omap3_beagle_xm--10_linux-20_linux_xen-detect-devicetree-file.patch 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500
  2. +++ b/util/grub.d/10_linux.in 2021-06-18 02:45:30.129589402 -0500
  3. @@ -155,6 +155,14 @@
  4. initrd $(echo $initrd_path)
  5. EOF
  6. fi
  7. + if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then
  8. + # TRANSLATORS: Device tree path isn't identifier. Should be translated.
  9. + message="$(gettext_printf "Loading devices tree path ...")"
  10. + sed "s/^/$submenu_indentation/" << EOF
  11. + echo '$(echo "$message" | grub_quote)'
  12. + devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb
  13. +EOF
  14. + fi
  15. sed "s/^/$submenu_indentation/" << EOF
  16. }
  17. EOF
  18. @@ -261,6 +269,10 @@
  19. fi
  20. fi
  21. + if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then
  22. + gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" >&2
  23. + fi
  24. +
  25. # The GRUB_DISABLE_SUBMENU option used to be different than others since it was
  26. # mentioned in the documentation that has to be set to 'y' instead of 'true' to
  27. # enable it. This caused a lot of confusion to users that set the option to 'y',
  28. --- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500
  29. +++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:46:39.199589265 -0500
  30. @@ -172,6 +172,14 @@
  31. ${module_loader} ${rel_dirname}/${xenpolicy}
  32. EOF
  33. fi
  34. + if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then
  35. + # TRANSLATORS: Device tree path isn't identifier. Should be translated.
  36. + message="$(gettext_printf "Loading devices tree path ...")"
  37. + sed "s/^/$submenu_indentation/" << EOF
  38. + echo '$(echo "$message" | grub_quote)'
  39. + devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb
  40. +EOF
  41. + fi
  42. sed "s/^/$submenu_indentation/" << EOF
  43. }
  44. EOF
  45. @@ -316,6 +324,10 @@
  46. fi
  47. fi
  48. + if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then
  49. + gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" >&2
  50. + fi
  51. +
  52. # The GRUB_DISABLE_SUBMENU option used to be different than others since it was
  53. # mentioned in the documentation that has to be set to 'y' instead of 'true' to
  54. # enable it. This caused a lot of confusion to users that set the option to 'y',