diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-09-16 23:09:44 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-09-17 22:24:36 +0100 |
commit | af85ce4b4e675feb5796f87137c86d70c2f15b9a (patch) | |
tree | f19dbb9bcf1eec671b26685458f7cc47ebb3721e /meta/classes | |
parent | 046ae6a38d829048663fe1afb1f67de1fbe2e3b5 (diff) | |
download | poky-af85ce4b4e675feb5796f87137c86d70c2f15b9a.tar.gz |
Remove layout_* variables
Remove layout_* variables and replace them with variables specific to the
different classes. The layout variables were only useful for the native/cross
classes and caused more confusion than they solved. They didn't scale to the
sdk class. It now clear a small set of native/cross variables fulfil the needs.
This patch also changes native.bbclass to use "/" as the STAGING_DIR which makes
sense since we're installing binaries into the locations we're compiling them for.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/autotools.bbclass | 12 | ||||
-rw-r--r-- | meta/classes/base.bbclass | 4 | ||||
-rw-r--r-- | meta/classes/binconfig.bbclass | 8 | ||||
-rw-r--r-- | meta/classes/cross.bbclass | 25 | ||||
-rw-r--r-- | meta/classes/distutils.bbclass | 8 | ||||
-rw-r--r-- | meta/classes/native.bbclass | 35 | ||||
-rw-r--r-- | meta/classes/packaged-staging.bbclass | 16 | ||||
-rw-r--r-- | meta/classes/sdk.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/xlibs.bbclass | 4 |
9 files changed, 37 insertions, 77 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index d7fc37566c..8aa035191e 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass | |||
@@ -206,11 +206,11 @@ autotools_stage_all() { | |||
206 | oe_runmake DESTDIR="${STAGE_TEMP}" install | 206 | oe_runmake DESTDIR="${STAGE_TEMP}" install |
207 | autotools_stage_dir ${STAGE_TEMP}/${includedir} ${STAGING_INCDIR} | 207 | autotools_stage_dir ${STAGE_TEMP}/${includedir} ${STAGING_INCDIR} |
208 | if [ "${BUILD_SYS}" = "${HOST_SYS}" ]; then | 208 | if [ "${BUILD_SYS}" = "${HOST_SYS}" ]; then |
209 | autotools_stage_dir ${STAGE_TEMP}/${bindir} ${STAGING_DIR_HOST}${layout_bindir} | 209 | autotools_stage_dir ${STAGE_TEMP}/${bindir} ${STAGING_DIR_HOST}${bindir} |
210 | autotools_stage_dir ${STAGE_TEMP}/${sbindir} ${STAGING_DIR_HOST}${layout_sbindir} | 210 | autotools_stage_dir ${STAGE_TEMP}/${sbindir} ${STAGING_DIR_HOST}${sbindir} |
211 | autotools_stage_dir ${STAGE_TEMP}/${base_bindir} ${STAGING_DIR_HOST}${layout_base_bindir} | 211 | autotools_stage_dir ${STAGE_TEMP}/${base_bindir} ${STAGING_DIR_HOST}${base_bindir} |
212 | autotools_stage_dir ${STAGE_TEMP}/${base_sbindir} ${STAGING_DIR_HOST}${layout_base_sbindir} | 212 | autotools_stage_dir ${STAGE_TEMP}/${base_sbindir} ${STAGING_DIR_HOST}${base_sbindir} |
213 | autotools_stage_dir ${STAGE_TEMP}/${libexecdir} ${STAGING_DIR_HOST}${layout_libexecdir} | 213 | autotools_stage_dir ${STAGE_TEMP}/${libexecdir} ${STAGING_DIR_HOST}${libexecdir} |
214 | fi | 214 | fi |
215 | if [ -d ${STAGE_TEMP}/${libdir} ] | 215 | if [ -d ${STAGE_TEMP}/${libdir} ] |
216 | then | 216 | then |
@@ -218,7 +218,7 @@ autotools_stage_all() { | |||
218 | fi | 218 | fi |
219 | if [ -d ${STAGE_TEMP}/${base_libdir} ] | 219 | if [ -d ${STAGE_TEMP}/${base_libdir} ] |
220 | then | 220 | then |
221 | autotools_stage_libdir ${STAGE_TEMP}/${base_libdir} ${STAGING_DIR_HOST}${layout_base_libdir} | 221 | autotools_stage_libdir ${STAGE_TEMP}/${base_libdir} ${STAGING_DIR_HOST}${base_libdir} |
222 | fi | 222 | fi |
223 | rm -rf ${STAGE_TEMP}/${mandir} || true | 223 | rm -rf ${STAGE_TEMP}/${mandir} || true |
224 | rm -rf ${STAGE_TEMP}/${infodir} || true | 224 | rm -rf ${STAGE_TEMP}/${infodir} || true |
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 0733cddd98..0605c8a0e3 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -926,8 +926,8 @@ base_do_stage () { | |||
926 | : | 926 | : |
927 | } | 927 | } |
928 | 928 | ||
929 | do_populate_staging[dirs] = "${STAGING_DIR_TARGET}/${layout_bindir} ${STAGING_DIR_TARGET}/${layout_libdir} \ | 929 | do_populate_staging[dirs] = "${STAGING_DIR_TARGET}/${bindir} ${STAGING_DIR_TARGET}/${libdir} \ |
930 | ${STAGING_DIR_TARGET}/${layout_includedir} \ | 930 | ${STAGING_DIR_TARGET}/${includedir} \ |
931 | ${STAGING_BINDIR_NATIVE} ${STAGING_LIBDIR_NATIVE} \ | 931 | ${STAGING_BINDIR_NATIVE} ${STAGING_LIBDIR_NATIVE} \ |
932 | ${STAGING_INCDIR_NATIVE} \ | 932 | ${STAGING_INCDIR_NATIVE} \ |
933 | ${STAGING_DATADIR} \ | 933 | ${STAGING_DATADIR} \ |
diff --git a/meta/classes/binconfig.bbclass b/meta/classes/binconfig.bbclass index 50c66ae8d3..9ebb54887c 100644 --- a/meta/classes/binconfig.bbclass +++ b/meta/classes/binconfig.bbclass | |||
@@ -14,8 +14,8 @@ def get_binconfig_mangle(d): | |||
14 | s += " -e 's:OELIBDIR:${STAGING_LIBDIR}:;'" | 14 | s += " -e 's:OELIBDIR:${STAGING_LIBDIR}:;'" |
15 | s += " -e 's:OEINCDIR:${STAGING_INCDIR}:;'" | 15 | s += " -e 's:OEINCDIR:${STAGING_INCDIR}:;'" |
16 | s += " -e 's:OEDATADIR:${STAGING_DATADIR}:'" | 16 | s += " -e 's:OEDATADIR:${STAGING_DATADIR}:'" |
17 | s += " -e 's:OEPREFIX:${STAGING_DIR_HOST}${layout_prefix}:'" | 17 | s += " -e 's:OEPREFIX:${STAGING_DIR_HOST}${prefix}:'" |
18 | s += " -e 's:OEEXECPREFIX:${STAGING_DIR_HOST}${layout_exec_prefix}:'" | 18 | s += " -e 's:OEEXECPREFIX:${STAGING_DIR_HOST}${exec_prefix}:'" |
19 | s += " -e 's:-I${WORKDIR}:-I${STAGING_INCDIR}:'" | 19 | s += " -e 's:-I${WORKDIR}:-I${STAGING_INCDIR}:'" |
20 | s += " -e 's:-L${WORKDIR}:-L${STAGING_LIBDIR}:'" | 20 | s += " -e 's:-L${WORKDIR}:-L${STAGING_LIBDIR}:'" |
21 | return s | 21 | return s |
@@ -31,7 +31,7 @@ do_install_append() { | |||
31 | -e 's:${STAGING_LIBDIR}:${libdir}:g;' \ | 31 | -e 's:${STAGING_LIBDIR}:${libdir}:g;' \ |
32 | -e 's:${STAGING_INCDIR}:${includedir}:g;' \ | 32 | -e 's:${STAGING_INCDIR}:${includedir}:g;' \ |
33 | -e 's:${STAGING_DATADIR}:${datadir}:' \ | 33 | -e 's:${STAGING_DATADIR}:${datadir}:' \ |
34 | -e 's:${STAGING_DIR_HOST}${layout_prefix}:${prefix}:' > ${D}${bindir}/`basename $config` | 34 | -e 's:${STAGING_DIR_HOST}${prefix}:${prefix}:' > ${D}${bindir}/`basename $config` |
35 | done | 35 | done |
36 | fi | 36 | fi |
37 | 37 | ||
@@ -40,7 +40,7 @@ do_install_append() { | |||
40 | -e 's:${STAGING_LIBDIR}:${libdir}:g;' \ | 40 | -e 's:${STAGING_LIBDIR}:${libdir}:g;' \ |
41 | -e 's:${STAGING_INCDIR}:${includedir}:g;' \ | 41 | -e 's:${STAGING_INCDIR}:${includedir}:g;' \ |
42 | -e 's:${STAGING_DATADIR}:${datadir}:' \ | 42 | -e 's:${STAGING_DATADIR}:${datadir}:' \ |
43 | -e 's:${STAGING_DIR_HOST}${layout_prefix}:${prefix}:' \ | 43 | -e 's:${STAGING_DIR_HOST}${prefix}:${prefix}:' \ |
44 | $lafile | 44 | $lafile |
45 | done | 45 | done |
46 | } | 46 | } |
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass index 9dddca127a..1eaee14342 100644 --- a/meta/classes/cross.bbclass +++ b/meta/classes/cross.bbclass | |||
@@ -26,34 +26,11 @@ LDFLAGS_build-darwin = "-L${STAGING_LIBDIR_NATIVE}" | |||
26 | TOOLCHAIN_OPTIONS = "" | 26 | TOOLCHAIN_OPTIONS = "" |
27 | 27 | ||
28 | # Overrides for paths | 28 | # Overrides for paths |
29 | |||
30 | # Path prefixes | ||
31 | base_prefix = "${exec_prefix}" | ||
32 | prefix = "${CROSS_DIR}" | 29 | prefix = "${CROSS_DIR}" |
30 | base_prefix = "${prefix}" | ||
33 | exec_prefix = "${prefix}" | 31 | exec_prefix = "${prefix}" |
34 | |||
35 | # Base paths | ||
36 | base_bindir = "${base_prefix}/bin" | ||
37 | base_sbindir = "${base_prefix}/bin" | 32 | base_sbindir = "${base_prefix}/bin" |
38 | base_libdir = "${base_prefix}/lib" | ||
39 | |||
40 | # Architecture independent paths | ||
41 | datadir = "${prefix}/share" | ||
42 | sysconfdir = "${prefix}/etc" | ||
43 | sharedstatedir = "${prefix}/com" | ||
44 | localstatedir = "${prefix}/var" | ||
45 | infodir = "${datadir}/info" | ||
46 | mandir = "${datadir}/man" | ||
47 | docdir = "${datadir}/doc" | ||
48 | servicedir = "${prefix}/srv" | ||
49 | |||
50 | # Architecture dependent paths | ||
51 | bindir = "${exec_prefix}/bin" | ||
52 | sbindir = "${exec_prefix}/bin" | 33 | sbindir = "${exec_prefix}/bin" |
53 | libexecdir = "${exec_prefix}/libexec" | ||
54 | libdir = "${exec_prefix}/lib" | ||
55 | includedir = "${exec_prefix}/include" | ||
56 | oldincludedir = "${exec_prefix}/include" | ||
57 | 34 | ||
58 | do_stage () { | 35 | do_stage () { |
59 | oe_runmake install | 36 | oe_runmake install |
diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass index 2fcf0fd6cb..0b9bdfe1a9 100644 --- a/meta/classes/distutils.bbclass +++ b/meta/classes/distutils.bbclass | |||
@@ -2,7 +2,7 @@ inherit distutils-base | |||
2 | 2 | ||
3 | DISTUTILS_BUILD_ARGS ?= "" | 3 | DISTUTILS_BUILD_ARGS ?= "" |
4 | DISTUTILS_STAGE_HEADERS_ARGS ?= "--install-dir=${STAGING_INCDIR}/${PYTHON_DIR}" | 4 | DISTUTILS_STAGE_HEADERS_ARGS ?= "--install-dir=${STAGING_INCDIR}/${PYTHON_DIR}" |
5 | DISTUTILS_STAGE_ALL_ARGS ?= "--prefix=${STAGING_DIR_HOST}${layout_prefix} \ | 5 | DISTUTILS_STAGE_ALL_ARGS ?= "--prefix=${STAGING_DIR_HOST}${prefix} \ |
6 | --install-data=${STAGING_DATADIR}" | 6 | --install-data=${STAGING_DATADIR}" |
7 | DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \ | 7 | DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \ |
8 | --install-data=${D}/${datadir}" | 8 | --install-data=${D}/${datadir}" |
@@ -16,7 +16,7 @@ distutils_do_compile() { | |||
16 | } | 16 | } |
17 | 17 | ||
18 | distutils_stage_headers() { | 18 | distutils_stage_headers() { |
19 | install -d ${STAGING_DIR_HOST}${layout_libdir}/${PYTHON_DIR}/site-packages | 19 | install -d ${STAGING_DIR_HOST}${libdir}/${PYTHON_DIR}/site-packages |
20 | STAGING_INCDIR=${STAGING_INCDIR} \ | 20 | STAGING_INCDIR=${STAGING_INCDIR} \ |
21 | STAGING_LIBDIR=${STAGING_LIBDIR} \ | 21 | STAGING_LIBDIR=${STAGING_LIBDIR} \ |
22 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ | 22 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ |
@@ -25,10 +25,10 @@ distutils_stage_headers() { | |||
25 | } | 25 | } |
26 | 26 | ||
27 | distutils_stage_all() { | 27 | distutils_stage_all() { |
28 | install -d ${STAGING_DIR_HOST}${layout_prefix}/${PYTHON_DIR}/site-packages | 28 | install -d ${STAGING_DIR_HOST}${prefix}/${PYTHON_DIR}/site-packages |
29 | STAGING_INCDIR=${STAGING_INCDIR} \ | 29 | STAGING_INCDIR=${STAGING_INCDIR} \ |
30 | STAGING_LIBDIR=${STAGING_LIBDIR} \ | 30 | STAGING_LIBDIR=${STAGING_LIBDIR} \ |
31 | PYTHONPATH=${STAGING_DIR_HOST}${layout_prefix}/${PYTHON_DIR}/site-packages \ | 31 | PYTHONPATH=${STAGING_DIR_HOST}${prefix}/${PYTHON_DIR}/site-packages \ |
32 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ | 32 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ |
33 | ${STAGING_BINDIR_NATIVE}/python setup.py install ${DISTUTILS_STAGE_ALL_ARGS} || \ | 33 | ${STAGING_BINDIR_NATIVE}/python setup.py install ${DISTUTILS_STAGE_ALL_ARGS} || \ |
34 | oefatal "python setup.py install (stage) execution failed." | 34 | oefatal "python setup.py install (stage) execution failed." |
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index de6b6fff42..5da766426f 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass | |||
@@ -50,32 +50,15 @@ export RANLIB = "${HOST_PREFIX}ranlib" | |||
50 | export STRIP = "${HOST_PREFIX}strip" | 50 | export STRIP = "${HOST_PREFIX}strip" |
51 | 51 | ||
52 | # Path prefixes | 52 | # Path prefixes |
53 | export base_prefix = "${STAGING_DIR_NATIVE}" | 53 | base_prefix = "${STAGING_DIR_NATIVE}" |
54 | export prefix = "${STAGING_DIR_NATIVE}${layout_prefix}" | 54 | prefix = "${STAGING_DIR_NATIVE}/usr" |
55 | export exec_prefix = "${STAGING_DIR_NATIVE}${layout_exec_prefix}" | 55 | exec_prefix = "${STAGING_DIR_NATIVE}/usr" |
56 | 56 | ||
57 | # Base paths | 57 | # Since we actually install these into situ there is no staging prefix |
58 | export base_bindir = "${STAGING_DIR_NATIVE}${layout_base_bindir}" | 58 | STAGING_DIR_HOST = "" |
59 | export base_sbindir = "${STAGING_DIR_NATIVE}${layout_base_sbindir}" | 59 | STAGING_DIR_TARGET = "" |
60 | export base_libdir = "${STAGING_DIR_NATIVE}${layout_base_libdir}" | 60 | SHLIBSDIR = "${STAGING_DIR_NATIVE}/shlibs" |
61 | 61 | PKG_CONFIG_DIR = "${libdir}/pkgconfig" | |
62 | # Architecture independent paths | ||
63 | export datadir = "${STAGING_DIR_NATIVE}${layout_datadir}" | ||
64 | export sysconfdir = "${STAGING_DIR_NATIVE}${layout_sysconfdir}" | ||
65 | export sharedstatedir = "${STAGING_DIR_NATIVE}${layout_sharedstatedir}" | ||
66 | export localstatedir = "${STAGING_DIR_NATIVE}${layout_localstatedir}" | ||
67 | export infodir = "${STAGING_DIR_NATIVE}${layout_infodir}" | ||
68 | export mandir = "${STAGING_DIR_NATIVE}${layout_mandir}" | ||
69 | export docdir = "${STAGING_DIR_NATIVE}${layout_docdir}" | ||
70 | export servicedir = "${STAGING_DIR_NATIVE}${layout_servicedir}" | ||
71 | |||
72 | # Architecture dependent paths | ||
73 | export bindir = "${STAGING_DIR_NATIVE}${layout_bindir}" | ||
74 | export sbindir = "${STAGING_DIR_NATIVE}${layout_sbindir}" | ||
75 | export libexecdir = "${STAGING_DIR_NATIVE}${layout_libexecdir}" | ||
76 | export libdir = "${STAGING_DIR_NATIVE}${layout_libdir}" | ||
77 | export includedir = "${STAGING_DIR_NATIVE}${layout_includedir}" | ||
78 | export oldincludedir = "${STAGING_DIR_NATIVE}${layout_includedir}" | ||
79 | 62 | ||
80 | # | 63 | # |
81 | # If changing this function, please make sure packaged-staging.bbclass is | 64 | # If changing this function, please make sure packaged-staging.bbclass is |
diff --git a/meta/classes/packaged-staging.bbclass b/meta/classes/packaged-staging.bbclass index 3dad4e8e0e..68aad800a2 100644 --- a/meta/classes/packaged-staging.bbclass +++ b/meta/classes/packaged-staging.bbclass | |||
@@ -174,11 +174,11 @@ staging_helper () { | |||
174 | done | 174 | done |
175 | echo "dest root /" >> $conffile | 175 | echo "dest root /" >> $conffile |
176 | fi | 176 | fi |
177 | if [ ! -e ${TMPDIR}${layout_libdir}/opkg/info/ ]; then | 177 | if [ ! -e ${TMPDIR}${libdir}/opkg/info/ ]; then |
178 | mkdir -p ${TMPDIR}${layout_libdir}/opkg/info/ | 178 | mkdir -p ${TMPDIR}${libdir}/opkg/info/ |
179 | fi | 179 | fi |
180 | if [ ! -e ${TMPDIR}${layout_libdir}/ipkg/ ]; then | 180 | if [ ! -e ${TMPDIR}${libdir}/ipkg/ ]; then |
181 | cd ${TMPDIR}${layout_libdir}/ | 181 | cd ${TMPDIR}${libdir}/ |
182 | ln -sf opkg/ ipkg || true | 182 | ln -sf opkg/ ipkg || true |
183 | fi | 183 | fi |
184 | } | 184 | } |
@@ -210,7 +210,7 @@ python packagestage_scenefunc () { | |||
210 | # | 210 | # |
211 | # Install the staging package somewhere temporarily so we can extract the stamp files | 211 | # Install the staging package somewhere temporarily so we can extract the stamp files |
212 | # | 212 | # |
213 | bb.mkdirhier(bb.data.expand("${WORKDIR}/tstage/${layout_libdir}/opkg/info/ ", d)) | 213 | bb.mkdirhier(bb.data.expand("${WORKDIR}/tstage/${libdir}/opkg/info/ ", d)) |
214 | cmd = bb.data.expand("${PSTAGE_PKGMANAGER} -f ${PSTAGE_MACHCONFIG} -force-depends -o ${WORKDIR}/tstage install", d) | 214 | cmd = bb.data.expand("${PSTAGE_PKGMANAGER} -f ${PSTAGE_MACHCONFIG} -force-depends -o ${WORKDIR}/tstage install", d) |
215 | ret = os.system("PATH=\"%s\" %s %s" % (path, cmd, stagepkg)) | 215 | ret = os.system("PATH=\"%s\" %s %s" % (path, cmd, stagepkg)) |
216 | if ret != 0: | 216 | if ret != 0: |
@@ -379,20 +379,20 @@ staging_packager () { | |||
379 | staging_package_installer () { | 379 | staging_package_installer () { |
380 | #${PSTAGE_INSTALL_CMD} ${PSTAGE_PKG} | 380 | #${PSTAGE_INSTALL_CMD} ${PSTAGE_PKG} |
381 | 381 | ||
382 | STATUSFILE=${TMPDIR}${layout_libdir}/opkg/status | 382 | STATUSFILE=${TMPDIR}${libdir}/opkg/status |
383 | echo "Package: ${PSTAGE_PKGPN}" >> $STATUSFILE | 383 | echo "Package: ${PSTAGE_PKGPN}" >> $STATUSFILE |
384 | echo "Version: ${PSTAGE_PKGVERSION}" >> $STATUSFILE | 384 | echo "Version: ${PSTAGE_PKGVERSION}" >> $STATUSFILE |
385 | echo "Status: install user installed" >> $STATUSFILE | 385 | echo "Status: install user installed" >> $STATUSFILE |
386 | echo "Architecture: ${PSTAGE_PKGARCH}" >> $STATUSFILE | 386 | echo "Architecture: ${PSTAGE_PKGARCH}" >> $STATUSFILE |
387 | echo "" >> $STATUSFILE | 387 | echo "" >> $STATUSFILE |
388 | 388 | ||
389 | CTRLFILE=${TMPDIR}${layout_libdir}/opkg/info/${PSTAGE_PKGPN}.control | 389 | CTRLFILE=${TMPDIR}${libdir}/opkg/info/${PSTAGE_PKGPN}.control |
390 | echo "Package: ${PSTAGE_PKGPN}" > $CTRLFILE | 390 | echo "Package: ${PSTAGE_PKGPN}" > $CTRLFILE |
391 | echo "Version: ${PSTAGE_PKGVERSION}" >> $CTRLFILE | 391 | echo "Version: ${PSTAGE_PKGVERSION}" >> $CTRLFILE |
392 | echo "Architecture: ${PSTAGE_PKGARCH}" >> $CTRLFILE | 392 | echo "Architecture: ${PSTAGE_PKGARCH}" >> $CTRLFILE |
393 | 393 | ||
394 | cd ${PSTAGE_TMPDIR_STAGE} | 394 | cd ${PSTAGE_TMPDIR_STAGE} |
395 | find -type f | grep -v ./CONTROL | sed -e 's/^\.//' > ${TMPDIR}${layout_libdir}/opkg/info/${PSTAGE_PKGPN}.list | 395 | find -type f | grep -v ./CONTROL | sed -e 's/^\.//' > ${TMPDIR}${libdir}/opkg/info/${PSTAGE_PKGPN}.list |
396 | } | 396 | } |
397 | 397 | ||
398 | staging_package_libtoolhack () { | 398 | staging_package_libtoolhack () { |
diff --git a/meta/classes/sdk.bbclass b/meta/classes/sdk.bbclass index a109333113..97fa8552cf 100644 --- a/meta/classes/sdk.bbclass +++ b/meta/classes/sdk.bbclass | |||
@@ -59,7 +59,7 @@ FILES_${PN}-dbg += "${prefix}/.debug \ | |||
59 | ${prefix}/bin/.debug \ | 59 | ${prefix}/bin/.debug \ |
60 | " | 60 | " |
61 | 61 | ||
62 | export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${layout_libdir}/pkgconfig" | 62 | export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${libdir}/pkgconfig" |
63 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" | 63 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" |
64 | 64 | ||
65 | python () { | 65 | python () { |
diff --git a/meta/classes/xlibs.bbclass b/meta/classes/xlibs.bbclass index ae8f928f1e..fc52400b9f 100644 --- a/meta/classes/xlibs.bbclass +++ b/meta/classes/xlibs.bbclass | |||
@@ -6,10 +6,10 @@ XLIBS_CVS = "${FREEDESKTOP_CVS}/xlibs" | |||
6 | inherit autotools pkgconfig | 6 | inherit autotools pkgconfig |
7 | 7 | ||
8 | do_stage() { | 8 | do_stage() { |
9 | oe_runmake install prefix=${STAGING_DIR_HOST}${layout_prefix} \ | 9 | oe_runmake install prefix=${STAGING_DIR_HOST}${prefix} \ |
10 | bindir=${STAGING_BINDIR} \ | 10 | bindir=${STAGING_BINDIR} \ |
11 | includedir=${STAGING_INCDIR} \ | 11 | includedir=${STAGING_INCDIR} \ |
12 | libdir=${STAGING_LIBDIR} \ | 12 | libdir=${STAGING_LIBDIR} \ |
13 | datadir=${STAGING_DATADIR} \ | 13 | datadir=${STAGING_DATADIR} \ |
14 | mandir=${STAGING_DIR_HOST}${layout_mandir} | 14 | mandir=${STAGING_DIR_HOST}${mandir} |
15 | } | 15 | } |