{"id":904,"url":"https://patchwork.libcamera.org/api/patches/904/?format=json","web_url":"https://patchwork.libcamera.org/patch/904/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20190403112902.29930-1-kieran.bingham@ideasonboard.com>","date":"2019-04-03T11:29:02","name":"[libcamera-devel,v3] package/libcamera: Add libcamera package","commit_ref":null,"pull_url":null,"state":"not-applicable","archived":false,"hash":"085447590d1e775e324fe8b246f63fbe72403428","submitter":{"id":4,"url":"https://patchwork.libcamera.org/api/people/4/?format=json","name":"Kieran Bingham","email":"kieran.bingham@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/904/mbox/","series":[{"id":238,"url":"https://patchwork.libcamera.org/api/series/238/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=238","date":"2019-04-03T11:29:02","name":"[libcamera-devel,v3] package/libcamera: Add libcamera package","version":3,"mbox":"https://patchwork.libcamera.org/series/238/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/904/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/904/checks/","tags":{},"headers":{"Return-Path":"<kieran.bingham@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 02BDB610C5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed,  3 Apr 2019 13:29:13 +0200 (CEST)","from Q.imgcgcw.net (unknown [147.50.13.10])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id CDAC3E2;\n\tWed,  3 Apr 2019 13:29:10 +0200 (CEST)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1554290953;\n\tbh=y7lFJiBEJx02G9CFMGY7MwWb0Hg2lgvzyN/eKnTtDjY=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=cuRgnw21qqN5n78ogT1GGkNDemMhlwrQqmo1pIc9C31npTCIQ0OHNvlmwIEmeasfU\n\tg6PKCevnRFXEY9V7LS5W95TMejZDI0m2/h1571lN5FwHgneYeHw0TtsEdKtNnuzbd8\n\tJqdlgPbMS8gS0k85V4W42G07W+NgLKNRM2hsmbDA=","From":"Kieran Bingham <kieran.bingham@ideasonboard.com>","To":"buildroot@buildroot.org,\n\tLibCamera Devel <libcamera-devel@lists.libcamera.org>","Cc":"\"Yann E. MORIN\" <yann.morin.1998@free.fr>,\n\tArnout Vandecappelle <arnout@mind.be>,\n\tKieran Bingham <kieran.bingham@ideasonboard.com>","Date":"Wed,  3 Apr 2019 18:29:02 +0700","Message-Id":"<20190403112902.29930-1-kieran.bingham@ideasonboard.com>","X-Mailer":"git-send-email 2.19.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v3] package/libcamera: Add libcamera\n\tpackage","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Wed, 03 Apr 2019 11:29:14 -0000"},"content":"http://libcamera.org/\n\nCameras are complex devices that need heavy hardware image processing\noperations. Control of the processing is based on advanced algorithms\nthat must run on a programmable processor. This has traditionally been\nimplemented in a dedicated MCU in the camera, but in embedded devices\nalgorithms have been moved to the main CPU to save cost. Blurring the\nboundary between camera devices and Linux often left the user with no\nother option than a vendor-specific closed-source solution.\n\nTo address this problem the Linux media community has very recently\nstarted collaboration with the industry to develop a camera stack that\nwill be open-source-friendly while still protecting vendor core IP.\nlibcamera was born out of that collaboration and will offer modern\ncamera support to Linux-based systems, including traditional Linux\ndistributions, ChromeOS and Android.\n\nThe project has not made an official release as of yet, so we're\nusing the latest sha1 from master\n\nWe utilise C++ 11 but we mandate GCC5+ due to a bug [0] in earlier\nversions which result in compile failures on our code base.\n\n[0] Bug 54316 - [C++11] move constructor for stringstream\n    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54316\n\nDocumentation and Tests are disabled from the build.\n\nWith the following added to libcamera.config:\n\n  BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y\n  BR2_PACKAGE_LIBCAMERA=y\n\n./utils/test-pkg -c libcamera.config -p libcamera\n                             br-arm-full [1/6]: SKIPPED\n                  br-arm-cortex-a9-glibc [2/6]: OK\n                   br-arm-cortex-m4-full [3/6]: SKIPPED\n                          br-x86-64-musl [4/6]: OK\n                      br-arm-full-static [5/6]: SKIPPED\n                            sourcery-arm [6/6]: SKIPPED\n\nSigned-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n DEVELOPERS                       |  3 +++\n package/Config.in                |  1 +\n package/libcamera/Config.in      | 13 +++++++++++++\n package/libcamera/libcamera.hash |  4 ++++\n package/libcamera/libcamera.mk   | 18 ++++++++++++++++++\n 5 files changed, 39 insertions(+)\n create mode 100644 package/libcamera/Config.in\n create mode 100644 package/libcamera/libcamera.hash\n create mode 100644 package/libcamera/libcamera.mk","diff":"diff --git a/DEVELOPERS b/DEVELOPERS\nindex 1001d5581520..eb9013fba7da 100644\n--- a/DEVELOPERS\n+++ b/DEVELOPERS\n@@ -1269,6 +1269,9 @@ F:\tpackage/ramsmp/\n N:\tKevin Joly <kevin.joly@sensefly.com>\n F:\tpackage/libgphoto2/\n \n+N:\tKieran Bingham <kieran.bingham@ideasonboard.com>\n+F:\tpackage/libcamera/\n+\n N:\tKoen Martens <gmc@sonologic.nl>\n F:\tpackage/capnproto/\n F:\tpackage/linuxconsoletools/\ndiff --git a/package/Config.in b/package/Config.in\nindex db79b6197152..b1b3c0bd2acb 100644\n--- a/package/Config.in\n+++ b/package/Config.in\n@@ -1479,6 +1479,7 @@ menu \"Multimedia\"\n \tsource \"package/libass/Config.in\"\n \tsource \"package/libbdplus/Config.in\"\n \tsource \"package/libbluray/Config.in\"\n+\tsource \"package/libcamera/Config.in\"\n \tsource \"package/libdcadec/Config.in\"\n \tsource \"package/libdvbcsa/Config.in\"\n \tsource \"package/libdvbpsi/Config.in\"\ndiff --git a/package/libcamera/Config.in b/package/libcamera/Config.in\nnew file mode 100644\nindex 000000000000..cc5e84424c38\n--- /dev/null\n+++ b/package/libcamera/Config.in\n@@ -0,0 +1,13 @@\n+config BR2_PACKAGE_LIBCAMERA\n+\tbool \"libcamera\"\n+\tdepends on BR2_INSTALL_LIBSTDCPP\n+\tdepends on BR2_TOOLCHAIN_HAS_THREADS\n+\t# C++11 + https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54316\n+\tdepends on BR2_TOOLCHAIN_GCC_AT_LEAST_5\n+\tdepends on BR2_PACKAGE_HAS_UDEV\n+\thelp\n+\t  libcamera provides a software stack to support\n+\t  complex devices that need heavy hardware image\n+\t  processing operations.\n+\n+\t\thttp://www.libcamera.org/\ndiff --git a/package/libcamera/libcamera.hash b/package/libcamera/libcamera.hash\nnew file mode 100644\nindex 000000000000..7d5392dde2bb\n--- /dev/null\n+++ b/package/libcamera/libcamera.hash\n@@ -0,0 +1,4 @@\n+sha256 2c01dc76d98ef257660f8ef3f4f17f042e112b5eca6b364ad615220c96fbd066  libcamera-d5ca33f6c7b0cd1ca20ec5dc7131aeedf1503080.tar.gz\n+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  licenses/gnu-gpl-2.0.txt\n+sha256 592987e8510228d546540b84a22444bde98e48d03078d3b2eefcd889bec5ce8c  licenses/gnu-lgpl-2.1.txt\n+\ndiff --git a/package/libcamera/libcamera.mk b/package/libcamera/libcamera.mk\nnew file mode 100644\nindex 000000000000..08cbb9802071\n--- /dev/null\n+++ b/package/libcamera/libcamera.mk\n@@ -0,0 +1,18 @@\n+################################################################################\n+#\n+# libcamera\n+#\n+################################################################################\n+\n+LIBCAMERA_SITE = https://git.linuxtv.org/libcamera.git\n+LIBCAMERA_VERSION = d5ca33f6c7b0cd1ca20ec5dc7131aeedf1503080\n+LIBCAMERA_SITE_METHOD = git\n+LIBCAMERA_DEPENDENCIES = udev\n+LIBCAMERA_CONF_OPTS = -Dtests=false -Ddocumentation=false\n+LIBCAMERA_INSTALL_STAGING = yes\n+LIBCAMERA_LICENSE = LGPL-2.1+ (library), GPL-2.0+ (utils)\n+LIBCAMERA_LICENSE_FILES = \\\n+\tlicenses/gnu-gpl-2.0.txt \\\n+\tlicenses/gnu-lgpl-2.1.txt\n+\n+$(eval $(meson-package))\n","prefixes":["libcamera-devel","v3"]}