anchor.diff:      cp kernel_modules_headers.tar.bz2 ${DEPLOYDIR}
   }
   
  +do_compile[depends] += "virtual/kernel:do_deploy"
   addtask deploy before do_package after do_install
   
   PACKAGE_ARCH = "${MACHINE_ARCH}"
  
positive.code: 
  do_compile() {
      mkdir -p kernel_modules_headers
      cp -n ${STAGING_KERNEL_BUILDDIR}/.config ${STAGING_KERNEL_BUILDDIR}/Module.symvers ${STAGING_KERNEL_DIR}
      if [ "${TRANSLATED_TARGET_ARCH}" = "x86-64" ] || [ "${TRANSLATED_TARGET_ARCH}" = "i686" ]; then
          TGT_ARCH="x86"
      else
          TGT_ARCH=${TRANSLATED_TARGET_ARCH}
      fi
      ${S}/gen_mod_headers ${STAGING_KERNEL_DIR} kernel_modules_headers ${TGT_ARCH} ARCH=${TGT_ARCH} CROSS_COMPILE=${TARGET_PREFIX}
      tar -cjf kernel_modules_headers.tar.bz2 kernel_modules_headers
      rm -rf kernel_modules_headers
  }
  
negative.code: 
  SRC_URI = "git://github.com/resin-os/module-headers.git;protocol=https"
  
  SRCREV = "7787ed1393f8a45334f0342e29bdc3a4a2ddcf93"
  
  S = "${WORKDIR}/git"
  B = "${WORKDIR}"
  