diff options
Diffstat (limited to 'recipes-graphics/imx-gpu-sdk')
| -rw-r--r-- | recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_6.1.1.bb | 51 | ||||
| -rw-r--r-- | recipes-graphics/imx-gpu-sdk/libxdg-shell.bb | 7 |
2 files changed, 31 insertions, 27 deletions
diff --git a/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_6.1.1.bb b/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_6.1.1.bb index e1510baf3..c51d112c2 100644 --- a/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_6.1.1.bb +++ b/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_6.1.1.bb | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | SUMMARY = "i.MX GPU SDK Samples" | 1 | SUMMARY = "i.MX GPU SDK Samples" |
| 2 | DESCRIPTION = "Set of sample applications for i.MX GPU" | 2 | DESCRIPTION = "Set of sample applications for i.MX GPU" |
| 3 | HOMEPAGE = "https://github.com/nxp-imx/gtec-demo-framework" | ||
| 4 | SECTION = "graphics" | ||
| 3 | LICENSE = "BSD-3-Clause" | 5 | LICENSE = "BSD-3-Clause" |
| 4 | LIC_FILES_CHKSUM = "file://License.md;md5=9d58a2573275ce8c35d79576835dbeb8" | 6 | LIC_FILES_CHKSUM = "file://License.md;md5=9d58a2573275ce8c35d79576835dbeb8" |
| 5 | 7 | ||
| @@ -7,8 +9,8 @@ DEPENDS_BACKEND = \ | |||
| 7 | "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', ' libxdg-shell wayland', \ | 9 | "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', ' libxdg-shell wayland', \ |
| 8 | bb.utils.contains('DISTRO_FEATURES', 'x11', ' xrandr', \ | 10 | bb.utils.contains('DISTRO_FEATURES', 'x11', ' xrandr', \ |
| 9 | '', d), d)}" | 11 | '', d), d)}" |
| 10 | DEPENDS_MX8 = "" | 12 | DEPENDS_MX8 = "" |
| 11 | DEPENDS_MX8:mx8-nxp-bsp = " \ | 13 | DEPENDS_MX8:mx8-nxp-bsp = "\ |
| 12 | glslang-native \ | 14 | glslang-native \ |
| 13 | opencv \ | 15 | opencv \ |
| 14 | rapidopencl \ | 16 | rapidopencl \ |
| @@ -17,10 +19,10 @@ DEPENDS_MX8:mx8-nxp-bsp = " \ | |||
| 17 | vulkan-headers \ | 19 | vulkan-headers \ |
| 18 | vulkan-loader \ | 20 | vulkan-loader \ |
| 19 | " | 21 | " |
| 20 | DEPENDS_MX8:mx8mm-nxp-bsp = " \ | 22 | DEPENDS_MX8:mx8mm-nxp-bsp = "\ |
| 21 | opencv \ | 23 | opencv \ |
| 22 | " | 24 | " |
| 23 | DEPENDS = " \ | 25 | DEPENDS = "\ |
| 24 | assimp \ | 26 | assimp \ |
| 25 | cmake-native \ | 27 | cmake-native \ |
| 26 | devil \ | 28 | devil \ |
| @@ -44,28 +46,27 @@ DEPENDS:append:imxgpu3d = " virtual/libgles2" | |||
| 44 | 46 | ||
| 45 | require imx-gpu-sdk-src.inc | 47 | require imx-gpu-sdk-src.inc |
| 46 | 48 | ||
| 47 | |||
| 48 | WINDOW_SYSTEM = \ | 49 | WINDOW_SYSTEM = \ |
| 49 | "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'Wayland_XDG', \ | 50 | "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'Wayland_XDG', \ |
| 50 | bb.utils.contains('DISTRO_FEATURES', 'x11', 'X11', \ | 51 | bb.utils.contains('DISTRO_FEATURES', 'x11', 'X11', \ |
| 51 | 'FB', d), d)}" | 52 | 'FB', d), d)}" |
| 52 | 53 | ||
| 53 | FEATURES = "ConsoleHost,EarlyAccess,EGL,GoogleUnitTest,Lib_NlohmannJson,OpenVG,Test_RequireUserInputToExit,WindowHost" | 54 | FEATURES = "ConsoleHost,EarlyAccess,EGL,GoogleUnitTest,Lib_NlohmannJson,OpenVG,Test_RequireUserInputToExit,WindowHost" |
| 54 | FEATURES:append:imxgpu = ",HW_GPU_VIVANTE" | 55 | FEATURES:append:imxgpu = ",HW_GPU_VIVANTE" |
| 55 | FEATURES:append:imxgpu2d = ",G2D" | 56 | FEATURES:append:imxgpu2d = ",G2D" |
| 56 | FEATURES:append:imxgpu3d = ",OpenGLES2" | 57 | FEATURES:append:imxgpu3d = ",OpenGLES2" |
| 57 | FEATURES:append = "${FEATURES_SOC}" | 58 | FEATURES:append = "${FEATURES_SOC}" |
| 58 | 59 | ||
| 59 | FEATURES_SOC = "" | 60 | FEATURES_SOC = "" |
| 60 | FEATURES_SOC:mx6q-nxp-bsp = ",OpenGLES3" | 61 | FEATURES_SOC:mx6q-nxp-bsp = ",OpenGLES3" |
| 61 | FEATURES_SOC:mx6dl-nxp-bsp = ",OpenGLES3" | 62 | FEATURES_SOC:mx6dl-nxp-bsp = ",OpenGLES3" |
| 62 | FEATURES_SOC:mx8-nxp-bsp = ",OpenCV4,Vulkan1.2,OpenGLES3.2,OpenCL1.2,OpenVX1.2" | 63 | FEATURES_SOC:mx8-nxp-bsp = ",OpenCV4,Vulkan1.2,OpenGLES3.2,OpenCL1.2,OpenVX1.2" |
| 63 | FEATURES_SOC:mx8mm-nxp-bsp = ",OpenCV4" | 64 | FEATURES_SOC:mx8mm-nxp-bsp = ",OpenCV4" |
| 64 | 65 | ||
| 65 | EXTENSIONS = "*" | 66 | EXTENSIONS = "*" |
| 66 | EXTENSIONS:mx6q-nxp-bsp = "OpenGLES:GL_VIV_direct_texture,OpenGLES3:GL_EXT_geometry_shader,OpenGLES3:GL_EXT_tessellation_shader" | 67 | EXTENSIONS:mx6q-nxp-bsp = "OpenGLES:GL_VIV_direct_texture,OpenGLES3:GL_EXT_geometry_shader,OpenGLES3:GL_EXT_tessellation_shader" |
| 67 | EXTENSIONS:mx6dl-nxp-bsp = "OpenGLES:GL_VIV_direct_texture,OpenGLES3:GL_EXT_geometry_shader,OpenGLES3:GL_EXT_tessellation_shader" | 68 | EXTENSIONS:mx6dl-nxp-bsp = "OpenGLES:GL_VIV_direct_texture,OpenGLES3:GL_EXT_geometry_shader,OpenGLES3:GL_EXT_tessellation_shader" |
| 68 | EXTENSIONS:mx8m-nxp-bsp = "OpenGLES:GL_VIV_direct_texture,OpenGLES3:GL_EXT_color_buffer_float" | 69 | EXTENSIONS:mx8m-nxp-bsp = "OpenGLES:GL_VIV_direct_texture,OpenGLES3:GL_EXT_color_buffer_float" |
| 69 | EXTENSIONS:mx8mm-nxp-bsp = "*" | 70 | EXTENSIONS:mx8mm-nxp-bsp = "*" |
| 70 | 71 | ||
| 71 | do_compile () { | 72 | do_compile () { |
| @@ -75,7 +76,7 @@ do_compile () { | |||
| 75 | FslBuild.py -vvvvv -t sdk --UseFeatures [${FEATURES}] --UseExtensions [${EXTENSIONS}] --Variants [WindowSystem=${WINDOW_SYSTEM}] --BuildThreads ${@oe.utils.parallel_make(d)} -c install --CMakeInstallPrefix ${S} | 76 | FslBuild.py -vvvvv -t sdk --UseFeatures [${FEATURES}] --UseExtensions [${EXTENSIONS}] --Variants [WindowSystem=${WINDOW_SYSTEM}] --BuildThreads ${@oe.utils.parallel_make(d)} -c install --CMakeInstallPrefix ${S} |
| 76 | } | 77 | } |
| 77 | 78 | ||
| 78 | REMOVALS = " \ | 79 | REMOVALS = "\ |
| 79 | GLES2/DeBayer \ | 80 | GLES2/DeBayer \ |
| 80 | GLES2/DirectMultiSamplingVideoYUV \ | 81 | GLES2/DirectMultiSamplingVideoYUV \ |
| 81 | GLES3/DirectMultiSamplingVideoYUV \ | 82 | GLES3/DirectMultiSamplingVideoYUV \ |
| @@ -108,7 +109,7 @@ INSANE_SKIP:${PN} += "already-stripped rpaths" | |||
| 108 | 109 | ||
| 109 | # Unfortunately recipes with an empty main package, like header-only libraries, | 110 | # Unfortunately recipes with an empty main package, like header-only libraries, |
| 110 | # are not included in the SDK. Use RDEPENDS as a workaround. | 111 | # are not included in the SDK. Use RDEPENDS as a workaround. |
| 111 | RDEPENDS_EMPTY_MAIN_PACKAGE = " \ | 112 | RDEPENDS_EMPTY_MAIN_PACKAGE = "\ |
| 112 | fmt \ | 113 | fmt \ |
| 113 | gli \ | 114 | gli \ |
| 114 | glm \ | 115 | glm \ |
| @@ -118,8 +119,8 @@ RDEPENDS_EMPTY_MAIN_PACKAGE = " \ | |||
| 118 | rapidjson \ | 119 | rapidjson \ |
| 119 | stb \ | 120 | stb \ |
| 120 | " | 121 | " |
| 121 | RDEPENDS_EMPTY_MAIN_PACKAGE_MX8 = "" | 122 | RDEPENDS_EMPTY_MAIN_PACKAGE_MX8 = "" |
| 122 | RDEPENDS_EMPTY_MAIN_PACKAGE_MX8:mx8-nxp-bsp = " \ | 123 | RDEPENDS_EMPTY_MAIN_PACKAGE_MX8:mx8-nxp-bsp = "\ |
| 123 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'libxdg-shell', '', d)} \ | 124 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'libxdg-shell', '', d)} \ |
| 124 | rapidopencl \ | 125 | rapidopencl \ |
| 125 | rapidopenvx \ | 126 | rapidopenvx \ |
| @@ -128,10 +129,10 @@ RDEPENDS_EMPTY_MAIN_PACKAGE_MX8:mx8-nxp-bsp = " \ | |||
| 128 | RDEPENDS_EMPTY_MAIN_PACKAGE_MX8:mx8mm-nxp-bsp = "" | 129 | RDEPENDS_EMPTY_MAIN_PACKAGE_MX8:mx8mm-nxp-bsp = "" |
| 129 | # vulkan-loader is dynamically loaded, so need to add an explicit | 130 | # vulkan-loader is dynamically loaded, so need to add an explicit |
| 130 | # dependency | 131 | # dependency |
| 131 | RDEPENDS_VULKAN_LOADER = "" | 132 | RDEPENDS_VULKAN_LOADER = "" |
| 132 | RDEPENDS_VULKAN_LOADER:mx8-nxp-bsp = "vulkan-validation-layers vulkan-loader" | 133 | RDEPENDS_VULKAN_LOADER:mx8-nxp-bsp = "vulkan-loader vulkan-validation-layers" |
| 133 | RDEPENDS_VULKAN_LOADER:mx8mm-nxp-bsp = "" | 134 | RDEPENDS_VULKAN_LOADER:mx8mm-nxp-bsp = "" |
| 134 | RDEPENDS:${PN} += " \ | 135 | RDEPENDS:${PN} += "\ |
| 135 | ${RDEPENDS_EMPTY_MAIN_PACKAGE} \ | 136 | ${RDEPENDS_EMPTY_MAIN_PACKAGE} \ |
| 136 | ${RDEPENDS_EMPTY_MAIN_PACKAGE_MX8} \ | 137 | ${RDEPENDS_EMPTY_MAIN_PACKAGE_MX8} \ |
| 137 | ${RDEPENDS_VULKAN_LOADER} \ | 138 | ${RDEPENDS_VULKAN_LOADER} \ |
diff --git a/recipes-graphics/imx-gpu-sdk/libxdg-shell.bb b/recipes-graphics/imx-gpu-sdk/libxdg-shell.bb index a5637869a..56b89c159 100644 --- a/recipes-graphics/imx-gpu-sdk/libxdg-shell.bb +++ b/recipes-graphics/imx-gpu-sdk/libxdg-shell.bb | |||
| @@ -1,8 +1,11 @@ | |||
| 1 | SUMMARY = "Provides XDG shell header and glue code library" | 1 | SUMMARY = "Provides XDG shell header and glue code library" |
| 2 | DESCRIPTION = "XDG shell protocol header and glue-code library used by the i.MX GPU SDK samples." | ||
| 3 | HOMEPAGE = "https://github.com/nxp-imx/gtec-demo-framework" | ||
| 4 | SECTION = "graphics" | ||
| 2 | LICENSE = "BSD-3-Clause" | 5 | LICENSE = "BSD-3-Clause" |
| 3 | LIC_FILES_CHKSUM = "file://${UNPACKDIR}/${BP}/License.md;md5=9d58a2573275ce8c35d79576835dbeb8" | 6 | LIC_FILES_CHKSUM = "file://${UNPACKDIR}/${BP}/License.md;md5=9d58a2573275ce8c35d79576835dbeb8" |
| 4 | 7 | ||
| 5 | DEPENDS = "wayland-native wayland wayland-protocols" | 8 | DEPENDS = "wayland wayland-native wayland-protocols" |
| 6 | 9 | ||
| 7 | require imx-gpu-sdk-src.inc | 10 | require imx-gpu-sdk-src.inc |
| 8 | 11 | ||
| @@ -12,7 +15,7 @@ S = "${UNPACKDIR}/${BP}/ThirdParty/Recipe/xdg-shell" | |||
| 12 | 15 | ||
| 13 | inherit cmake pkgconfig | 16 | inherit cmake pkgconfig |
| 14 | 17 | ||
| 15 | EXTRA_OECMAKE = " \ | 18 | EXTRA_OECMAKE = "\ |
| 16 | -DWAYLAND_SCANNER=${STAGING_BINDIR_NATIVE}/wayland-scanner \ | 19 | -DWAYLAND_SCANNER=${STAGING_BINDIR_NATIVE}/wayland-scanner \ |
| 17 | -DWAYLAND_PROTOCOLS_DIR=${STAGING_DATADIR}/wayland-protocols \ | 20 | -DWAYLAND_PROTOCOLS_DIR=${STAGING_DATADIR}/wayland-protocols \ |
| 18 | " | 21 | " |
