anchor.diff:  DESCRIPTION = "Kernel selftest for Linux"
   LICENSE = "GPLv2"
   
  -LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7 \
  -"
  +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
  +
  +DEPENDS = "rsync-native"
   
   # for musl libc
   SRC_URI_libc-musl += "file://userfaultfd.patch \
                         file://0001-bpf-test_progs.c-add-support-for-musllibc.patch \
   "
   
  +# now we just test bpf and vm
  +# we will append other kernel selftest in the future
  +# bpf was added in 4.10 with: https://github.com/torvalds/linux/commit/5aa5bd14c5f8660c64ceedf14a549781be47e53d
  +# if you have older kernel than that you need to remove it from PACKAGECONFIG
   PACKAGECONFIG ??= "bpf vm"
   
   PACKAGECONFIG[bpf] = ",,elfutils libcap libcap-ng rsync-native,"
  
positive.code: }
  
  remove_clang_related() {
  	sed -i -e '/test_pkt_access/d' -e '/test_pkt_md_access/d' ${S}/tools/testing/selftests/bpf/Makefile
  }
  
  PACKAGE_ARCH = "${MACHINE_ARCH}"
  
  INHIBIT_PACKAGE_DEBUG_SPLIT="1"
  FILES_${PN} += "/usr/kernel-selftest"
  
negative.code: 
  S = "${WORKDIR}/${BP}"
  
  TEST_LIST = " \
      ${@bb.utils.filter('PACKAGECONFIG', 'bpf vm', d)} \
  "
  
  EXTRA_OEMAKE = '\
  