From d8e187e4531dab0da233b7c4da4b496c19f1ec1e Mon Sep 17 00:00:00 2001 From: Graeme Gregory Date: Fri, 9 May 2008 15:08:54 +0000 Subject: base.bbclass : add check from zecke/OM mtn that errors if libname.lai is not unique. Acked by RP --- classes/base.bbclass | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/classes/base.bbclass b/classes/base.bbclass index b653bec83f..64a179f182 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -287,7 +287,16 @@ oe_libinstall() { if [ -z "$dir" ]; then dir=`pwd` fi + dotlai=$libname.lai + + # Sanity check that the libname.lai is unique + number_of_files=`(cd $dir; find . -name "$dotlai") | wc -l` + if [ $number_of_files -gt 1 ]; then + oefatal "oe_libinstall: $dotlai is not unique in $dir" + fi + + dir=$dir`(cd $dir;find . -name "$dotlai") | sed "s/^\.//;s/\/$dotlai\$//;q"` olddir=`pwd` __runcmd cd $dir -- cgit v1.2.3