summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-01-17 21:51:05 +0000
committerRichard Purdie <richard@openedhand.com>2008-01-17 21:51:05 +0000
commit822779e598470273cc774f811020d6ac791b84d6 (patch)
tree0b4326cb653bc499b50d225a4d9c51a7c4b3db22 /meta/classes
parent85d94a13329dc7800620cc1276a80d838142dc7c (diff)
downloadopenembedded-core-822779e598470273cc774f811020d6ac791b84d6.tar.gz
openembedded-core-822779e598470273cc774f811020d6ac791b84d6.tar.bz2
openembedded-core-822779e598470273cc774f811020d6ac791b84d6.zip
package.bbclass: Fix shlibs and pkgconfig magic to use HOST_SYS, not TARGET_SYS
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3511 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package.bbclass22
1 files changed, 10 insertions, 12 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 7a8ebf4716..8e5d9b425f 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -548,15 +548,14 @@ python package_do_shlibs() {
bb.error("PV not defined")
return
- target_sys = bb.data.getVar('TARGET_SYS', d, 1)
- if not target_sys:
- bb.error("TARGET_SYS not defined")
+ host_sys = bb.data.getVar('HOST_SYS', d, 1)
+ if not host_sys:
+ bb.error("HOST_SYS not defined")
return
pkgdest = bb.data.getVar('PKGDEST', d, 1)
- shlibs_dir = os.path.join(staging, target_sys, "shlibs")
- old_shlibs_dir = os.path.join(staging, "shlibs")
+ shlibs_dir = os.path.join(staging, host_sys, "shlibs")
bb.mkdirhier(shlibs_dir)
needed = {}
@@ -613,7 +612,7 @@ python package_do_shlibs() {
shlib_provider = {}
list_re = re.compile('^(.*)\.list$')
- for dir in [old_shlibs_dir, shlibs_dir]:
+ for dir in [shlibs_dir]:
if not os.path.exists(dir):
continue
for file in os.listdir(dir):
@@ -678,15 +677,14 @@ python package_do_pkgconfig () {
bb.error("STAGING_DIR not defined")
return
- target_sys = bb.data.getVar('TARGET_SYS', d, 1)
- if not target_sys:
- bb.error("TARGET_SYS not defined")
+ host_sys = bb.data.getVar('HOST_SYS', d, 1)
+ if not host_sys:
+ bb.error("HOST_SYS not defined")
return
pkgdest = bb.data.getVar('PKGDEST', d, 1)
- shlibs_dir = os.path.join(staging, target_sys, "shlibs")
- old_shlibs_dir = os.path.join(staging, "shlibs")
+ shlibs_dir = os.path.join(staging, host_sys, "shlibs")
bb.mkdirhier(shlibs_dir)
pc_re = re.compile('(.*)\.pc$')
@@ -736,7 +734,7 @@ python package_do_pkgconfig () {
f.write('%s\n' % p)
f.close()
- for dir in [old_shlibs_dir, shlibs_dir]:
+ for dir in [shlibs_dir]:
if not os.path.exists(dir):
continue
for file in os.listdir(dir):