initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
config BR2_PACKAGE_LIBCAMERA_ARCH_SUPPORTS
|
||||
bool
|
||||
default y
|
||||
# Invalid packing size of ControlValue struct on m68k
|
||||
depends on !BR2_m68k
|
||||
depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27597
|
||||
|
||||
menuconfig BR2_PACKAGE_LIBCAMERA
|
||||
bool "libcamera"
|
||||
depends on BR2_PACKAGE_LIBCAMERA_ARCH_SUPPORTS
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17
|
||||
depends on !BR2_STATIC_LIBS # gnutls
|
||||
depends on BR2_USE_WCHAR # gnutls
|
||||
select BR2_PACKAGE_GNUTLS
|
||||
select BR2_PACKAGE_LIBCAMERA_PIPELINE_UVCVIDEO if !BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
|
||||
help
|
||||
libcamera provides a software stack to support
|
||||
complex devices that need heavy hardware image
|
||||
processing operations.
|
||||
|
||||
http://www.libcamera.org/
|
||||
|
||||
if BR2_PACKAGE_LIBCAMERA
|
||||
|
||||
config BR2_PACKAGE_LIBCAMERA_V4L2
|
||||
bool "libcamera v4l2 compatibility layer"
|
||||
help
|
||||
libcamera v4l2 compatibility layer
|
||||
|
||||
config BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
|
||||
bool
|
||||
|
||||
config BR2_PACKAGE_LIBCAMERA_PIPELINE_IPU3
|
||||
bool "ipu3 pipeline"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
select BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
|
||||
help
|
||||
Pipeline for Intel IPU3.
|
||||
|
||||
config BR2_PACKAGE_LIBCAMERA_PIPELINE_RASPBERRYPI
|
||||
bool "raspberrypi pipeline"
|
||||
depends on BR2_arm || BR2_aarch64
|
||||
depends on BR2_USE_WCHAR # boost (already enforced for gnutls)
|
||||
select BR2_PACKAGE_BOOST
|
||||
select BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
|
||||
help
|
||||
Pipeline for Raspberry Pi devices.
|
||||
|
||||
config BR2_PACKAGE_LIBCAMERA_PIPELINE_RKISP1
|
||||
bool "rkisp1 pipeline"
|
||||
depends on BR2_arm || BR2_aarch64
|
||||
select BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
|
||||
help
|
||||
Pipeline for Rockchip ISP1.
|
||||
|
||||
config BR2_PACKAGE_LIBCAMERA_PIPELINE_SIMPLE
|
||||
bool "simple pipeline"
|
||||
select BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
|
||||
help
|
||||
Pipeline for simple pipelines.
|
||||
|
||||
config BR2_PACKAGE_LIBCAMERA_PIPELINE_UVCVIDEO
|
||||
bool "uvcvideo pipeline"
|
||||
help
|
||||
Pipeline for uvcvideo devices.
|
||||
|
||||
config BR2_PACKAGE_LIBCAMERA_PIPELINE_VIMC
|
||||
bool "vimc pipeline"
|
||||
select BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE
|
||||
help
|
||||
Pipeline for the vimc device.
|
||||
|
||||
config BR2_PACKAGE_LIBCAMERA_COMPLIANCE
|
||||
bool "lc-compliance test application"
|
||||
depends on BR2_USE_WCHAR # gtest
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # gtest
|
||||
depends on BR2_INSTALL_LIBSTDCPP # gtest
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # gtest
|
||||
depends on BR2_USE_MMU # gtest
|
||||
select BR2_PACKAGE_GTEST
|
||||
select BR2_PACKAGE_LIBEVENT
|
||||
help
|
||||
lc-compliance test application
|
||||
|
||||
comment "lc-compliance test application needs a toolchain w/ C++, wchar, threads, gcc >= 4.9"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
|
||||
endif # BR2_PACKAGE_LIBCAMERA
|
||||
|
||||
comment "libcamera needs a toolchain w/ C++, threads, wchar, dynamic library, gcc >= 7"
|
||||
depends on BR2_PACKAGE_LIBCAMERA_ARCH_SUPPORTS
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_7 || BR2_STATIC_LIBS || !BR2_USE_WCHAR
|
||||
@@ -0,0 +1,12 @@
|
||||
sha256 305e6f458d2bf3d4b697ffe33e104b696db6b1492bb5422e2cce1937e58516f1 libcamera-40f5fddca7f774944a53f58eeaebc4db79c373d8-br1.tar.gz
|
||||
|
||||
# license files
|
||||
sha256 fd38b2c053c0cce46d9c5ef3545a6e34d157a240ba99c9b8dca5d37a8147da6c LICENSES/BSD-2-Clause.txt
|
||||
sha256 e11af671c491efac2f94c1d752bea92f4308ca2450c7d11e582e4b48c40e4de1 LICENSES/BSD-3-Clause.txt
|
||||
sha256 6a573fb2f9082662978cf21fb153096df0a1981deaea7dbc10a11046fe005d9f LICENSES/CC0-1.0.txt
|
||||
sha256 ec3732087acf8c52429a020d6bba362ff578705bdb53365a21744485ec15b0e6 LICENSES/CC-BY-SA-4.0.txt
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSES/GPL-2.0-only.txt
|
||||
sha256 606aa26338f69ce178f1cbc648b7574aec4b5bbaeb20f4df36ff49010cb8fbbd LICENSES/GPL-2.0-or-later.txt
|
||||
sha256 1ccf09bf2f598308df4bed9cd8e9657dc5cd0973d2800318f2e241486e2edf3f LICENSES/LGPL-2.1-or-later.txt
|
||||
sha256 3f9e477523febab58de8b716ccfbcf02e6ef1c8e7728953905e8558637abe2a9 LICENSES/Linux-syscall-note.txt
|
||||
sha256 8f25018489d6fe0dec34a352314c38dc146247b7de65735790f4398a92afa84b LICENSES/MIT.txt
|
||||
@@ -0,0 +1,102 @@
|
||||
################################################################################
|
||||
#
|
||||
# libcamera
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBCAMERA_SITE = https://git.linuxtv.org/libcamera.git
|
||||
LIBCAMERA_VERSION = 40f5fddca7f774944a53f58eeaebc4db79c373d8
|
||||
LIBCAMERA_SITE_METHOD = git
|
||||
LIBCAMERA_DEPENDENCIES = \
|
||||
host-openssl \
|
||||
host-pkgconf \
|
||||
host-python3-jinja2 \
|
||||
host-python3-ply \
|
||||
host-python3-pyyaml \
|
||||
gnutls
|
||||
LIBCAMERA_CONF_OPTS = \
|
||||
-Dandroid=disabled \
|
||||
-Ddocumentation=disabled \
|
||||
-Dtest=false \
|
||||
-Dwerror=false
|
||||
LIBCAMERA_INSTALL_STAGING = YES
|
||||
LIBCAMERA_LICENSE = \
|
||||
LGPL-2.1+ (library), \
|
||||
GPL-2.0+ (utils), \
|
||||
MIT (qcam/assets/feathericons), \
|
||||
BSD-2-Clause (raspberrypi), \
|
||||
GPL-2.0 with Linux-syscall-note or BSD-3-Clause (linux kernel headers), \
|
||||
CC0-1.0 (meson build system), \
|
||||
CC-BY-SA-4.0 (doc)
|
||||
LIBCAMERA_LICENSE_FILES = \
|
||||
LICENSES/LGPL-2.1-or-later.txt \
|
||||
LICENSES/GPL-2.0-or-later.txt \
|
||||
LICENSES/MIT.txt \
|
||||
LICENSES/BSD-2-Clause.txt \
|
||||
LICENSES/GPL-2.0-only.txt \
|
||||
LICENSES/Linux-syscall-note.txt \
|
||||
LICENSES/BSD-3-Clause.txt \
|
||||
LICENSES/CC0-1.0.txt \
|
||||
LICENSES/CC-BY-SA-4.0.txt
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_7),y)
|
||||
LIBCAMERA_CXXFLAGS = -faligned-new
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCAMERA_V4L2),y)
|
||||
LIBCAMERA_CONF_OPTS += -Dv4l2=true
|
||||
else
|
||||
LIBCAMERA_CONF_OPTS += -Dv4l2=false
|
||||
endif
|
||||
|
||||
LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_IPU3) += ipu3
|
||||
ifeq ($(BR2_PACKAGE_LIBCAMERA_PIPELINE_RASPBERRYPI),y)
|
||||
LIBCAMERA_PIPELINES-y += raspberrypi
|
||||
LIBCAMERA_DEPENDENCIES += boost
|
||||
endif
|
||||
LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_RKISP1) += rkisp1
|
||||
LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_SIMPLE) += simple
|
||||
LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_UVCVIDEO) += uvcvideo
|
||||
LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_VIMC) += vimc
|
||||
|
||||
LIBCAMERA_CONF_OPTS += -Dpipelines=$(subst $(space),$(comma),$(LIBCAMERA_PIPELINES-y))
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCAMERA_COMPLIANCE),y)
|
||||
LIBCAMERA_DEPENDENCIES += gtest libevent
|
||||
LIBCAMERA_CONF_OPTS += -Dlc-compliance=enabled
|
||||
else
|
||||
LIBCAMERA_CONF_OPTS += -Dlc-compliance=disabled
|
||||
endif
|
||||
|
||||
# gstreamer-video-1.0, gstreamer-allocators-1.0
|
||||
ifeq ($(BR2_PACKAGE_GSTREAMER1)$(BR2_PACKAGE_GST1_PLUGINS_BASE),yy)
|
||||
LIBCAMERA_CONF_OPTS += -Dgstreamer=enabled
|
||||
LIBCAMERA_DEPENDENCIES += gstreamer1 gst1-plugins-base
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5BASE_WIDGETS),y)
|
||||
LIBCAMERA_CONF_OPTS += -Dqcam=enabled
|
||||
LIBCAMERA_DEPENDENCIES += qt5base
|
||||
ifeq ($(BR2_PACKAGE_QT5TOOLS_LINGUIST_TOOLS),y)
|
||||
LIBCAMERA_DEPENDENCIES += qt5tools
|
||||
endif
|
||||
else
|
||||
LIBCAMERA_CONF_OPTS += -Dqcam=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_TIFF),y)
|
||||
LIBCAMERA_DEPENDENCIES += tiff
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
||||
LIBCAMERA_DEPENDENCIES += udev
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LTTNG_LIBUST),y)
|
||||
LIBCAMERA_CONF_OPTS += -Dtracing=enabled
|
||||
LIBCAMERA_DEPENDENCIES += lttng-libust
|
||||
else
|
||||
LIBCAMERA_CONF_OPTS += -Dtracing=disabled
|
||||
endif
|
||||
|
||||
$(eval $(meson-package))
|
||||
Reference in New Issue
Block a user