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 <yann@blade-group.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Yann Dirson 2020-09-09 10:45:38 +02:00 committed by Khem Raj
parent 5d28b4ec75
commit 52fbd36e62

View File

@ -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}"