summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-05-12 14:10:06 +0000
committerRichard Purdie <richard@openedhand.com>2008-05-12 14:10:06 +0000
commit7564d63ba59309a03df4007b17b9910c136f6a03 (patch)
tree80fad9ba82b23928fefd01b711a0d2e13c7d5752 /meta/classes/base.bbclass
parentb6fefce736d61a59ec7995fe1f47f375cf8facbf (diff)
downloadpoky-7564d63ba59309a03df4007b17b9910c136f6a03.tar.gz
base.bbclass: Add sanity check for multiple file matches to oe_libinstall from OE.dev
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4460 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 6b0e50bd6a..34f9c181c4 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -297,7 +297,16 @@ oe_libinstall() {
297 if [ -z "$dir" ]; then 297 if [ -z "$dir" ]; then
298 dir=`pwd` 298 dir=`pwd`
299 fi 299 fi
300
300 dotlai=$libname.lai 301 dotlai=$libname.lai
302
303 # Sanity check that the libname.lai is unique
304 number_of_files=`(cd $dir; find . -name "$dotlai") | wc -l`
305 if [ $number_of_files -gt 1 ]; then
306 oefatal "oe_libinstall: $dotlai is not unique in $dir"
307 fi
308
309
301 dir=$dir`(cd $dir;find . -name "$dotlai") | sed "s/^\.//;s/\/$dotlai\$//;q"` 310 dir=$dir`(cd $dir;find . -name "$dotlai") | sed "s/^\.//;s/\/$dotlai\$//;q"`
302 olddir=`pwd` 311 olddir=`pwd`
303 __runcmd cd $dir 312 __runcmd cd $dir