summaryrefslogtreecommitdiffstats
path: root/openembedded/classes/base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-05-09 16:10:46 +0000
committerRichard Purdie <richard@openedhand.com>2006-05-09 16:10:46 +0000
commit189b9a916b845c90db5e51f62496a13f60936d36 (patch)
treee9227d9f63eea070317afffd41cbcdfed018753f /openembedded/classes/base.bbclass
parent8d41bd1c8f4c36ed9c1c73e0586031af8a0f292c (diff)
downloadpoky-189b9a916b845c90db5e51f62496a13f60936d36.tar.gz
Sync bbclass files with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@374 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes/base.bbclass')
-rw-r--r--openembedded/classes/base.bbclass13
1 files changed, 10 insertions, 3 deletions
diff --git a/openembedded/classes/base.bbclass b/openembedded/classes/base.bbclass
index 21feaab6e6..1728b65709 100644
--- a/openembedded/classes/base.bbclass
+++ b/openembedded/classes/base.bbclass
@@ -27,7 +27,7 @@ def base_read_file(filename):
27 try: 27 try:
28 f = file( filename, "r" ) 28 f = file( filename, "r" )
29 except IOError, reason: 29 except IOError, reason:
30 raise bb.build.FuncFailed("can't read from file '%s' (%s)", (filename,reason)) 30 return "" # WARNING: can't raise an error now because of the new RDEPENDS handling. This is a bit ugly. :M:
31 else: 31 else:
32 return f.read().strip() 32 return f.read().strip()
33 return None 33 return None
@@ -196,7 +196,7 @@ oe_libinstall() {
196 # stop libtool using the final directory name for libraries 196 # stop libtool using the final directory name for libraries
197 # in staging: 197 # in staging:
198 __runcmd rm -f $destpath/$libname.la 198 __runcmd rm -f $destpath/$libname.la
199 __runcmd sed -e 's/^installed=yes$/installed=no/' $dotlai >$destpath/$libname.la 199 __runcmd sed -e 's/^installed=yes$/installed=no/' -e '/^dependency_libs=/s,${WORKDIR}[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),${STAGING_LIBDIR}/\1,' $dotlai >$destpath/$libname.la
200 else 200 else
201 __runcmd install -m 0644 $dotlai $destpath/$libname.la 201 __runcmd install -m 0644 $dotlai $destpath/$libname.la
202 fi 202 fi
@@ -723,7 +723,14 @@ python __anonymous () {
723 this_host = bb.data.getVar('HOST_SYS', d, 1) 723 this_host = bb.data.getVar('HOST_SYS', d, 1)
724 if not re.match(need_host, this_host): 724 if not re.match(need_host, this_host):
725 raise bb.parse.SkipPackage("incompatible with host %s" % this_host) 725 raise bb.parse.SkipPackage("incompatible with host %s" % this_host)
726 726
727 need_machine = bb.data.getVar('COMPATIBLE_MACHINE', d, 1)
728 if need_machine:
729 import re
730 this_machine = bb.data.getVar('MACHINE', d, 1)
731 if not re.match(need_machine, this_machine):
732 raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine)
733
727 pn = bb.data.getVar('PN', d, 1) 734 pn = bb.data.getVar('PN', d, 1)
728 735
729 srcdate = bb.data.getVar('SRCDATE_%s' % pn, d, 1) 736 srcdate = bb.data.getVar('SRCDATE_%s' % pn, d, 1)