anchor.diff:      -DLLVM_REQUESTED_VERSION=${LLVM_MAJOR_VERSION} \
       -DENABLE_MAN=OFF \
   "
  -EXTRA_OECMAKE += "${@bb.utils.contains('PTEST_ENABLED', '1', '-DBUILD_TESTING=ON', '-DBUILD_TESTING=OFF', d)}"
   
   COMPATIBLE_HOST = "(x86_64.*|aarch64.*|powerpc64.*|riscv64.*)-linux"
   COMPATIBLE_HOST:libc-musl = "null"
  
positive.code: 
  inherit cmake ptest
  
  do_install_ptest() {
      install -d ${D}${PTEST_PATH}/tests
      install -m 755 ${B}/tests/bpftrace_test ${D}${PTEST_PATH}/tests
      cp -rf ${B}/tests/runtime* ${D}${PTEST_PATH}/tests
      cp -rf ${B}/tests/test* ${D}${PTEST_PATH}/tests
  }
  
  def llvm_major_version(d):
  
negative.code:             libbpf \
              "
  
  PV .= "+git${SRCREV}"
  RDEPENDS:${PN} += "bash python3 xz"
  RDEPENDS:${PN}-ptest += "bash"
  