summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnkit Navik <ankit.tarot@gmail.com>2019-10-30 06:47:58 (GMT)
committerAnuj Mittal <anuj.mittal@intel.com>2019-11-01 03:34:47 (GMT)
commitcd63bab42831011b5653a4eafa177802c43cfe65 (patch)
treec6a946e661e53a7266f40c69e586ba5a8be1ceb2
parent09ba2ea7d2d8295e0a79c6085e9fb3d991ef47b2 (diff)
downloadmeta-intel-cd63bab42831011b5653a4eafa177802c43cfe65.tar.gz
librealsense: Initial recipe for Intel Real Sense SDK
It adds generic recipe for Intel Real Sense SDK. Signed-off-by: Ankit Navik <ankit.tarot@gmail.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--conf/include/maintainers.inc1
-rw-r--r--dynamic-layers/openembedded-layer/recipes-core/librealsense/librealsense_2.29.0.bb28
2 files changed, 29 insertions, 0 deletions
diff --git a/conf/include/maintainers.inc b/conf/include/maintainers.inc
index e5ed985..b9218e7 100644
--- a/conf/include/maintainers.inc
+++ b/conf/include/maintainers.inc
@@ -21,3 +21,4 @@ RECIPE_MAINTAINER_pn-metrics-discovery = "Ankit Navik <ankit.tarot@gmail.com>"
21RECIPE_MAINTAINER_pn-libxcam = "Ankit Navik <ankit.tarot@gmail.com>" 21RECIPE_MAINTAINER_pn-libxcam = "Ankit Navik <ankit.tarot@gmail.com>"
22RECIPE_MAINTAINER_pn-isa-l = "Ankit Navik <ankit.tarot@gmail.com>" 22RECIPE_MAINTAINER_pn-isa-l = "Ankit Navik <ankit.tarot@gmail.com>"
23RECIPE_MAINTAINER_pn-libipt = "Ankit Navik <ankit.tarot@gmail.com>" 23RECIPE_MAINTAINER_pn-libipt = "Ankit Navik <ankit.tarot@gmail.com>"
24RECIPE_MAINTAINER_pn-librealsense = "Ankit Navik <ankit.tarot@gmail.com>"
diff --git a/dynamic-layers/openembedded-layer/recipes-core/librealsense/librealsense_2.29.0.bb b/dynamic-layers/openembedded-layer/recipes-core/librealsense/librealsense_2.29.0.bb
new file mode 100644
index 0000000..cdf7d02
--- /dev/null
+++ b/dynamic-layers/openembedded-layer/recipes-core/librealsense/librealsense_2.29.0.bb
@@ -0,0 +1,28 @@
1SUMMARY = "Intel® RealSense™ SDK"
2HOMEPAGE = "https://www.intelrealsense.com/"
3DESCRIPTION = "Intel® RealSense™ SDK 2.0 is a cross-platform library for \
4Intel® RealSense™ depth cameras (D400 series and the SR300) and the T265 \
5tracking camera"
6LICENSE = "Apache-2.0"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=a1692f06943fa281fd047a22d7e10800"
8SECTION = "lib"
9
10inherit pkgconfig cmake
11
12S = "${WORKDIR}/git"
13SRC_URI = "git://github.com/IntelRealSense/librealsense.git"
14SRCREV = "5096aab40c71bfa2bebd17e4ace5f6678587b889"
15
16EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=Release"
17EXTRA_OECMAKE += "-DBUILD_EXAMPLES=true"
18EXTRA_OECMAKE += "-DBUILD_GRAPHICAL_EXAMPLES=${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'true', 'false', d)}"
19EXTRA_OECMAKE += "-DBUILD_WITH_TM2=false"
20EXTRA_OECMAKE += "-DUSE_SYSTEM_LIBUSB=true"
21
22do_install_append() {
23 install -d ${D}${sysconfdir}/udev/rules.d
24 install -m 0644 ${S}/config/99-realsense-libusb.rules ${D}${sysconfdir}/udev/rules.d/99-${BPN}-libusb.rules
25}
26
27DEPENDS = "udev libusb1"
28DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'libpng libglu glfw gtk+3', '', d)}"