Bug 906

Summary: xserver-nodm-init.bb should be arch specific
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ke Yu <ke.yu>
Component: graphicsAssignee: Ke Yu <ke.yu>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, richard.purdie
Version: 1.0   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Ke Yu 2011-03-18 01:03:16 UTC
xserver-nodm-init.bb currently is not arch specific, and has the setting:

PACKAGE_ARCH = "all"

However with the introduction of the arch specific feature rootless X (enabled/disabled by ROOTLESS_X),  xserver-nodm-init become machine specific, and above setting will cause trouble when build two machine in one build dir, e.g.

1. firstly, build atom-pc image, then xserver-nodm-init.bb will be built with rootless x enabled.
2. secondly build qemuarm image in the same build dir, then qemuarm will reuse the xserver-nodm under tmp/work/all-poky-linux/ which has rootless x enabled. and it will cause trouble for qemuarm, since qemuarm is not ready for rootless X.


To fix it, the PACKAGE_ARCH should be set to:
PACKAGE_ARCH = "${MACHINE_ARCH}"