Bug 1072 - machine-specific xorg.confs not being picked up
Summary: machine-specific xorg.confs not being picked up
Status: RESOLVED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-configuration (show other bugs)
Version: unspecified
Hardware: x86 x86
: Medium normal
Target Milestone: 1.1 M2
Assignee: Darren Hart
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-05-14 21:11 UTC by Tom Zanussi
Modified: 2011-06-17 14:52 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Zanussi 2011-05-14 21:11:01 UTC
For at least crownbay and n450 (the only two I've looked at so far, I assume others have the same problem), the xorg.conf being installed into /etc/X11 is the default xorg.conf in meta/recipes-graphics/xorg-xserver/xserver-xf86-config rather than the one specified in the xserver-xf86-config_0.1.bbappend contained in the BSP layer.

Looking at the -DDDD output, the .bbappends are being picked up, but the xorg.conf in the BSP xserver-xf86-config/ directories isn't being installed.
Comment 1 Darren Hart 2011-05-19 13:29:06 UTC
This is likely a meta-intel issue. Assigning to me.
Comment 2 Tom Zanussi 2011-05-19 21:50:56 UTC
Looks like this may have been fixed by some recent commit - not seeing it as of poky/master 3ea694cf688f26d47149200d0dc522da51a87e58
meta-intel/master 6e35713d9f7dbbc2682811234c804a5b129d04e2
Comment 3 Tom Zanussi 2011-05-26 15:39:29 UTC
poky/master: 32a4e746273c3c7d3dd0f13b745bc0679cadaa44
meta-intel/master: 90ace178d3fb5d253cdba396bce66dd2fce2ed79

machine sugarbay

After bitbake xserver-xf86-config -c unpack -f:

build/tmp/work/sugarbay-poky-linux/xserver-xf86-config-0.1-r9/xorg.conf:

Section "Device"
    Identifier    "Intel Graphics Driver"
    Driver        "intel"
EndSection

Section "Monitor"
    Identifier    "Generic Monitor"
    Option        "DPMS"
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "Intel Graphics Driver"
    Monitor        "Generic Monitor"
    DefaultDepth    24
EndSection

Section "ServerLayout"
    Identifier    "Default Layout"
    Screen        "Default Screen"
EndSection

Section "ServerFlags"
    Option        "DontZap"  "0"
EndSection

What should have been picked up:

meta-intel/meta-sugarbay/recipes-graphics/xorg-xserver/xserver-xf86-config/sugarbay:

Section "Device"
    Identifier  "Intel Graphics Driver"
    Driver      "intel"
EndSection

Section "Monitor"
    Identifier    "Generic Monitor"
    Option        "DPMS"
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "Intel Graphics Driver"
    Monitor       "Generic Monitor"
    DefaultDepth  24
EndSection

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Default Screen"
EndSection

Section "ServerFlags"
    Option        "DontZap"  "0"
    Option        "AutoAddDevices"  "False"
EndSection
Comment 4 Dexuan Cui 2011-05-26 19:03:59 UTC
(In reply to comment #3)
> poky/master: 32a4e746273c3c7d3dd0f13b745bc0679cadaa44
> meta-intel/master: 90ace178d3fb5d253cdba396bce66dd2fce2ed79
> machine sugarbay
> After bitbake xserver-xf86-config -c unpack -f:
> build/tmp/work/sugarbay-poky-linux/xserver-xf86-config-0.1-r9/xorg.conf:
> Section "Device"
>     Identifier    "Intel Graphics Driver"
>     Driver        "intel"
> EndSection
> Section "Monitor"
>     Identifier    "Generic Monitor"
>     Option        "DPMS"
> EndSection
> Section "Screen"
>     Identifier    "Default Screen"
>     Device        "Intel Graphics Driver"
>     Monitor        "Generic Monitor"
>     DefaultDepth    24
> EndSection
> Section "ServerLayout"
>     Identifier    "Default Layout"
>     Screen        "Default Screen"
> EndSection
> Section "ServerFlags"
>     Option        "DontZap"  "0"
> EndSection
> What should have been picked up:
> meta-intel/meta-sugarbay/recipes-graphics/xorg-xserver/xserver-xf86-config/sugarbay:
> Section "Device"
>     Identifier  "Intel Graphics Driver"
>     Driver      "intel"
> EndSection
> Section "Monitor"
>     Identifier    "Generic Monitor"
>     Option        "DPMS"
> EndSection
> Section "Screen"
>     Identifier    "Default Screen"
>     Device        "Intel Graphics Driver"
>     Monitor       "Generic Monitor"
>     DefaultDepth  24
> EndSection
> Section "ServerLayout"
>     Identifier     "Default Layout"
>     Screen         "Default Screen"
> EndSection
> Section "ServerFlags"
>     Option        "DontZap"  "0"
>     Option        "AutoAddDevices"  "False"
> EndSection

hmmm, I still can not reproduce the issue. In my sugar case, tmp/work/sugarbay-poky-linux/xserver-xf86-config-0.1-r9/xorg.conf is the same as meta-intel/meta-sugarbay/recipes-graphics/xorg-xserver/xserver-xf86-config/sugarbay/xorg.conf.

My environment:
poky/master: 32a4e746273c3c7d3dd0f13b745bc0679cadaa44
meta-intel/master: 90ace178d3fb5d253cdba396bce66dd2fce2ed79

In my conf/local.conf, I have
MACHINE ??= "sugarbay"

In my conf/bblayers.conf, I have
BBLAYERS = " \
  /osel/dcui/0527/p1/meta \
  /osel/dcui/0527/p1/meta-yocto \
  /osel/dcui/0527/p1/meta-intel/meta-sugarbay \
  "

After bitbake xserver-xf86-config -c unpack -f,

find ../meta* -name "xorg.conf" -exec md5sum {} \; > md5
echo --- >> md5; find tmp/work/  -name "xorg.conf" -exec md5sum {} \; >> md5


By checking the md5 file, I'm sure the proper xorg.conf is installed.

Not sure what caused the wrong file installed in your side.
BTW: I'm doing the test in a clean repo by "git clone".
Comment 5 Darren Hart 2011-06-17 14:52:17 UTC
This has been resolved upstream with the set -> list change in the Cooker from Richard and the layer priority fixes From Paul E.