anchor.diff:  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[libiio-python3] = "-DPYTHON_BINDINGS=ON,-DPYTHON_BINDINGS=OFF"
  -
  -inherit ${@bb.utils.contains('PACKAGECONFIG', 'libiio-python3', 'distutils3-base', '', d)}
   
   PACKAGES =+ "${PN}-iiod ${PN}-tests ${PN}-${PYTHON_PN}"
   
  
positive.code: 
  S = "${WORKDIR}/git"
  
  inherit cmake python3native systemd
  
  DEPENDS = " \
      flex-native bison-native libaio \
      ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \
  "
  
  EXTRA_OECMAKE = " \
      -DCMAKE_BUILD_TYPE=RelWithDebInfo \
  
negative.code: 
  SYSTEMD_PACKAGES = "${PN}-iiod"
  SYSTEMD_SERVICE_${PN}-iiod = "iiod.service"
  
  # Explicitly define do_configure, do_compile and do_install because both cmake and setuptools3 have
  # EXPORT_FUNCTIONS do_configure do_compile do_install
  do_configure() {
      cmake_do_configure
  }
  
  do_compile() {
      if ${@bb.utils.contains('PACKAGECONFIG', 'libiio-python3', 'true', 'false', d)}; then
          distutils3_do_compile
      fi
      cmake_do_compile
  }
  
  do_install() {
      if ${@bb.utils.contains('PACKAGECONFIG', 'libiio-python3', 'true', 'false', d)}; then
          distutils3_do_install
      fi
      cmake_do_install
  }
  