anchor.diff:  CHROMIUM_WAYLAND_GYP_DEFINES = "use_ash=1 use_aura=1 chromeos=0 use_ozone=1"
   
   python() {
  -    if d.getVar('ENABLE_X11', True) == '1':
  +    if d.getVar('CHROMIUM_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))
  +    else:
           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() {
  
positive.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
  
  ENABLE_X11 = "${@base_contains('DISTRO_FEATURES', 'x11', '1', '0', d)}"
  # only enable Wayland if X11 isn't already enabled
  ENABLE_WAYLAND = "${@base_contains('DISTRO_FEATURES', 'x11', '0', \
                       base_contains('DISTRO_FEATURES', 'wayland', '1', \
                       '0', d),d)}"
  
  OZONE_WAYLAND_GIT_DESTSUFFIX = "ozone-wayland-git"
  OZONE_WAYLAND_GIT_BRANCH = "Milestone-ThanksGiving"
  OZONE_WAYLAND_GIT_SRCREV = "5d7baa9bc3b8c88e9b7e476e3d6bc8cd44a887fe"
  SRC_URI += "${@base_conditional('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('ENABLE_WAYLAND', '1', 'copy_ozone_wayland_files', '', d)}"
  do_patch[prefuncs] += "${@base_conditional('ENABLE_WAYLAND', '1', 'add_ozone_wayland_patches', '', d)}"
  
  LIC_FILES_CHKSUM = "file://LICENSE;md5=537e0b52077bf0a616d0a0c8a79bc9d5"
  SRC_URI += "\
  
negative.code: # Component build is broken in ozone-wayland for Chromium 40,
  # and is not planned to work again before version 41
  python() {
      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")
  }
  