anchor.diff:  LICENSE = "Proprietary"
   LIC_FILES_CHKSUM = "file://EULA;md5=82e466d0ed92c5a15f568dbe6b31089c"
   
  -inherit distro_features_check
  +inherit distro_features_check update-alternatives
   
  -ANY_OF_DISTRO_FEATURES = "fbdev x11"
  +REQUIRED_DISTRO_FEATURES = "x11 fbdev wayland"
   
   PROVIDES += "virtual/libgles1 virtual/libgles2 virtual/egl virtual/libgbm"
   
  
positive.code: 
      cp -a --no-preserve=ownership ${S}/${PV}/${ARCH_PLATFORM_DIR}/common/*.so* ${D}${libdir}
  
      if [ "${USE_WL}" = "yes" ]; then
  	install -m 0644 ${S}/${PV}/glesHeaders/GBM/gbm.h ${D}${includedir}/
  	install -m 0644 ${WORKDIR}/gbm.pc ${D}${libdir}/pkgconfig/gbm.pc
  	install -Dm 0644 ${S}/${PV}/${ARCH_PLATFORM_DIR}/wayland/libMali.so.8.0 ${D}${libdir}/wayland/libMali.so.8.0
  	ln -snf wayland/libMali.so.8.0 ${D}${libdir}/libMali.so.8.0
      elif [ "${USE_X11}" = "yes" ]; then
  	install -Dm 0644 ${S}/${PV}/${ARCH_PLATFORM_DIR}/x11/libMali.so.8.0 ${D}${libdir}/x11/libMali.so.8.0
  	ln -snf x11/libMali.so.8.0 ${D}${libdir}/libMali.so.8.0
      elif [ "${USE_FB}" = "yes" ]; then
  	install -Dm 0644 ${S}/${PV}/${ARCH_PLATFORM_DIR}/fbdev/libMali.so.8.0 ${D}${libdir}/fbdev/libMali.so.8.0
  	ln -snf fbdev/libMali.so.8.0 ${D}${libdir}/libMali.so.8.0
      else
  	install -Dm 0644 ${S}/${PV}/${ARCH_PLATFORM_DIR}/headless/libMali.so.8.0 ${D}${libdir}/headless/libMali.so.8.0
  	ln -snf headless/libMali.so.8.0 ${D}${libdir}/libMali.so.8.0
      fi
  
      if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'false', 'true', d)}; then
          sed -i -e 's/^#if defined(MESA_EGL_NO_X11_HEADERS)$/#if (1)/' ${D}${includedir}/EGL/eglplatform.h
      fi
  }
  
  
  
negative.code: 
  S = "${WORKDIR}/git"
  
  # If were switching at runtime, we need all RDEPENDS needed for all backends available
  RDEPENDS_${PN} = " kernel-module-mali libxdamage libxext libx11 libdrm libxfixes"
  
  # We dont build anything but we want to avoid QA warning build-deps
  DEPENDS = "wayland"
  
  # x11 is default, set to "fbdev" , "wayland", or "headless" if required
  MALI_BACKEND_DEFAULT ?= "x11"
  
  do_install() {
      #Identify the ARCH type
  