anchor.diff:      install -m 755 ${S}/files/start ${D}/${datadir}/runX
       install -m 755 ${S}/files/state ${D}/${datadir}/runX
       install -m 755 ${S}/files/delete ${D}/${datadir}/runX
  +    install -m 755 ${S}/files/serial_bridge ${D}/${datadir}/runX
  +    install -m 755 ${S}/files/serial_start ${D}/${datadir}/runX
   
   
   }
  
positive.code:     ${S}/kernel/make-initrd
  }
  
  do_build_go_shim() {
  
      # placeholder for any go shim code we may need, i.e. console
  
      # export GOARCH="${TARGET_GOARCH}"
      # export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
      # export GOPATH="${S}/src/import:${S}/src/import/vendor"
  
      # # Pass the needed cflags/ldflags so that cgo
      # # can find the needed headers files and libraries
      # export CGO_ENABLED="1"
      # export CFLAGS=""
      # export LDFLAGS=""
      # export CGO_CFLAGS="${BUILDSDK_CFLAGS} --sysroot=${STAGING_DIR_TARGET}"
      # export CGO_LDFLAGS="${BUILDSDK_LDFLAGS} --sysroot=${STAGING_DIR_TARGET}"
  
      # # link fixups for compilation
      # rm -f ${S}/src/import/vendor/src
      # ln -sf ./ ${S}/src/import/vendor/src
  
      # mkdir -p ${S}/src/import/vendor/github.com/hyperhq/runv
  
      # ln -sf src/import/cli
      # ln -sf ../../../../api ${S}/src/import/vendor/github.com/hyperhq/runv/api
      # ln -sf ../../../../cli ${S}/src/import/vendor/github.com/hyperhq/runv/cli
      # ln -sf ../../../../lib ${S}/src/import/vendor/github.com/hyperhq/runv/lib
      # ln -sf ../../../../driverloader ${S}/src/import/vendor/github.com/hyperhq/runv/driverloader
      # ln -sf ../../../../factory ${S}/src/import/vendor/github.com/hyperhq/runv/factory
      # ln -sf ../../../../hyperstart ${S}/src/import/vendor/github.com/hyperhq/runv/hyperstart
      # ln -sf ../../../../hypervisor ${S}/src/import/vendor/github.com/hyperhq/runv/hypervisor
      # ln -sf ../../../../template ${S}/src/import/vendor/github.com/hyperhq/runv/template
  
      # export GOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go"
      # export GOROOT="${STAGING_DIR_NATIVE}/${nonarch_libdir}/${HOST_SYS}/go"
  
      # # Pass the needed cflags/ldflags so that cgo
      # # can find the needed headers files and libraries
      # export CGO_ENABLED="1"
      # export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}"
      # export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}"
  
      # oe_runmake build-shim
  
      true
  }
  
  do_install() {
      install -d ${D}${bindir}
      install -m 755 ${S}/runX ${D}${bindir}
  
negative.code: 
  # we have a busybox bbappend that makes /bin available to the
  # sysroot, and hence gets us the target binary that we need
  DEPENDS = "busybox go-build"
  
  # for the kernel build phase
  DEPENDS += "openssl-native coreutils-native util-linux-native xz-native bc-native"
  DEPENDS += "qemu-native"
  
  RDEPENDS_${PN} += " jq bash"
  RDEPENDS_${PN} += " xen-xl go-build socat daemonize"
  
  do_compile() {
      # we'll need this for the initrd later, so lets error if it isn't what
  