anchor.diff:  # Component build is broken in ozone-wayland for Chromium 40,
   # and is not planned to work again before version 41
   python() {
  -    if (d.getVar('ENABLE_X11', True) != '1') and (d.getVar('ENABLE_WAYLAND', True) == '1'):
  +    if (d.getVar('CHROMIUM_ENABLE_WAYLAND', True) == '1'):
           if bb.utils.contains('PACKAGECONFIG', 'component-build', True, False, d):
               bb.fatal("Chromium 40 Wayland version cannot be built in component-mode")
   }
  
positive.code: CHROMIUM_WAYLAND_GYP_DEFINES = "use_ash=1 use_aura=1 chromeos=0 use_ozone=1"
  
  python() {
      if d.getVar('ENABLE_X11', True) == '1':
          d.appendVar('DEPENDS', ' %s ' % d.getVar('CHROMIUM_X11_DEPENDS', True))
          d.appendVar('GYP_DEFINES', ' %s ' % d.getVar('CHROMIUM_X11_GYP_DEFINES', True))
      if d.getVar('ENABLE_WAYLAND', True) == '1':
          d.appendVar('DEPENDS', ' %s ' % d.getVar('CHROMIUM_WAYLAND_DEPENDS', True))
          d.appendVar('GYP_DEFINES', ' %s ' % d.getVar('CHROMIUM_WAYLAND_GYP_DEFINES', True))
  }
  
  do_configure_append() {
  
negative.code: #                        See http://www.chromium.org/developers/design-documents/impl-side-painting for more.
  #                        Off by default.
  
  # Conditionally add ozone-wayland and its patches to the Chromium sources
  # You can override this by setting CHROMIUM_ENABLE_WAYLAND=1 or CHROMIUM_ENABLE_WAYLAND=0 in local.conf
  CHROMIUM_ENABLE_WAYLAND ??= "${@base_contains('DISTRO_FEATURES', 'x11', '0', \
                       base_contains('DISTRO_FEATURES', 'wayland', '1', \
                       '0', d),d)}"
  # Some sanity checks.
  python do_check_variables() {
      CHROMIUM_BUILD_TYPE = d.getVar('CHROMIUM_BUILD_TYPE', True)
      CHROMIUM_ENABLE_WAYLAND = d.getVar('CHROMIUM_ENABLE_WAYLAND', True)
      DISTRO_FEATURES = d.getVar("DISTRO_FEATURES", True).split()
      if CHROMIUM_BUILD_TYPE not in ['Release', 'Debug']:
          bb.fatal("Wrong value for CHROMIUM_BUILD_TYPE. Please set it either to \'Release\' or to \'Debug\'")
      if CHROMIUM_ENABLE_WAYLAND not in ['0', '1']:
          bb.fatal("Wrong value for CHROMIUM_ENABLE_WAYLAND. Please set it to \'1\' to enable the feature or to \'0\' to disable it")
      if ( (CHROMIUM_ENABLE_WAYLAND == '1') and ('wayland' not in DISTRO_FEATURES) ):
          bb.warn("You have selected to build Chromium with Wayland support, but you have not enabled wayland in DISTRO_FEATURES")
      if ( (CHROMIUM_ENABLE_WAYLAND != '1') and ('x11' not in DISTRO_FEATURES) ):
          bb.warn("You have selected to build Chromium without Wayland support, but you have not enabled x11 in DISTRO_FEATURES")
      # Print both on log.do_checkvariables and on the console the configuration that is selected.
      # This useful both for throubleshooting and for checking how the build is finally configured.
      if (CHROMIUM_ENABLE_WAYLAND == '1'):
          bb.plain("INFO: Chromium has been configured with Wayland support (ozone-wayland). Build type is \'%s\'" %CHROMIUM_BUILD_TYPE)
      else:
          bb.plain("INFO: Chromium has been configured without Wayland support. Build type is \'%s\'" %CHROMIUM_BUILD_TYPE)
  }
  addtask check_variables before do_fetch
  
  OZONE_WAYLAND_GIT_DESTSUFFIX = "ozone-wayland-git"
  OZONE_WAYLAND_GIT_BRANCH = "Milestone-ThanksGiving"
  OZONE_WAYLAND_GIT_SRCREV = "5d7baa9bc3b8c88e9b7e476e3d6bc8cd44a887fe"
  SRC_URI += "${@base_conditional('CHROMIUM_ENABLE_WAYLAND', '1', 'git://github.com/01org/ozone-wayland.git;destsuffix=${OZONE_WAYLAND_GIT_DESTSUFFIX};branch=${OZONE_WAYLAND_GIT_BRANCH};rev=${OZONE_WAYLAND_GIT_SRCREV}', '', d)}"
  OZONE_WAYLAND_PATCH_FILE_GLOB = "*.patch"
  
  do_unpack[postfuncs] += "${@base_conditional('CHROMIUM_ENABLE_WAYLAND', '1', 'copy_ozone_wayland_files', '', d)}"
  do_patch[prefuncs] += "${@base_conditional('CHROMIUM_ENABLE_WAYLAND', '1', 'add_ozone_wayland_patches', '', d)}"
  
  LIC_FILES_CHKSUM = "file://LICENSE;md5=537e0b52077bf0a616d0a0c8a79bc9d5"
  SRC_URI += "\
  