toolchain: allow side by side sysroot directories
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Tue, 12 Jan 2016 17:49:38 +0000 (17:49 +0000)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 19 Jan 2016 22:06:58 +0000 (23:06 +0100)
commit9a1e9efe2618ebbf12ed2567bcd6e8cca5619547
tree251be23fe65e607732a55bc738f1619a672eeaba
parentcc9304aa7220d9b3657572940b1e61504f920e24
toolchain: allow side by side sysroot directories

Currently our toolchain infrastructure assumes that every toolchain has
nested sysroot directories. However that's not true for all of them. The
Codescape toolchains from Imagination Technologies use a side by side
sysroot structure, for instance.

This patch allows our toolchain infrastructure to detect what kind of
sysroot structure we have (nested or side by side) and performs the
appropriate actions.

[Thomas: update the comment above the function, to explain what's
going on with nested sysroots and side-by-side sysroots.]

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
toolchain/helpers.mk