From 52fbd36e62e8237e0df13c3ed9ac997c5f96e82b Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Wed, 9 Sep 2020 10:45:38 +0200 Subject: libcec: build with Linux CEC API The Linux CEC API is available in linux-kernel-headers 4.10 and newer, and supported since libcec 5.0.0, though they still default to the legacy Raspberry Pi API. Signed-off-by: Yann Dirson Signed-off-by: Khem Raj --- meta-oe/recipes-extended/libcec/libcec_6.0.2.bb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta-oe/recipes-extended/libcec') diff --git a/meta-oe/recipes-extended/libcec/libcec_6.0.2.bb b/meta-oe/recipes-extended/libcec/libcec_6.0.2.bb index c4aeb8c555..94d967f4c8 100644 --- a/meta-oe/recipes-extended/libcec/libcec_6.0.2.bb +++ b/meta-oe/recipes-extended/libcec/libcec_6.0.2.bb @@ -20,6 +20,10 @@ S = "${WORKDIR}/git" inherit cmake pkgconfig +# default config is for RaspberryPi API, use the Linux 4.10+ API by default +PLATFORM_CMAKE_FLAGS ?= "-DHAVE_LINUX_API=1 -DHAVE_RPI_API=0" +EXTRA_OECMAKE += "${PLATFORM_CMAKE_FLAGS}" + # Put client tools into a separate package PACKAGE_BEFORE_PN += "${PN}-tools" FILES_${PN}-tools = "${bindir}" -- cgit v1.2.3-54-g00ecf