libsocketcan: Add PACKAGECONFIG options

libsocketcan offers two configuration options.

debug: Compile for debugging. Off by default.
error-log: Logging of error events to stderr. On by default.

Because error-log is on by default the package config option is
no-error-log to retain existing recipe behavior.

Signed-off-by: Mark Jonas <toertel@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Mark Jonas
2020-11-13 19:40:45 +01:00
committed by Khem Raj
parent 19ff9afd65
commit 291e48127e
@@ -12,3 +12,7 @@ SRC_URI = "git://git.pengutronix.de/git/tools/libsocketcan.git;protocol=git"
S = "${WORKDIR}/git"
inherit autotools pkgconfig
PACKAGECONFIG ?= ""
PACKAGECONFIG[debug] = "--enable-debug,--disable-debug"
PACKAGECONFIG[no-error-log] = "--disable-error-log,--enable-error-log"