anchor.diff:          install -m 755 "$example" "${D}${datadir}/${BPN}/examples"
       done
   
  -    # Install unittests
  -    install -d "${D}${datadir}/${BPN}/tests"
  -    for test in ${B}/bin/tests/*
  -    do
  -        install -m 755 "$test" "${D}${datadir}/${BPN}/tests"
  -    done
  +    if ${@bb.utils.contains('PACKAGECONFIG','unit_tests','true','false',d)}
  +    then
  +        # Install unittests
  +        install -d "${D}${datadir}/${BPN}/tests"
  +        for test in ${B}/bin/tests/*
  +        do
  +            install -m 755 "$test" "${D}${datadir}/${BPN}/tests"
  +        done
  +    fi
   }
   
   PACKAGES =+ "${PN}-examples ${PN}-tests"
  -FILES_${PN}-dev += "${libdir}/cmake/*"
  +FILES_${PN}-dev += "${libdir}/cmake/* ${datadir}/${BPN}/tools"
   FILES_${PN}-examples += "${datadir}/${BPN}/examples"
   FILES_${PN}-tests += "${datadir}/${BPN}/tests"
  +
  +# This contains some python-based tools
  +RDEPENDS_${PN}-dev = "python3"
   
   # Allow staticdev package to be empty incase sharedlibs is switched on
   ALLOW_EMPTY_${PN}-staticdev = "1"
  
positive.code: PACKAGECONFIG[pubsub_informationmodel] = "-DUA_ENABLE_PUBSUB_INFORMATIONMODEL=1,-DUA_ENABLE_PUBSUB_INFORMATIONMODEL=0,,"
  PACKAGECONFIG[pubsub_informationmodel_methods] = "-DUA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS=1,-DUA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS=0,,"
  PACKAGECONFIG[subscription_events] = "-DUA_ENABLE_SUBSCRIPTIONS_EVENTS=1,-DUA_ENABLE_SUBSCRIPTIONS_EVENTS=0,,"
  
  PACKAGECONFIG[certificate] = "-DUA_BUILD_SELFSIGNED_CERTIFICATE=1,-DUA_BUILD_SELFSIGNED_CERTIFICATE=0,,"
  
  PACKAGECONFIG ?= "pubsub pubsub_delta_frames pubsub_informationmodel \
                    pubsub_informationmodel_methods pubsub_uadp"
  
  # Install examples and unit tests
  do_install_append() {
  
negative.code: LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad"
  
  SRC_URI = "git://github.com/open62541/open62541.git;protocol=https;branch=${BRANCH} \
             git://github.com/OPCFoundation/UA-Nodeset.git;protocol=https;branch=v1.04;destsuffix=git/deps/ua-nodeset;name=ua-nodeset \
             git://github.com/Pro/mdnsd.git;protocol=https;branch=master;destsuffix=git/deps/mdnsd;name=mdnsd \
             file://0001-examples-client-allow-configurable-server.patch \
  "
  
  BRANCH = "1.0"
  SRCREV = "e4309754fc2f6ea6508b59ca82e08c27b0118d74"
  
  SRCREV_ua-nodeset = "0777abd1bc407b4dbd79abc515864f8c3ce6812b"
  SRCREV_mdnsd = "f7f0dd543f12fa7bbf2b667cceb287b9c8184b7d"
  
  SRCREV_FORMAT = "default"
  
  PV = "1.0.1+git${SRCPV}"
  
  inherit cmake python3native
  
  DEPENDS += "python3-six-native"
  
  S = "${WORKDIR}/git"
  
  EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=RelWithDebInfo -DUA_NAMESPACE_ZERO=FULL -DUA_BUILD_EXAMPLES=1"
  
  PACKAGECONFIG[sharedlibs] = "-DBUILD_SHARED_LIBS=1,-DBUILD_SHARED_LIBS=0,,"
  PACKAGECONFIG[encrypt] = "-DUA_ENABLE_ENCRYPTION=1 -DMBEDTLS_FOLDER_LIBRARY=${STAGING_LIBDIR} -DMBEDTLS_FOLDER_INCLUDE=${STAGING_INCDIR},-DUA_ENABLE_ENCRYPTION=0,mbedtls,"
  