toolchain-external: factorize regular expressions
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 6 Nov 2013 23:08:03 +0000 (00:08 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 10 Nov 2013 23:26:53 +0000 (00:26 +0100)
commit646bd86908f7f995cdc2b95e0be381d97600f905
tree6455337bcb37aebd09150efc9f19cd8d0324e915
parentb07c2affc9d15ca9083615930dbbea0ec80166ed
toolchain-external: factorize regular expressions

Based on a suggestion from Peter, this commit factorizes the logic and
regular expressions that are used to find the sysroot and libdir for a
given compiler. It reduces a bit the duplication of code, and
centralizes the most bizarre part of this logic in one place.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
toolchain/toolchain-external/toolchain-external.mk