utils.bbclass: Fix override ordering for FILESPATH
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Oct 2013 11:20:07 +0000 (11:20 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Oct 2013 15:55:22 +0000 (16:55 +0100)
commitd654c672002377defdf354420820904add6b9441
treef5f340e545985257bfaf363b56eb040d04b07ff5
parentc4b6e5a6c4b8af1941d4f362db12f8c7c51cbebd
utils.bbclass: Fix override ordering for FILESPATH

Currently the overrides are being applied backwards. This means something which is
platform specific is overriding something which is machine specific which
is clearly not intended.

This patch corrects the ordering to match the normal expected behaviour of
OVERRIDES.

Secondly, all overrides are being searched for each path in turn. What should
really happen is that we should look for the highest priority override (e.g. distro
or machine) in each layer, then move on to platform/tune (e.g. armv7a) and
then to arch (e.g. arm). This patch therefore also reverses the for loops
to achieve this behaviour and give the result the user would expect.

(From OE-Core rev: 92cbf7eeea553bfa24c7081473fa8bc4ebc1f552)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/utils.bbclass