diff options
author | Khem Raj <raj.khem@gmail.com> | 2012-04-30 22:01:24 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-24 08:53:56 +0100 |
commit | 71a4bf386181b3fbc2dc723c781a456a0bbdb943 (patch) | |
tree | e7f767a74a9152f51466baa4e6846199080f4fb0 | |
parent | bdb158594f83790ea207a3e6b1708faa722d4b74 (diff) | |
download | poky-71a4bf386181b3fbc2dc723c781a456a0bbdb943.tar.gz |
qemumachines: Enable xserver-xorg as default xserver
For qemux86 and qemux86-64 include qemu.inc after defining XSERVER
XSERVER variable is also weakly defined in task-core-x11.bb
which means we can not use ??= otherwise when building any qemu image
that uses task-core-x11.bb will get the wrong definition
So we define the XSERVER common set for qemu in qemu.inc
and as we know x86 and x86-64 qemu overrides the default
we include qemu.inc after that definition which means that
qemux86 and qemux86-64 get their own definitions and other
qemus get the definitions from qemu.inc. other non-qemu machine
will get their defintion from task which points to kdrive
as of now.
(From OE-Core rev: 62dba36166bc5faa32ba3e0664ae98b168cde6b1)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/conf/machine/include/qemu.inc | 9 | ||||
-rw-r--r-- | meta/conf/machine/qemux86-64.conf | 3 | ||||
-rw-r--r-- | meta/conf/machine/qemux86.conf | 3 |
3 files changed, 12 insertions, 3 deletions
diff --git a/meta/conf/machine/include/qemu.inc b/meta/conf/machine/include/qemu.inc index 421a14925b..e384879a8f 100644 --- a/meta/conf/machine/include/qemu.inc +++ b/meta/conf/machine/include/qemu.inc | |||
@@ -1,7 +1,14 @@ | |||
1 | PCMCIA_MANAGER = "pcmciautils" | 1 | PCMCIA_MANAGER = "pcmciautils" |
2 | PREFERRED_PROVIDER_virtual/xserver ?= "xserver-kdrive" | 2 | PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" |
3 | PREFERRED_PROVIDER_virtual/libgl ?= "mesa-xlib" | 3 | PREFERRED_PROVIDER_virtual/libgl ?= "mesa-xlib" |
4 | 4 | ||
5 | XSERVER ?= "xserver-xorg \ | ||
6 | mesa-dri-driver-swrast \ | ||
7 | xf86-input-evdev \ | ||
8 | xf86-input-mouse \ | ||
9 | xf86-video-fbdev \ | ||
10 | xf86-input-keyboard" | ||
11 | |||
5 | MACHINE_FEATURES = "apm alsa pcmcia bluetooth irda usbgadget screen" | 12 | MACHINE_FEATURES = "apm alsa pcmcia bluetooth irda usbgadget screen" |
6 | 13 | ||
7 | IMAGE_FSTYPES += "tar.bz2 ext3" | 14 | IMAGE_FSTYPES += "tar.bz2 ext3" |
diff --git a/meta/conf/machine/qemux86-64.conf b/meta/conf/machine/qemux86-64.conf index 129fe9f282..2e361a5cab 100644 --- a/meta/conf/machine/qemux86-64.conf +++ b/meta/conf/machine/qemux86-64.conf | |||
@@ -6,7 +6,6 @@ PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" | |||
6 | PREFERRED_PROVIDER_virtual/libgl ?= "mesa-dri" | 6 | PREFERRED_PROVIDER_virtual/libgl ?= "mesa-dri" |
7 | 7 | ||
8 | require conf/machine/include/tune-x86_64.inc | 8 | require conf/machine/include/tune-x86_64.inc |
9 | require conf/machine/include/qemu.inc | ||
10 | 9 | ||
11 | MACHINE_FEATURES += "x86" | 10 | MACHINE_FEATURES += "x86" |
12 | 11 | ||
@@ -23,6 +22,8 @@ XSERVER ?= "xserver-xorg \ | |||
23 | xf86-video-vmware \ | 22 | xf86-video-vmware \ |
24 | qemugl" | 23 | qemugl" |
25 | 24 | ||
25 | require conf/machine/include/qemu.inc | ||
26 | |||
26 | GLIBC_ADDONS = "nptl" | 27 | GLIBC_ADDONS = "nptl" |
27 | GLIBC_EXTRA_OECONF = "--with-tls" | 28 | GLIBC_EXTRA_OECONF = "--with-tls" |
28 | 29 | ||
diff --git a/meta/conf/machine/qemux86.conf b/meta/conf/machine/qemux86.conf index 246d5a0c85..ad840c0498 100644 --- a/meta/conf/machine/qemux86.conf +++ b/meta/conf/machine/qemux86.conf | |||
@@ -6,7 +6,6 @@ PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" | |||
6 | PREFERRED_PROVIDER_virtual/libgl ?= "mesa-dri" | 6 | PREFERRED_PROVIDER_virtual/libgl ?= "mesa-dri" |
7 | 7 | ||
8 | require conf/machine/include/tune-i586.inc | 8 | require conf/machine/include/tune-i586.inc |
9 | require conf/machine/include/qemu.inc | ||
10 | 9 | ||
11 | MACHINE_FEATURES += "x86" | 10 | MACHINE_FEATURES += "x86" |
12 | 11 | ||
@@ -23,6 +22,8 @@ XSERVER ?= "xserver-xorg \ | |||
23 | xf86-video-vmware \ | 22 | xf86-video-vmware \ |
24 | qemugl" | 23 | qemugl" |
25 | 24 | ||
25 | require conf/machine/include/qemu.inc | ||
26 | |||
26 | GLIBC_ADDONS = "nptl" | 27 | GLIBC_ADDONS = "nptl" |
27 | GLIBC_EXTRA_OECONF = "--with-tls" | 28 | GLIBC_EXTRA_OECONF = "--with-tls" |
28 | 29 | ||