toolchain-external: improve lib subdirectory matching
authorBai Yingjie <byj.tea@gmail.com>
Wed, 18 Feb 2015 11:36:14 +0000 (12:36 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 13 Jul 2015 15:26:22 +0000 (17:26 +0200)
commitbacf2157193c1565f37c260685a03426a1be5656
treeb72d1c3649dde52f085340f8bc574145ab2e7ddf
parentfd13247a22884880fd759796dfdfad728590d5d4
toolchain-external: improve lib subdirectory matching

The toolchain from the Cavium Networks Octeon SDK provides a sysroot
with library directories lib32, lib32-fp, lib64 and lib64-fp. The -fp
variants are used for processors with hardware floating point unit, such
as the Octeon III variants.

When specifying -march=octeon3 in BR2_TARGET_OPTIMIZATION, the toolchain
will use lib32-fp, but currently Buildroot does not accept that pattern.

This patch improves the matching by accepting lib(32|64)?([^/]*)? as lib
directory name.

Signed-off-by: Bai Yingjie <byj.tea@gmail.com>
[ThomasDS: update commit message]
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
[Thomas: add comment above the function being modified to illustrate
the various cases we try to handle.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
toolchain/toolchain-external/toolchain-external.mk