diff options
Diffstat (limited to 'meta/recipes-graphics/xorg-lib')
-rw-r--r-- | meta/recipes-graphics/xorg-lib/libx11.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libx11.inc b/meta/recipes-graphics/xorg-lib/libx11.inc index c156ce6dcb..455753f5db 100644 --- a/meta/recipes-graphics/xorg-lib/libx11.inc +++ b/meta/recipes-graphics/xorg-lib/libx11.inc | |||
@@ -42,3 +42,8 @@ do_compile() { | |||
42 | # Multiple libx11 derivatives from from this file and are selected by virtual/libx11 | 42 | # Multiple libx11 derivatives from from this file and are selected by virtual/libx11 |
43 | # A world build should only build the correct version, not all of them. | 43 | # A world build should only build the correct version, not all of them. |
44 | EXCLUDE_FROM_WORLD = "1" | 44 | EXCLUDE_FROM_WORLD = "1" |
45 | |||
46 | python () { | ||
47 | if not oe.utils.contains ('DISTRO_FEATURES', 'x11', True, False, d): | ||
48 | raise bb.parse.SkipPackage("X11 not enabled for this DISTRO") | ||
49 | } | ||