summaryrefslogtreecommitdiff
path: root/classes/base.bbclass
diff options
context:
space:
mode:
authorGraeme Gregory <dp@xora.org.uk>2008-05-09 15:08:54 +0000
committerGraeme Gregory <dp@xora.org.uk>2008-05-09 15:08:54 +0000
commitd8e187e4531dab0da233b7c4da4b496c19f1ec1e (patch)
tree821c9b74486aa78ac9cbda76d76ac230d82e01c1 /classes/base.bbclass
parentf4c8397ba2babf4be0757c6f77e4b67aac33dc61 (diff)
base.bbclass : add check from zecke/OM mtn that errors if libname.lai is not
unique. Acked by RP
Diffstat (limited to 'classes/base.bbclass')
-rw-r--r--classes/base.bbclass9
1 files changed, 9 insertions, 0 deletions
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