From fecccd7ebf62b8da88569d229b5c7bb3938aaa76 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Fri, 7 Apr 2017 13:51:54 +0200 Subject: tdx-nv-binaries: renamed from trdx-nv-binaries While at it also update the comment in recipes-graphics/mesa/mesa_%.bbappend. Signed-off-by: Marcel Ziswiler Acked-by: Dominik Sliwa --- recipes-bsp/tdx-nv-binaries/nvsamples.bb | 59 ++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 recipes-bsp/tdx-nv-binaries/nvsamples.bb (limited to 'recipes-bsp/tdx-nv-binaries/nvsamples.bb') diff --git a/recipes-bsp/tdx-nv-binaries/nvsamples.bb b/recipes-bsp/tdx-nv-binaries/nvsamples.bb new file mode 100644 index 0000000..493ec8f --- /dev/null +++ b/recipes-bsp/tdx-nv-binaries/nvsamples.bb @@ -0,0 +1,59 @@ +SECTION = "graphical/utils" +SUMMARY = "Nvidia samples for OpenGL ES, OpenGL ES headers" +LICENSE = "CLOSED" +DEPENDS = "tdx-nv-binaries virtual/libx11 libsm libice" + +PR = "r1" + +PARALLEL_MAKE = "" + +SRC_URI = " \ + http://developer.toradex.com/files/toradex-dev/uploads/media/Colibri/Linux/Samples/nvsamples.tar.bz2 \ + file://nvsamples-oe.patch \ + file://nvsamples-no-binary-shaders.patch \ + file://nvsamples-hardfp.patch \ +" + +S = "${WORKDIR}/nvsamples" + +SRC_URI[md5sum] = "240b0beb0056dde2e6ac1538dc8b6684" +SRC_URI[sha256sum] = "2638beea80fd85fdc5f9443e6959c210e275e627f662266cd404ce7c68b0806d" + +#no gnu_hash in NVIDIA binaries, skip QA for this package +INSANE_SKIP_${PN} = "dev-so ldflags" + +FILES_${PN} += " \ + /home/root/textures/* \ + /home/root/shaders/* \ +" + +do_compile () { + cd ${S}/samples/tools/nvtexfont2 + oe_runmake clean + oe_runmake WORKDIR=${WORKDIR} + ln -sf ../samples/tools/nvtexfont2/libnvtexfont2.a ${S}/lib-target/ + + cd ${S}/samples/tools/nvgl2demo_common + oe_runmake clean + oe_runmake WORKDIR=${WORKDIR} + ln -sf ../samples/tools/nvgl2demo_common/libnvgl2demo_common.a ${S}/lib-target/ + + cd ${S}/samples/opengles2 + oe_runmake clean + oe_runmake WORKDIR=${WORKDIR} +} + +do_install () { + # install the sample code + install -d ${D}${bindir} + install -d ${D}/home/root/textures + install -d ${D}/home/root/shaders + install -m 0755 ${S}/samples/opengles2/ctree/ctree ${D}${bindir} + install -m 0644 ${S}/samples/opengles2/ctree/textures/* ${D}/home/root/textures + install -m 0644 ${S}/samples/opengles2/ctree/*.glsl? ${D}/home/root/shaders + install -m 0755 ${S}/samples/opengles2/bubble/bubble ${D}${bindir} + install -m 0644 ${S}/samples/opengles2/bubble/textures/* ${D}/home/root/textures + install -m 0644 ${S}/samples/opengles2/bubble/*.glsl? ${D}/home/root/shaders + install -m 0755 ${S}/samples/opengles2/gears/gears ${D}${bindir} + install -m 0644 ${S}/samples/opengles2/gears/*.glsl? ${D}/home/root/shaders +} -- cgit v1.2.3