From patchwork Thu Sep 24 18:36:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Dechesne X-Patchwork-Id: 54127 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 907CC22DC2 for ; Thu, 24 Sep 2015 18:37:18 +0000 (UTC) Received: by wicmn1 with SMTP id mn1sf45341538wic.1 for ; Thu, 24 Sep 2015 11:37:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:mime-version :in-reply-to:references:from:date:message-id:to:cc:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:content-type:content-transfer-encoding :sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=gEDixYeVY6pLgm7T7Q1slSR6MomhwX7FwuxxXOP9heM=; b=To4H6sGqUg5Y4FIfsJV5qdtT/mRG9SaqZ377+DvouWK+GW3MFoNG+Z6m/O2JUjU21N I1nc/ygQwcXVpLLIsOVuJ4tH0Kl4ZoGYmAV7qUs946ejHtLZFMRXmbCM+0h8Es0G3PAe xqSEaJ6MOBns0y47TS1oKw1M3FW/xCG3n+zn4p9+G0F8r0qsFaso73g403Kh/DTux1Tv r0Us7uqEFAkroUDvxBGJTM/3en5P+ZuH5xHaxlC4uymCk8Nxs3DJPxIUR/HFWZdHTgd3 i46w23p16HEQ3Y0cPJh9HvDoR0CNw0tIZXnmwYpaJBP5H2kEgibBBYtiSRbaM4Wd0XWY tq8Q== X-Gm-Message-State: ALoCoQkbC6plGAA0M6xK0lzA9VMCdb6Ptu4oRuCCd8m0u6y+WPoLpHWP//Vd3MMgtHPF91Dxw5MU X-Received: by 10.112.169.34 with SMTP id ab2mr186392lbc.23.1443119837880; Thu, 24 Sep 2015 11:37:17 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.149.7 with SMTP id x7ls195517lfd.51.gmail; Thu, 24 Sep 2015 11:37:17 -0700 (PDT) X-Received: by 10.112.157.68 with SMTP id wk4mr318815lbb.119.1443119837725; Thu, 24 Sep 2015 11:37:17 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id a135si6256726lfe.135.2015.09.24.11.37.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Sep 2015 11:37:17 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by lacao8 with SMTP id ao8so73712498lac.3 for ; Thu, 24 Sep 2015 11:37:17 -0700 (PDT) X-Received: by 10.25.207.82 with SMTP id f79mr220743lfg.73.1443119837589; Thu, 24 Sep 2015 11:37:17 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp495842lbq; Thu, 24 Sep 2015 11:37:16 -0700 (PDT) X-Received: by 10.50.78.41 with SMTP id y9mr2229161igw.72.1443119836516; Thu, 24 Sep 2015 11:37:16 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id om6si5405966igb.48.2015.09.24.11.37.15; Thu, 24 Sep 2015 11:37:16 -0700 (PDT) Received-SPF: pass (google.com: domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 042CA734DA; Thu, 24 Sep 2015 18:37:11 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) by mail.openembedded.org (Postfix) with ESMTP id 22E07734DA for ; Thu, 24 Sep 2015 18:37:07 +0000 (UTC) Received: by qkdw123 with SMTP id w123so33361350qkd.0 for ; Thu, 24 Sep 2015 11:37:07 -0700 (PDT) X-Received: by 10.55.198.9 with SMTP id b9mr1435543qkj.97.1443119827553; Thu, 24 Sep 2015 11:37:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.98.55 with HTTP; Thu, 24 Sep 2015 11:36:48 -0700 (PDT) In-Reply-To: <1443077455.19044.55.camel@linuxfoundation.org> References: <1443077455.19044.55.camel@linuxfoundation.org> From: Nicolas Dechesne Date: Thu, 24 Sep 2015 11:36:48 -0700 Message-ID: To: Richard Purdie Cc: Patches and discussions about the oe-core layer Subject: Re: [OE-core] Including machine specific mesa-driver X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: nicolas.dechesne@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 On Wed, Sep 23, 2015 at 11:50 PM, Richard Purdie wrote: > > The idea was that the machine config can nominate the "X11" config it > needs by indicating the drivers that make sense for this piece of > hardware. The XSERVER variable is then used to decide which pieces of X > to pull in and pulling in the right mesa pieces at the same time made > sense then. right. > > > We could split the mesa pieces out into a separate MESADRIVERS variable > and the wayland/weston could just pull those in? Ultimately its still > the machine config which has the knowledge of which drivers make sense > for a given platform. Exactly which piece of the system would pull in > MESADRIVERS is a good question but I've not looked at the metadata just > thinking out loud. it looks like it's either libGL (when using X/GLX) or libEGL that would dynamically load the libary. So we might be able to do something along these lines: MACHINE_FEATURES = "alsa bluetooth usbgadget screen" MACHINEOVERRIDES =. "qemuall:" ------- how does that look like? It's untested for now, btw. --- a/meta/conf/machine/include/qemu.inc +++ b/meta/conf/machine/include/qemu.inc @@ -5,12 +5,14 @@ PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa" PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa" XSERVER ?= "xserver-xorg \ - ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast', '', d)} \ xf86-input-evdev \ xf86-input-mouse \ xf86-video-fbdev \ xf86-input-keyboard" +RDEPENDS_libgl-mesa = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast', '', d)}" +RDEPENDS_libegl-mesa = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast', '', d)}" +