Skip to contentSkip to conversation

layer.conf: set high layer priority

PATCH In review Petter Mabäcker 4 participants 12 messages Feb 20, 2015 – Mar 11, 2015

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 layer.conf: set high layer priority

In reply to Petter Mabäcker

Set a high layer prio to ensure that meta-raspberrypi addons are always prioritized above the depended layers.

---
 conf/layer.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
conf/layer.conf +1 -1
index 7bffd4b..bea5a65 100644
@@ -7,7 +7,7 @@ BBFILES += "${LAYERDIR}/recipes*/*/*.bb \
 
 BBFILE_COLLECTIONS += "raspberrypi"
 BBFILE_PATTERN_raspberrypi := "^${LAYERDIR}/"
-BBFILE_PRIORITY_raspberrypi = "6"
+BBFILE_PRIORITY_raspberrypi = "9"
 
 # Additional license directories.
 LICENSE_PATH += "${LAYERDIR}/files/custom-licenses"
Signature · 1 line
1.9.1
#0 lore raw

cover layer.conf: set high layer priority

The following changes since commit d8bf60ce6c4a6c6371527c6df2e3243d2771c0cc:

README: Github repo changed (2015-02-14 02:00:57 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib petmab/rpi_layer_prio
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=petmab/rpi_layer_prio

Petter Mabäcker (1):
layer.conf: set high layer priority

 conf/layer.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.9.1
#2 lore raw

Hello,

Quoted 6 lines · Petter Mabäcker

The following changes since commit d8bf60ce6c4a6c6371527c6df2e3243d2771c0cc:

README: Github repo changed (2015-02-14 02:00:57 +0100)

are available in the git repository at:

Quoted 8 lines

git://git.yoctoproject.org/poky-contrib petmab/rpi_layer_prio
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=petmab/rpi_layer_prio

Petter Mabäcker (1):
layer.conf: set high layer priority

 conf/layer.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch merged to master. Thanks Petter.

--
Andrei Gherzan

#3 lore raw
Quoted 15 lines · Andrei Gherzan

Hello,

Quoted 12 lines · Petter Mabäcker

The following changes since commit d8bf60ce6c4a6c6371527c6df2e3243d2771c0cc:

README: Github repo changed (2015-02-14 02:00:57 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib petmab/rpi_layer_prio
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=petmab/rpi_layer_prio

Petter Mabäcker (1):
layer.conf: set high layer priority

Quoted 8 lines
Quoted 2 lines
 conf/layer.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch merged to master. Thanks Petter.

--
Andrei Gherzan
--

This one breaks xserver-xf86-config for me

| Function failed: Fetcher failure for URL:
'file://xorg.conf.d/10-evdev.conf'. Unable to fetch URL from any source.

Andreas

#4 lore raw

Hi Andreas,

On Mon, Mar 9, 2015 at 9:50 PM, Andreas Müller <[email protected]

Quoted 29 lines

wrote:

Quoted 4 lines · Andrei Gherzan

Hello,

Quoted 1 line · Petter Mabäcker

The following changes since commit

d8bf60ce6c4a6c6371527c6df2e3243d2771c0cc:

Quoted 7 lines
Quoted 7 lines

README: Github repo changed (2015-02-14 02:00:57 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib petmab/rpi_layer_prio

http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=petmab/rpi_layer_prio

Quoted 4 lines
Quoted 4 lines

Petter Mabäcker (1):
layer.conf: set high layer priority

Quoted 8 lines
Quoted 2 lines
 conf/layer.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch merged to master. Thanks Petter.

--
Andrei Gherzan
--

Quoted 8 lines

This one breaks xserver-xf86-config for me

| Function failed: Fetcher failure for URL:
'file://xorg.conf.d/10-evdev.conf'. Unable to fetch URL from any source.

Andreas

There is an issue with that conf file. This was introduced by the rpi2 support patches. Could you please fill in a redmine issue? Or maybe shoot us a patch? J

Thanks!

Signature · 1 line
*Andrei Gherzan*
#5 lore raw
In reply to Andreas Müller
Quoted 25 lines · Andreas Müller
Quoted 15 lines · Andrei Gherzan

Hello,

Quoted 12 lines · Petter Mabäcker

The following changes since commit d8bf60ce6c4a6c6371527c6df2e3243d2771c0cc:

   README: Github repo changed (2015-02-14 02:00:57 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib petmab/rpi_layer_prio
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=petmab/rpi_layer_prio

Petter Mabäcker (1):
layer.conf: set high layer priority

Quoted 8 lines
Quoted 2 lines
  conf/layer.conf | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Patch merged to master. Thanks Petter.

--
Andrei Gherzan
--

Quoted 5 lines

This one breaks xserver-xf86-config for me

| Function failed: Fetcher failure for URL:
'file://xorg.conf.d/10-evdev.conf'. Unable to fetch URL from any source.

Are you trying to build for the RaspberryPi2?

I [temporarily] fixed this by copying the missing files. In
the meta-raspberrypi layer, do
% rsync -a recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi{/,2}

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#6 lore raw
Quoted 40 lines · Gary Thomas
Quoted 32 lines · Andreas Müller
Quoted 23 lines · Andrei Gherzan

Hello,

Quoted 10 lines · Petter Mabäcker

The following changes since commit
d8bf60ce6c4a6c6371527c6df2e3243d2771c0cc:

   README: Github repo changed (2015-02-14 02:00:57 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib petmab/rpi_layer_prio

Quoted 7 lines

http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=petmab/rpi_layer_prio

Petter Mabäcker (1):
layer.conf: set high layer priority

  conf/layer.conf | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 5 lines

Patch merged to master. Thanks Petter.

--
Andrei Gherzan
--

Quoted 5 lines

This one breaks xserver-xf86-config for me

| Function failed: Fetcher failure for URL:
'file://xorg.conf.d/10-evdev.conf'. Unable to fetch URL from any source.

Quoted 6 lines

Are you trying to build for the RaspberryPi2?

I [temporarily] fixed this by copying the missing files. In the meta-raspberrypi layer, do
% rsync -a
recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi{/,2}

ctoproject.org/listinfo/yocto

I checked both (I have simply copied xserver-xf86-config files for rpi2). Increasing Layer priority above 7 fails for me - have no idea why. What should this patch solve/enhance?

Andreas

#7 lore raw
Quoted 47 lines · Andreas Müller
Quoted 40 lines · Gary Thomas
Quoted 32 lines · Andreas Müller
Quoted 23 lines · Andrei Gherzan

Hello,

Quoted 10 lines · Petter Mabäcker

The following changes since commit
d8bf60ce6c4a6c6371527c6df2e3243d2771c0cc:

    README: Github repo changed (2015-02-14 02:00:57 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib petmab/rpi_layer_prio

Quoted 7 lines

http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=petmab/rpi_layer_prio

Petter Mabäcker (1):
layer.conf: set high layer priority

   conf/layer.conf | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 5 lines

Patch merged to master. Thanks Petter.

--
Andrei Gherzan
--

Quoted 5 lines

This one breaks xserver-xf86-config for me

| Function failed: Fetcher failure for URL:
'file://xorg.conf.d/10-evdev.conf'. Unable to fetch URL from any source.

Quoted 6 lines

Are you trying to build for the RaspberryPi2?

I [temporarily] fixed this by copying the missing files. In the meta-raspberrypi layer, do
% rsync -a
recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi{/,2}

Quoted 6 lines

ctoproject.org/listinfo/yocto

I checked both (I have simply copied xserver-xf86-config files for rpi2). Increasing Layer priority above 7 fails for me - have no idea why. What should this patch solve/enhance?

That command will let bitbake find the missing file:
recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi2/ recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi2/xorg.conf.d recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi2/xorg.conf.d/10-evdev.conf recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi2/xorg.conf

With this I was able to build for the rpi2. Too bad Newark hasn't delivered mine yet (although it was promised 10 days ago...)

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#8 lore raw
Quoted 71 lines · Gary Thomas
Quoted 58 lines · Andreas Müller
Quoted 49 lines · Gary Thomas
Quoted 39 lines · Andreas Müller
Quoted 27 lines · Andrei Gherzan

Hello,

Quoted 12 lines · Petter Mabäcker

The following changes since commit
d8bf60ce6c4a6c6371527c6df2e3243d2771c0cc:

    README: Github repo changed (2015-02-14 02:00:57 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib petmab/rpi_layer_prio

Quoted 7 lines

http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=petmab/rpi_layer_prio

Petter Mabäcker (1):
layer.conf: set high layer priority

   conf/layer.conf | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 5 lines

Patch merged to master. Thanks Petter.

--
Andrei Gherzan
--

Quoted 5 lines

This one breaks xserver-xf86-config for me

| Function failed: Fetcher failure for URL:
'file://xorg.conf.d/10-evdev.conf'. Unable to fetch URL from any source.

Quoted 6 lines

Are you trying to build for the RaspberryPi2?

I [temporarily] fixed this by copying the missing files. In the meta-raspberrypi layer, do
% rsync -a
recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi{/,2}

Quoted 6 lines

ctoproject.org/listinfo/yocto

I checked both (I have simply copied xserver-xf86-config files for rpi2). Increasing Layer priority above 7 fails for me - have no idea why. What should this patch solve/enhance?

That command will let bitbake find the missing file:
recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi2/ recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi2/xorg.conf.d

Quoted 6 lines

recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi2/xorg.conf.d/10-evdev.conf
recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi2/xorg.conf

With this I was able to build for the rpi2. Too bad Newark hasn't delivered mine yet (although it was promised 10 days ago...)

To avoid misunderstandings: The problem came up (for me) by increasing layer priority and affects raspberrypi (I know files are missing for raspberrypi2)

Andreas

#9 lore raw

I have created a new ticket for the raspberrypi2 problem:
http://redmine.gherzan.com/issues/52

For the raspberrypi problem I
cannot reproduce this problem. For me it looks good using below revisions for poky and meta-raspberrypi:

meta-raspberrypi: 57c8e6b
rpi-base.inc: Include the RPI2 DTB

poky: 0aff275 layer.conf: bump
version as error-report interface changed

Andreas: Can you please
specify revisions you are using for poky and meta-raspberrypi? Would be great if you also can mail me log.do_fetch and log.do_patch (if such exists I understand it as it bails at do_fetch form your mail..) found in:

<yourproject>/tmp/work/raspberrypi-poky-linux-gnueabi/xserver-xf86-config/0.1-*/temp/ as well..

BR, Petter

2015-03-09 22:24 skrev Andreas Müller:

Quoted 1 line

On

Quoted 5 lines · Gary Thomas
Quoted 5 lines · Andreas Müller
Quoted 2 lines

On Mon, Mar 9,

Quoted 2 lines · Gary Thomas
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

On

Quoted 2 lines · Andreas Müller
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

On Sun, Mar 1, 2015

Quoted 2 lines · Andrei Gherzan
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines · Petter Mabäcker
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

The following changes since commit

d8bf60ce6c4a6c6371527c6df2e3243d2771c0cc: README: Github repo changed (2015-02-14 02:00:57 +0100) are available in the git repository at:
git://git.yoctoproject.org/poky-contrib petmab/rpi_layer_prio
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=petmab/rpi_layer_prio
[1] Petter Mabäcker (1): layer.conf: set high layer priority conf/layer.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Patch merged to master. Thanks Petter. -- Andrei

Gherzan --

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

This one breaks xserver-xf86-config for me | Function

failed: Fetcher failure for URL: 'file://xorg.conf.d/10-evdev.conf [2]'. Unable to fetch URL from any source.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Are you trying to build for

the RaspberryPi2? I [temporarily] fixed this by copying the missing files. In the meta-raspberrypi layer, do % rsync -a recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi{/,2}

Quoted 1 line
Quoted 1 line
Quoted 1 line

ctoproject.org/listinfo/yocto I checked both (I have simply copied xserver-xf86-config files for rpi2). Increasing Layer priority above 7 fails for me - have no idea why. What should this patch solve/enhance?

Quoted 1 line
Quoted 1 line

That command will let bitbake find the missing file:

recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi2/ recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi2/xorg.conf.d recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi2/xorg.conf.d/10-evdev.conf recipes-graphics/xorg-xserver/xserver-xf86-config/raspberrypi2/xorg.conf With this I was able to build for the rpi2. Too bad Newark hasn't delivered mine yet (although it was promised 10 days ago...)

Quoted 2 lines

To

avoid misunderstandings: The problem came up (for me) by increasing

Quoted 1 line

layer priority and affects raspberrypi (I know files are missing for

Quoted 1 line

raspberrypi2)

Quoted 2 lines

Andreas

Links:
------
[1]
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=petmab/rpi_layer_prio
[2]
file://xorg.conf.d/10-evdev.conf

#10 lore raw
Quoted 8 lines · Petter Mabäcker

I have created a new ticket for the raspberrypi2 problem:
http://redmine.gherzan.com/issues/52

For the raspberrypi problem I cannot reproduce this problem. For me it looks good using below revisions for poky and meta-raspberrypi:

meta-raspberrypi: 57c8e6b rpi-base.inc: Include the RPI2 DTB

Quoted 8 lines

poky: 0aff275 layer.conf: bump version as error-report interface changed

Andreas: Can you please specify revisions you are using for poky and meta-raspberrypi? Would be great if you also can mail me log.do_fetch and log.do_patch (if such exists I understand it as it bails at do_fetch form your mail..) found in:

Don't have logs here but 10-evdev.conf was not found. I checked: By increasing layer priority the fitting path to meta-raspberrypi was missing.

I am using angstrom/oe-core/meta-oe++/meta-qt5 and several bsp layers
(e.g meta-ti/meta-gumstix-community/meta-fsl-arm/meta-raspberrypi/meta-beagleboard-common..)
- can give further details later (have them at home).

What I don't understand so far: Why is this patch necessary and what was intended to fix?

Andreas

#11 lore raw

2015-03-11 10:39 skrev Andreas Müller:

Quoted 1 line

On Wed, Mar 11, 2015 at

Quoted 2 lines · Petter Mabäcker
Quoted 2 lines

I have created

a new ticket for the raspberrypi2 problem:
http://redmine.gherzan.com/issues/52 [1] For the raspberrypi problem I cannot reproduce this problem. For me it looks good using below revisions for poky and meta-raspberrypi: meta-raspberrypi: 57c8e6b rpi-base.inc: Include the RPI2 DTB poky: 0aff275 layer.conf: bump version as error-report interface changed Andreas: Can you please specify revisions you are using for poky and meta-raspberrypi? Would be great if you also can mail me log.do_fetch and log.do_patch (if such exists I understand it as it bails at do_fetch form your mail..) found in:

Quoted 2 lines

Don't have logs here but 10-evdev.conf was not found. I

checked: By

Quoted 1 line

increasing layer priority the fitting path to

meta-raspberrypi was

Quoted 3 lines

missing.

I am using

angstrom/oe-core/meta-oe++/meta-qt5 and several bsp layers

Quoted 1 line

(e.g

meta-ti/meta-gumstix-community/meta-fsl-arm/meta-raspberrypi/meta-beagleboard-common..)

Quoted 1 line

- can give further details later (have them at home).

Quoted 2 lines

What I don't

understand so far: Why is this patch necessary and what

Quoted 1 line

was intended

to fix?

Quoted 2 lines

Andreas

Ok, interesting. That explains why I cannot
reproduce the problem. The reason for the changeset is to ensure that we have a higher prio in meta-raspberrypi then in all its depended layers (currently meta-oe and meta-multimedia) since we always want to override with meta-raspberrypi specific stuffs in this case. So it doesn't solve a specific problem, but it prevent us for getting problems like the one you obviously has seen in your configuration due to this change.

It
might (at least currently) be OK to set layer prio = 7 in meta-raspberrypi, 9 was just to have some marginal. But it's not sure that "7" is enough without any modifications in some of the layers you are using. Can you give me the output of below command from your project (it will help me to understand where the problem really lies)?

$
bitbake-layers show-layers

Cheers, Petter

Links:
------
[1]
http://redmine.gherzan.com/issues/52