anchor.diff:            '
   S_r8a7792 = "${WORKDIR}/eurasia_km"
   KERNEL_SRC_PATH_r8a7792 = "eurasiacon/build/linux2/r8a7792_linux/"
  -KERNEL_OLD_SRC_PATH_r8a7792 ="eurasiacon/build/linux2/r8a7745_linux/"
   TARGET_PATH_r8a7792 = "eurasia_km/eurasiacon/binary2_r8a7792_linux_release/target/kbuild"
   
   GLES = "${@base_contains('MACHINE_FEATURES', 'rgx', 'rgx', \
  
positive.code: 
  RPROVIDES_${PN} += "${GLES}-kernel-module"
  
  inherit module
  INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  
  ###do_patch[noexec] = "1"
  do_configure[noexec] = "1"
  do_populate_lic[noexec] = "1"
  
  
  export LANG = "C"
  export BUILDDIR = "${STAGING_INCDIR}/.."
  export LIBSHARED = "${STAGING_LIBDIR}"
  export KERNELSRC = "${STAGING_KERNEL_DIR}"
  export CROSS_COMPILE = "${TARGET_PREFIX}"
  export KERNELDIR = "${KBUILD_OUTPUT}"
  export LDFLAGS=""
  export CP = "cp"
  
  python do_package_ipk_prepend () {
      d.setVar('ALLOW_EMPTY', '1')
  }
  
  # Append function to clean extract source
  do_cleansstate_prepend() {
          bb.build.exec_func('do_clean_source', d)
  }
  
  
  do_compile() {
      if [ -e "${S}/${KERNEL_OLD_SRC_PATH}"  ]; then 
      mv ${S}/${KERNEL_OLD_SRC_PATH}  ${S}/${KERNEL_SRC_PATH}
      fi
      cd ${S}/${KERNEL_SRC_PATH}
      unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
      make kbuild ARCH=arm DISCIMAGE=${D}
  
negative.code: 
      unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
      make kbuild_install ARCH=arm DISCIMAGE=${D}
  }
  
  RPROVIDES_${PN} += "kernel-module-pvrsrvkm kernel-module-dc-linuxfb kernel-module-bc-example"
  