summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/binconfig.bbclass6
-rw-r--r--meta/classes/cross.bbclass2
-rw-r--r--meta/classes/kernel.bbclass2
-rw-r--r--meta/classes/native.bbclass3
-rw-r--r--meta/classes/siteconfig.bbclass5
-rw-r--r--meta/classes/staging.bbclass26
-rw-r--r--meta/conf/bitbake.conf1
-rw-r--r--meta/recipes-connectivity/gupnp/gupnp_0.14.0.bb4
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross-intermediate.inc3
-rw-r--r--meta/recipes-devtools/libtool/libtool-cross_2.4.bb4
-rw-r--r--meta/recipes-devtools/libtool/libtool-nativesdk_2.4.bb4
-rw-r--r--meta/recipes-devtools/libtool/libtool_2.4.bb6
-rw-r--r--meta/recipes-gnome/gtk+/gtk+.inc4
-rw-r--r--meta/recipes-support/apr/apr_1.4.2.bb2
14 files changed, 41 insertions, 31 deletions
diff --git a/meta/classes/binconfig.bbclass b/meta/classes/binconfig.bbclass
index 73ca4d6219..8e22d2d292 100644
--- a/meta/classes/binconfig.bbclass
+++ b/meta/classes/binconfig.bbclass
@@ -47,8 +47,8 @@ SYSROOT_PREPROCESS_FUNCS += "binconfig_sysroot_preprocess"
47binconfig_sysroot_preprocess () { 47binconfig_sysroot_preprocess () {
48 for config in `find ${S} -name '${BINCONFIG_GLOB}'`; do 48 for config in `find ${S} -name '${BINCONFIG_GLOB}'`; do
49 configname=`basename $config` 49 configname=`basename $config`
50 install -d ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS} 50 install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}
51 cat $config | sed ${@get_binconfig_mangle(d)} > ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/$configname 51 cat $config | sed ${@get_binconfig_mangle(d)} > ${SYSROOT_DESTDIR}${bindir_crossscripts}/$configname
52 chmod u+x ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/$configname 52 chmod u+x ${SYSROOT_DESTDIR}${bindir_crossscripts}/$configname
53 done 53 done
54} 54}
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass
index 7c20be0b81..6ec98b2395 100644
--- a/meta/classes/cross.bbclass
+++ b/meta/classes/cross.bbclass
@@ -50,6 +50,8 @@ base_sbindir = "${bindir}"
50libdir = "${exec_prefix}/lib/${MULTIMACH_TARGET_SYS}" 50libdir = "${exec_prefix}/lib/${MULTIMACH_TARGET_SYS}"
51libexecdir = "${exec_prefix}/libexec/${MULTIMACH_TARGET_SYS}" 51libexecdir = "${exec_prefix}/libexec/${MULTIMACH_TARGET_SYS}"
52 52
53do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}"
54
53do_install () { 55do_install () {
54 oe_runmake 'DESTDIR=${D}' install 56 oe_runmake 'DESTDIR=${D}' install
55} 57}
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 47110a21aa..9d3b2bbd8a 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -185,7 +185,7 @@ kernel_do_install() {
185} 185}
186 186
187sysroot_stage_all_append() { 187sysroot_stage_all_append() {
188 sysroot_stage_dir ${D}/kernel ${SYSROOT_DESTDIR}${STAGING_KERNEL_DIR} 188 sysroot_stage_dir ${D}/kernel ${SYSROOT_DESTDIR}/kernel
189} 189}
190 190
191 191
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index 3ca9d62845..aec7fe38a9 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -60,6 +60,9 @@ base_prefix = "${STAGING_DIR_NATIVE}"
60prefix = "${STAGING_DIR_NATIVE}${prefix_native}" 60prefix = "${STAGING_DIR_NATIVE}${prefix_native}"
61exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}" 61exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}"
62 62
63do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}"
64do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_NATIVE}"
65
63# Since we actually install these into situ there is no staging prefix 66# Since we actually install these into situ there is no staging prefix
64STAGING_DIR_HOST = "" 67STAGING_DIR_HOST = ""
65STAGING_DIR_TARGET = "" 68STAGING_DIR_TARGET = ""
diff --git a/meta/classes/siteconfig.bbclass b/meta/classes/siteconfig.bbclass
index 37d910e1da..e7cc9ae0da 100644
--- a/meta/classes/siteconfig.bbclass
+++ b/meta/classes/siteconfig.bbclass
@@ -20,8 +20,9 @@ siteconfig_do_siteconfig_gencache () {
20 sed -n -e "/ac_cv_c_bigendian/p" -e "/ac_cv_sizeof_/p" \ 20 sed -n -e "/ac_cv_c_bigendian/p" -e "/ac_cv_sizeof_/p" \
21 -e "/ac_cv_type_/p" -e "/ac_cv_header_/p" -e "/ac_cv_func_/p" \ 21 -e "/ac_cv_type_/p" -e "/ac_cv_header_/p" -e "/ac_cv_func_/p" \
22 < ${PN}_cache > ${PN}_config 22 < ${PN}_cache > ${PN}_config
23 mkdir -p ${SYSROOT_DESTDIR}${SITECONFIG_SYSROOTCACHE} 23 mkdir -p ${SYSROOT_DESTDIR}${datadir}/${TARGET_SYS}_config_site.d
24 cp ${PN}_config ${SYSROOT_DESTDIR}${SITECONFIG_SYSROOTCACHE} 24 cp ${PN}_config ${SYSROOT_DESTDIR}${datadir}/${TARGET_SYS}_config_site.d
25
25} 26}
26 27
27do_populate_sysroot[sstate-interceptfuncs] += "do_siteconfig " 28do_populate_sysroot[sstate-interceptfuncs] += "do_siteconfig "
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass
index 438cf375b9..72d77e2b54 100644
--- a/meta/classes/staging.bbclass
+++ b/meta/classes/staging.bbclass
@@ -32,25 +32,25 @@ sysroot_stage_dirs() {
32 from="$1" 32 from="$1"
33 to="$2" 33 to="$2"
34 34
35 sysroot_stage_dir $from${includedir} $to${STAGING_INCDIR} 35 sysroot_stage_dir $from${includedir} $to${includedir}
36 if [ "${BUILD_SYS}" = "${HOST_SYS}" ]; then 36 if [ "${BUILD_SYS}" = "${HOST_SYS}" ]; then
37 sysroot_stage_dir $from${bindir} $to${STAGING_DIR_HOST}${bindir} 37 sysroot_stage_dir $from${bindir} $to${bindir}
38 sysroot_stage_dir $from${sbindir} $to${STAGING_DIR_HOST}${sbindir} 38 sysroot_stage_dir $from${sbindir} $to${sbindir}
39 sysroot_stage_dir $from${base_bindir} $to${STAGING_DIR_HOST}${base_bindir} 39 sysroot_stage_dir $from${base_bindir} $to${base_bindir}
40 sysroot_stage_dir $from${base_sbindir} $to${STAGING_DIR_HOST}${base_sbindir} 40 sysroot_stage_dir $from${base_sbindir} $to${base_sbindir}
41 sysroot_stage_dir $from${libexecdir} $to${STAGING_DIR_HOST}${libexecdir} 41 sysroot_stage_dir $from${libexecdir} $to${libexecdir}
42 sysroot_stage_dir $from${sysconfdir} $to${STAGING_DIR_HOST}${sysconfdir} 42 sysroot_stage_dir $from${sysconfdir} $to${sysconfdir}
43 sysroot_stage_dir $from${localstatedir} $to${STAGING_DIR_HOST}${localstatedir} 43 sysroot_stage_dir $from${localstatedir} $to${localstatedir}
44 fi 44 fi
45 if [ -d $from${libdir} ] 45 if [ -d $from${libdir} ]
46 then 46 then
47 sysroot_stage_libdir $from/${libdir} $to${STAGING_LIBDIR} 47 sysroot_stage_libdir $from/${libdir} $to${libdir}
48 fi 48 fi
49 if [ -d $from${base_libdir} ] 49 if [ -d $from${base_libdir} ]
50 then 50 then
51 sysroot_stage_libdir $from${base_libdir} $to${STAGING_DIR_HOST}${base_libdir} 51 sysroot_stage_libdir $from${base_libdir} $to${base_libdir}
52 fi 52 fi
53 sysroot_stage_dir $from${datadir} $to${STAGING_DATADIR} 53 sysroot_stage_dir $from${datadir} $to${datadir}
54} 54}
55 55
56sysroot_stage_all() { 56sysroot_stage_all() {
@@ -90,8 +90,8 @@ python do_populate_sysroot () {
90 90
91SSTATETASKS += "do_populate_sysroot" 91SSTATETASKS += "do_populate_sysroot"
92do_populate_sysroot[sstate-name] = "populate-sysroot" 92do_populate_sysroot[sstate-name] = "populate-sysroot"
93do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR}" 93do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}"
94do_populate_sysroot[sstate-outputdirs] = "${TMPDIR}/sysroots" 94do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_HOST}/"
95 95
96python do_populate_sysroot_setscene () { 96python do_populate_sysroot_setscene () {
97 sstate_setscene(d) 97 sstate_setscene(d)
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 2c3f2fc90a..19ec1a7ce7 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -43,6 +43,7 @@ includedir_native = "${prefix_native}/include"
43libdir_native = "${prefix_native}/lib" 43libdir_native = "${prefix_native}/lib"
44datadir_native = "${prefix_native}/share" 44datadir_native = "${prefix_native}/share"
45bindir_cross = "/bin" 45bindir_cross = "/bin"
46bindir_crossscripts = "${bindir}/crossscripts"
46prefix_nativesdk = "/usr" 47prefix_nativesdk = "/usr"
47bindir_nativesdk = "${prefix_nativesdk}/bin" 48bindir_nativesdk = "${prefix_nativesdk}/bin"
48libdir_nativesdk = "${prefix_nativesdk}/lib" 49libdir_nativesdk = "${prefix_nativesdk}/lib"
diff --git a/meta/recipes-connectivity/gupnp/gupnp_0.14.0.bb b/meta/recipes-connectivity/gupnp/gupnp_0.14.0.bb
index 9beb46ed11..9f2d717c76 100644
--- a/meta/recipes-connectivity/gupnp/gupnp_0.14.0.bb
+++ b/meta/recipes-connectivity/gupnp/gupnp_0.14.0.bb
@@ -23,7 +23,7 @@ FILES_${PN}-dev += "${bindir}/gupnp-binding-tool"
23SYSROOT_PREPROCESS_FUNCS += "gupnp_sysroot_preprocess" 23SYSROOT_PREPROCESS_FUNCS += "gupnp_sysroot_preprocess"
24 24
25gupnp_sysroot_preprocess () { 25gupnp_sysroot_preprocess () {
26 install -d ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/ 26 install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
27 install -m 755 ${D}${bindir}/gupnp-binding-tool ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/ 27 install -m 755 ${D}${bindir}/gupnp-binding-tool ${SYSROOT_DESTDIR}${bindir_crossscripts}/
28} 28}
29 29
diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
index 72a42411b1..48c6d9aabe 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
@@ -17,6 +17,9 @@ EXTRA_OECONF = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix} \
17 ${EXTRA_OECONF_INTERMEDIATE} \ 17 ${EXTRA_OECONF_INTERMEDIATE} \
18 ${@get_gcc_fpu_setting(bb, d)}" 18 ${@get_gcc_fpu_setting(bb, d)}"
19 19
20do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_HOST} ${SYSROOT_DESTDIR}/${STAGING_DIR_TARGET}/${target_base_libdir}"
21do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_HOST} ${STAGING_DIR_TARGET}/${target_base_libdir}"
22
20do_compile () { 23do_compile () {
21 oe_runmake 24 oe_runmake
22} 25}
diff --git a/meta/recipes-devtools/libtool/libtool-cross_2.4.bb b/meta/recipes-devtools/libtool/libtool-cross_2.4.bb
index cd2bcecaf9..e3b40f2560 100644
--- a/meta/recipes-devtools/libtool/libtool-cross_2.4.bb
+++ b/meta/recipes-devtools/libtool/libtool-cross_2.4.bb
@@ -26,6 +26,6 @@ do_install () {
26SYSROOT_PREPROCESS_FUNCS += "libtoolcross_sysroot_preprocess" 26SYSROOT_PREPROCESS_FUNCS += "libtoolcross_sysroot_preprocess"
27 27
28libtoolcross_sysroot_preprocess () { 28libtoolcross_sysroot_preprocess () {
29 install -d ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/ 29 install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}
30 install -m 755 ${D}${bindir}/${HOST_SYS}-libtool ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool 30 install -m 755 ${D}${bindir}/${HOST_SYS}-libtool ${SYSROOT_DESTDIR}${bindir_crossscripts}/${HOST_SYS}-libtool
31} 31}
diff --git a/meta/recipes-devtools/libtool/libtool-nativesdk_2.4.bb b/meta/recipes-devtools/libtool/libtool-nativesdk_2.4.bb
index 2c01a4eb8e..45c9af66c6 100644
--- a/meta/recipes-devtools/libtool/libtool-nativesdk_2.4.bb
+++ b/meta/recipes-devtools/libtool/libtool-nativesdk_2.4.bb
@@ -21,6 +21,6 @@ do_install () {
21SYSROOT_PREPROCESS_FUNCS += "libtoolnativesdk_sysroot_preprocess" 21SYSROOT_PREPROCESS_FUNCS += "libtoolnativesdk_sysroot_preprocess"
22 22
23libtoolnativesdk_sysroot_preprocess () { 23libtoolnativesdk_sysroot_preprocess () {
24 install -d ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/ 24 install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
25 install -m 755 ${D}${bindir}/${HOST_SYS}-libtool ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool 25 install -m 755 ${D}${bindir}/${HOST_SYS}-libtool ${SYSROOT_DESTDIR}${bindir_crossscripts}/${HOST_SYS}-libtool
26} 26}
diff --git a/meta/recipes-devtools/libtool/libtool_2.4.bb b/meta/recipes-devtools/libtool/libtool_2.4.bb
index ee24444a81..a820bed0dd 100644
--- a/meta/recipes-devtools/libtool/libtool_2.4.bb
+++ b/meta/recipes-devtools/libtool/libtool_2.4.bb
@@ -8,8 +8,8 @@ PR = "r1"
8SYSROOT_PREPROCESS_FUNCS += "libtool_sysroot_preprocess" 8SYSROOT_PREPROCESS_FUNCS += "libtool_sysroot_preprocess"
9 9
10libtool_sysroot_preprocess () { 10libtool_sysroot_preprocess () {
11 rm -rf ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${bindir}/* 11 rm -rf ${SYSROOT_DESTDIR}${bindir}/*
12 rm -rf ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${datadir}/aclocal/* 12 rm -rf ${SYSROOT_DESTDIR}${datadir}/aclocal/*
13 rm -rf ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${datadir}/libtool/config/* 13 rm -rf ${SYSROOT_DESTDIR}${datadir}/libtool/config/*
14} 14}
15 15
diff --git a/meta/recipes-gnome/gtk+/gtk+.inc b/meta/recipes-gnome/gtk+/gtk+.inc
index 425a21ec28..f04b29ca6e 100644
--- a/meta/recipes-gnome/gtk+/gtk+.inc
+++ b/meta/recipes-gnome/gtk+/gtk+.inc
@@ -64,8 +64,8 @@ SYSROOT_PREPROCESS_FUNCS += "gtk_sysroot_preprocess"
64 64
65gtk_sysroot_preprocess () { 65gtk_sysroot_preprocess () {
66 if [ -e ${D}${bindir}/gtk-builder-convert ]; then 66 if [ -e ${D}${bindir}/gtk-builder-convert ]; then
67 install -d ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/ 67 install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
68 install -m 755 ${D}${bindir}/gtk-builder-convert ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/ 68 install -m 755 ${D}${bindir}/gtk-builder-convert ${SYSROOT_DESTDIR}${bindir_crossscripts}/
69 fi 69 fi
70} 70}
71 71
diff --git a/meta/recipes-support/apr/apr_1.4.2.bb b/meta/recipes-support/apr/apr_1.4.2.bb
index fe983eb7f7..ce26ef17cb 100644
--- a/meta/recipes-support/apr/apr_1.4.2.bb
+++ b/meta/recipes-support/apr/apr_1.4.2.bb
@@ -37,7 +37,7 @@ do_configure_append() {
37SYSROOT_PREPROCESS_FUNCS += "apr_sysroot_preprocess" 37SYSROOT_PREPROCESS_FUNCS += "apr_sysroot_preprocess"
38 38
39apr_sysroot_preprocess () { 39apr_sysroot_preprocess () {
40 d=${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${datadir}/apr 40 d=${SYSROOT_DESTDIR}${datadir}/apr
41 install -d $d/ 41 install -d $d/
42 cp ${S}/build/apr_rules.mk $d/ 42 cp ${S}/build/apr_rules.mk $d/
43 sed -i s,apr_builddir=.*,apr_builddir=,g $d/apr_rules.mk 43 sed -i s,apr_builddir=.*,apr_builddir=,g $d/apr_rules.mk