Skip to content

Commit

Permalink
libiio: add serial backend support
Browse files Browse the repository at this point in the history
This patch adds the serial backend to the PACKAGECONFIG list.

Signed-off-by: Nuno Sá <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
nunojsa authored and kraj committed May 17, 2021
1 parent 491249e commit 31c3d52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meta-oe/recipes-support/libiio/libiio_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ EXTRA_OECMAKE = " \
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-DWITH_SYSTEMD=ON -DSYSTEMD_UNIT_INSTALL_DIR=${systemd_system_unitdir}', '', d)} \
"

PACKAGECONFIG ??= "usb_backend network_backend"
PACKAGECONFIG ??= "usb_backend network_backend serial_backend"

PACKAGECONFIG[usb_backend] = "-DWITH_USB_BACKEND=ON,-DWITH_USB_BACKEND=OFF,libusb1,libxml2"
PACKAGECONFIG[network_backend] = "-DWITH_NETWORK_BACKEND=ON,-DWITH_NETWORK_BACKEND=OFF,libxml2"
PACKAGECONFIG[serial_backend] = "-DWITH_SERIAL_BACKEND=ON,-DWITH_SERIAL_BACKEND=off,libserialport libxml2"
PACKAGECONFIG[libiio-python3] = "-DPYTHON_BINDINGS=ON,-DPYTHON_BINDINGS=OFF"

PACKAGES =+ "${PN}-iiod ${PN}-tests ${PN}-${PYTHON_PN}"
Expand Down

0 comments on commit 31c3d52

Please sign in to comment.