package/skeleton: also handle merged /usr in the staging
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 26 Nov 2015 22:13:41 +0000 (23:13 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 28 Nov 2015 22:08:33 +0000 (23:08 +0100)
commitcb34ea5d6ad5a26d43994f18825366983ab69f47
tree8d38fc42cba83075626bdd3d88068f902bfd1503
parentd60d6ac0370ba10bf3dd5e237b63f26d22c1aac2
package/skeleton: also handle merged /usr in the staging

When the target uses a merged /usr setup, gdbserver will only report
paths in /lib to the remote gdb, which in turn will only look for
libraries in staging/lib and never in staging/usr/lib.

So. the merged (or non-merged) /usr setup must be replicated in the
staging.

The best solution where to do so is in the skeleton package, since it
is guaranteed to come before any package that installs things in the
staging, and even before the (internal or external) toolchain as well.

Reported-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Makefile
package/skeleton/skeleton.mk