0001-add-starfive-support.patch 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. diff --git a/config/meson.build b/config/meson.build
  2. index 1068c6d..7f8abe9 100755
  3. --- a/config/meson.build
  4. +++ b/config/meson.build
  5. @@ -6,6 +6,8 @@ elif omx_target == 'zynqultrascaleplus'
  6. sub = 'zynqultrascaleplus'
  7. elif omx_target == 'tizonia'
  8. sub = 'tizonia'
  9. + elif omx_target == 'stf'
  10. + sub = 'stf'
  11. else
  12. # No config file defined for the 'generic' target
  13. sub = ''
  14. diff --git a/config/stf/gstomx.conf b/config/stf/gstomx.conf
  15. new file mode 100644
  16. index 0000000..b4cdebb
  17. --- /dev/null
  18. +++ b/config/stf/gstomx.conf
  19. @@ -0,0 +1,17 @@
  20. +[omxh265dec]
  21. +type-name=GstOMXH265Dec
  22. +core-name=/usr/lib/libsf-omx-il.so
  23. +component-name=sf.dec.decoder.h265
  24. +in-port-index=0
  25. +out-port-index=1
  26. +rank=0
  27. +hacks=pass-profile-to-decoder;pass-color-format-to-decoder;ensure-buffer-count-actual
  28. +
  29. +[omxh264dec]
  30. +type-name=GstOMXH264Dec
  31. +core-name=/usr/lib/libsf-omx-il.so
  32. +component-name=sf.dec.decoder.h264
  33. +in-port-index=0
  34. +out-port-index=1
  35. +rank=1
  36. +hacks=pass-profile-to-decoder;pass-color-format-to-decoder;ensure-buffer-count-actual
  37. diff --git a/config/stf/meson.build b/config/stf/meson.build
  38. new file mode 100644
  39. index 0000000..dc99c08
  40. --- /dev/null
  41. +++ b/config/stf/meson.build
  42. @@ -0,0 +1 @@
  43. +install_data (['gstomx.conf'], install_dir : omx_conf_dir)
  44. diff --git a/meson.build b/meson.build
  45. index 32c7fa7..aeda56a 100755
  46. --- a/meson.build
  47. +++ b/meson.build
  48. @@ -216,6 +216,8 @@ elif omx_target == 'tizonia'
  49. tizil_includedir = tizil_dep.get_pkgconfig_variable('includedir')
  50. gst_omx_args += ['-I' + tizil_includedir + '/tizonia']
  51. omx_inc = []
  52. +elif omx_target == 'stf'
  53. + warning('stf selected')
  54. else
  55. error ('Unsupported omx target specified. Use the -Dtarget option')
  56. endif
  57. diff --git a/meson_options.txt b/meson_options.txt
  58. index e18beb2..4fc6139 100755
  59. --- a/meson_options.txt
  60. +++ b/meson_options.txt
  61. @@ -1,7 +1,7 @@
  62. option('header_path', type : 'string', value : '',
  63. description : 'An extra include directory to find the OpenMax headers')
  64. option('target', type : 'combo',
  65. - choices : ['none', 'generic', 'rpi', 'bellagio', 'tizonia', 'zynqultrascaleplus'], value : 'none',
  66. + choices : ['none', 'generic', 'rpi', 'bellagio', 'tizonia', 'zynqultrascaleplus', 'stf'], value : 'none',
  67. description : 'The OMX platform to target')
  68. option('struct_packing', type : 'combo',
  69. choices : ['0', '1', '2', '4', '8'], value : '0',