f41d47f15b
Link with -latomic if needed to avoid the following build failure raised
since the addition of the package in commit
7227d005d2
:
/home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/10.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: CMakeFiles/libcamera-still.dir/libcamera_still.cpp.o: undefined reference to symbol '__atomic_fetch_sub_4@@LIBATOMIC_1.0'
Fixes:
- http://autobuild.buildroot.org/results/b20465140f3a5281f9b586f442b67fd400e7184a
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# libcamera-apps
|
|
#
|
|
################################################################################
|
|
|
|
LIBCAMERA_APPS_VERSION = 2d1009e3badcc8047361ff81149ad6cba3b911b5
|
|
LIBCAMERA_APPS_SITE = $(call github,raspberrypi,libcamera-apps,$(LIBCAMERA_APPS_VERSION))
|
|
LIBCAMERA_APPS_LICENSE = BSD-2-Clause
|
|
LIBCAMERA_APPS_LICENSE_FILES = license.txt
|
|
LIBCAMERA_APPS_DEPENDENCIES = \
|
|
host-pkgconf \
|
|
boost \
|
|
jpeg \
|
|
libcamera \
|
|
libexif \
|
|
libpng \
|
|
tiff
|
|
|
|
LIBCAMERA_APPS_CONF_OPTS = \
|
|
-DENABLE_COMPILE_FLAGS_FOR_TARGET=disabled \
|
|
-DENABLE_OPENCV=0 \
|
|
-DENABLE_TFLITE=0
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM),y)
|
|
LIBCAMERA_APPS_DEPENDENCIES += libdrm
|
|
LIBCAMERA_APPS_CONF_OPTS += -DENABLE_DRM=1
|
|
else
|
|
LIBCAMERA_APPS_CONF_OPTS += -DENABLE_DRM=0
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_XORG7),y)
|
|
LIBCAMERA_APPS_DEPENDENCIES += \
|
|
$(if $(BR2_PACKAGE_LIBEPOXY),libepoxy) \
|
|
$(if $(BR2_PACKAGE_XLIB_LIBX11),xlib_libX11)
|
|
LIBCAMERA_APPS_CONF_OPTS += -DENABLE_X11=1
|
|
else
|
|
LIBCAMERA_APPS_CONF_OPTS += -DENABLE_X11=0
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_QT5),y)
|
|
LIBCAMERA_APPS_DEPENDENCIES += qt5base
|
|
LIBCAMERA_APPS_CONF_OPTS += -DENABLE_QT=1
|
|
else
|
|
LIBCAMERA_APPS_CONF_OPTS += -DENABLE_QT=0
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
LIBCAMERA_APPS_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|