diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/native.bbclass | 48 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 71 | ||||
-rw-r--r-- | meta/packages/apt/files/apt.conf | 2 | ||||
-rw-r--r-- | meta/packages/binutils/binutils-cross.inc | 2 | ||||
-rw-r--r-- | meta/packages/gcc/gcc3-build-cross.inc | 13 | ||||
-rw-r--r-- | meta/packages/qemu/qemu-native_20070613.bb | 1 | ||||
-rw-r--r-- | meta/packages/qemu/qemu-native_cvs.bb | 1 |
7 files changed, 61 insertions, 77 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index 104d5a49da..d40a5028c9 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass | |||
@@ -27,7 +27,7 @@ CPPFLAGS = "${BUILD_CPPFLAGS}" | |||
27 | CFLAGS = "${BUILD_CFLAGS}" | 27 | CFLAGS = "${BUILD_CFLAGS}" |
28 | CXXFLAGS = "${BUILD_CFLAGS}" | 28 | CXXFLAGS = "${BUILD_CFLAGS}" |
29 | LDFLAGS = "${BUILD_LDFLAGS}" | 29 | LDFLAGS = "${BUILD_LDFLAGS}" |
30 | LDFLAGS_build-darwin = "-L${STAGING_DIR}/${BUILD_SYS}/lib " | 30 | LDFLAGS_build-darwin = "-L${STAGING_LIBDIR_NATIVE} " |
31 | 31 | ||
32 | STAGING_BINDIR = "${STAGING_BINDIR_NATIVE}" | 32 | STAGING_BINDIR = "${STAGING_BINDIR_NATIVE}" |
33 | STAGING_BINDIR_CROSS = "${STAGING_BINDIR_NATIVE}" | 33 | STAGING_BINDIR_CROSS = "${STAGING_BINDIR_NATIVE}" |
@@ -47,39 +47,33 @@ export AS = "${HOST_PREFIX}as" | |||
47 | export RANLIB = "${HOST_PREFIX}ranlib" | 47 | export RANLIB = "${HOST_PREFIX}ranlib" |
48 | export STRIP = "${HOST_PREFIX}strip" | 48 | export STRIP = "${HOST_PREFIX}strip" |
49 | 49 | ||
50 | |||
51 | # Path prefixes | 50 | # Path prefixes |
52 | base_prefix = "${exec_prefix}" | 51 | export base_prefix = "${STAGING_DIR_NATIVE}" |
53 | prefix = "${STAGING_DIR}" | 52 | export prefix = "${STAGING_DIR_NATIVE}${layout_prefix}" |
54 | exec_prefix = "${STAGING_DIR}/${BUILD_ARCH}-${BUILD_OS}" | 53 | export exec_prefix = "${STAGING_DIR_NATIVE}${layout_exec_prefix}" |
55 | 54 | ||
56 | # Base paths | 55 | # Base paths |
57 | base_bindir = "${base_prefix}/bin" | 56 | export base_bindir = "${STAGING_DIR_NATIVE}${layout_base_bindir}" |
58 | base_sbindir = "${base_prefix}/bin" | 57 | export base_sbindir = "${STAGING_DIR_NATIVE}${layout_base_sbindir}" |
59 | base_libdir = "${base_prefix}/lib" | 58 | export base_libdir = "${STAGING_DIR_NATIVE}${layout_base_libdir}" |
60 | 59 | ||
61 | # Architecture independent paths | 60 | # Architecture independent paths |
62 | sysconfdir = "${prefix}/etc" | 61 | export datadir = "${STAGING_DIR_NATIVE}${layout_datadir}" |
63 | sharedstatedir = "${prefix}/com" | 62 | export sysconfdir = "${STAGING_DIR_NATIVE}${layout_sysconfdir}" |
64 | localstatedir = "${prefix}/var" | 63 | export sharedstatedir = "${STAGING_DIR_NATIVE}${layout_sharedstatedir}" |
65 | infodir = "${datadir}/info" | 64 | export localstatedir = "${STAGING_DIR_NATIVE}${layout_localstatedir}" |
66 | mandir = "${datadir}/man" | 65 | export infodir = "${STAGING_DIR_NATIVE}${layout_infodir}" |
67 | docdir = "${datadir}/doc" | 66 | export mandir = "${STAGING_DIR_NATIVE}${layout_mandir}" |
68 | servicedir = "${prefix}/srv" | 67 | export docdir = "${STAGING_DIR_NATIVE}${layout_docdir}" |
68 | export servicedir = "${STAGING_DIR_NATIVE}${layout_servicedir}" | ||
69 | 69 | ||
70 | # Architecture dependent paths | 70 | # Architecture dependent paths |
71 | bindir = "${exec_prefix}/bin" | 71 | export bindir = "${STAGING_DIR_NATIVE}${layout_bindir}" |
72 | sbindir = "${exec_prefix}/bin" | 72 | export sbindir = "${STAGING_DIR_NATIVE}${layout_sbindir}" |
73 | libexecdir = "${exec_prefix}/libexec" | 73 | export libexecdir = "${STAGING_DIR_NATIVE}${layout_libexecdir}" |
74 | libdir = "${exec_prefix}/lib" | 74 | export libdir = "${STAGING_DIR_NATIVE}${layout_libdir}" |
75 | includedir = "${exec_prefix}/include" | 75 | export includedir = "${STAGING_DIR_NATIVE}${layout_includedir}" |
76 | oldincludedir = "${exec_prefix}/include" | 76 | export oldincludedir = "${STAGING_DIR_NATIVE}${layout_includedir}" |
77 | |||
78 | # Datadir is made arch dependent here, primarily | ||
79 | # for autoconf macros, and other things that | ||
80 | # may be manipulated to handle crosscompilation | ||
81 | # issues. | ||
82 | datadir = "${exec_prefix}/share" | ||
83 | 77 | ||
84 | do_stage () { | 78 | do_stage () { |
85 | if [ "${INHIBIT_NATIVE_STAGE_INSTALL}" != "1" ] | 79 | if [ "${INHIBIT_NATIVE_STAGE_INSTALL}" != "1" ] |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 8492c0d5db..523a33dd78 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -2,17 +2,14 @@ | |||
2 | # Standard target filesystem layout. | 2 | # Standard target filesystem layout. |
3 | ################################################################## | 3 | ################################################################## |
4 | 4 | ||
5 | # Note these currently match the existing staging layout but this | ||
6 | # is planned to change, see the oe-dev mailing list | ||
7 | |||
8 | # Path prefixes | 5 | # Path prefixes |
9 | layout_prefix = "" | 6 | layout_prefix = "/usr" |
10 | layout_exec_prefix = "" | 7 | layout_exec_prefix = "/usr" |
11 | layout_base_prefix = "" | 8 | layout_base_prefix = "" |
12 | 9 | ||
13 | # Base paths | 10 | # Base paths |
14 | layout_base_bindir = "${layout_base_prefix}/bin" | 11 | layout_base_bindir = "${layout_base_prefix}/bin" |
15 | layout_base_sbindir = "${layout_base_prefix}/bin" | 12 | layout_base_sbindir = "${layout_base_prefix}/sbin" |
16 | layout_base_libdir = "${layout_base_prefix}/lib" | 13 | layout_base_libdir = "${layout_base_prefix}/lib" |
17 | 14 | ||
18 | # Architecture independent paths | 15 | # Architecture independent paths |
@@ -27,7 +24,7 @@ layout_docdir = "${layout_datadir}/doc" | |||
27 | 24 | ||
28 | # Architecture dependent paths | 25 | # Architecture dependent paths |
29 | layout_bindir = "${layout_exec_prefix}/bin" | 26 | layout_bindir = "${layout_exec_prefix}/bin" |
30 | layout_sbindir = "${layout_exec_prefix}/bin" | 27 | layout_sbindir = "${layout_exec_prefix}/sbin" |
31 | layout_libdir = "${layout_exec_prefix}/lib" | 28 | layout_libdir = "${layout_exec_prefix}/lib" |
32 | layout_includedir = "${layout_exec_prefix}/include" | 29 | layout_includedir = "${layout_exec_prefix}/include" |
33 | layout_libexecdir = "${layout_exec_prefix}/libexec" | 30 | layout_libexecdir = "${layout_exec_prefix}/libexec" |
@@ -38,31 +35,31 @@ layout_libexecdir = "${layout_exec_prefix}/libexec" | |||
38 | 35 | ||
39 | # Path prefixes | 36 | # Path prefixes |
40 | export base_prefix = "" | 37 | export base_prefix = "" |
41 | export prefix = "/usr" | 38 | export prefix = "${layout_prefix}" |
42 | export exec_prefix = "${prefix}" | 39 | export exec_prefix = "${layout_exec_prefix}" |
43 | 40 | ||
44 | # Base paths | 41 | # Base paths |
45 | export base_bindir = "${base_prefix}/bin" | 42 | export base_bindir = "${layout_base_bindir}" |
46 | export base_sbindir = "${base_prefix}/sbin" | 43 | export base_sbindir = "${layout_base_sbindir}" |
47 | export base_libdir = "${base_prefix}/lib" | 44 | export base_libdir = "${layout_base_libdir}" |
48 | 45 | ||
49 | # Architecture independent paths | 46 | # Architecture independent paths |
50 | export datadir = "${prefix}/share" | 47 | export datadir = "${layout_datadir}" |
51 | export sysconfdir = "/etc" | 48 | export sysconfdir = "${layout_sysconfdir}" |
52 | export sharedstatedir = "${prefix}/com" | 49 | export sharedstatedir = "${layout_sharedstatedir}" |
53 | export localstatedir = "/var" | 50 | export localstatedir = "${layout_localstatedir}" |
54 | export infodir = "${datadir}/info" | 51 | export infodir = "${layout_infodir}" |
55 | export mandir = "${datadir}/man" | 52 | export mandir = "${layout_mandir}" |
56 | export docdir = "${datadir}/doc" | 53 | export docdir = "${layout_docdir}" |
57 | export servicedir = "/srv" | 54 | export servicedir = "${layout_servicedir}" |
58 | 55 | ||
59 | # Architecture dependent paths | 56 | # Architecture dependent paths |
60 | export bindir = "${exec_prefix}/bin" | 57 | export bindir = "${layout_bindir}" |
61 | export sbindir = "${exec_prefix}/sbin" | 58 | export sbindir = "${layout_sbindir}" |
62 | export libexecdir = "${exec_prefix}/libexec" | 59 | export libexecdir = "${layout_libexecdir}" |
63 | export libdir = "${exec_prefix}/lib" | 60 | export libdir = "${layout_libdir}" |
64 | export includedir = "${exec_prefix}/include" | 61 | export includedir = "${layout_includedir}" |
65 | export oldincludedir = "${exec_prefix}/include" | 62 | export oldincludedir = "${layout_includedir}" |
66 | 63 | ||
67 | ################################################################## | 64 | ################################################################## |
68 | # Architecture-dependent build variables. | 65 | # Architecture-dependent build variables. |
@@ -203,18 +200,18 @@ B = "${S}" | |||
203 | STAGING_DIR = "${TMPDIR}/staging" | 200 | STAGING_DIR = "${TMPDIR}/staging" |
204 | 201 | ||
205 | STAGING_DIR_NATIVE = "${STAGING_DIR}/${BUILD_SYS}" | 202 | STAGING_DIR_NATIVE = "${STAGING_DIR}/${BUILD_SYS}" |
206 | STAGING_BINDIR_NATIVE = "${STAGING_DIR_NATIVE}/bin" | 203 | STAGING_BINDIR_NATIVE = "${STAGING_DIR_NATIVE}${layout_bindir}" |
207 | STAGING_BINDIR_CROSS = "${STAGING_DIR_NATIVE}/bin/${HOST_SYS}" | 204 | STAGING_BINDIR_CROSS = "${STAGING_DIR_NATIVE}${layout_bindir}/${HOST_SYS}" |
208 | STAGING_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}/lib" | 205 | STAGING_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${layout_libdir}" |
209 | STAGING_INCDIR_NATIVE = "${STAGING_DIR_NATIVE}/include" | 206 | STAGING_INCDIR_NATIVE = "${STAGING_DIR_NATIVE}${layout_includedir}" |
210 | STAGING_ETCDIR_NATIVE = "${STAGING_DIR_NATIVE}/etc" | 207 | STAGING_ETCDIR_NATIVE = "${STAGING_DIR_NATIVE}${layout_sysconfdir}" |
211 | STAGING_DATADIR_NATIVE = "${STAGING_DIR_NATIVE}/share" | 208 | STAGING_DATADIR_NATIVE = "${STAGING_DIR_NATIVE}${layout_datadir}" |
212 | 209 | ||
213 | STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_SYS}" | 210 | STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_SYS}" |
214 | STAGING_BINDIR = "${STAGING_DIR_HOST}/bin" | 211 | STAGING_BINDIR = "${STAGING_DIR_HOST}${layout_bindir}" |
215 | STAGING_LIBDIR = "${STAGING_DIR_HOST}/lib" | 212 | STAGING_LIBDIR = "${STAGING_DIR_HOST}${layout_libdir}" |
216 | STAGING_INCDIR = "${STAGING_DIR_HOST}/include" | 213 | STAGING_INCDIR = "${STAGING_DIR_HOST}${layout_includedir}" |
217 | STAGING_DATADIR = "${STAGING_DIR_HOST}/share" | 214 | STAGING_DATADIR = "${STAGING_DIR_HOST}${layout_datadir}" |
218 | STAGING_LOADER_DIR = "${STAGING_DIR_HOST}/loader" | 215 | STAGING_LOADER_DIR = "${STAGING_DIR_HOST}/loader" |
219 | STAGING_FIRMWARE_DIR = "${STAGING_DIR_HOST}/firmware" | 216 | STAGING_FIRMWARE_DIR = "${STAGING_DIR_HOST}/firmware" |
220 | STAGING_PYDIR = "${STAGING_DIR}/lib/python2.4" | 217 | STAGING_PYDIR = "${STAGING_DIR}/lib/python2.4" |
@@ -291,7 +288,7 @@ EXTRA_IMAGEDEPENDS = "" | |||
291 | 288 | ||
292 | CROSS_DIR = "${TMPDIR}/cross" | 289 | CROSS_DIR = "${TMPDIR}/cross" |
293 | CROSS_DATADIR = "${CROSS_DIR}/share" | 290 | CROSS_DATADIR = "${CROSS_DIR}/share" |
294 | export PATH_prepend = "${STAGING_BINDIR_CROSS}:${STAGING_BINDIR_NATIVE}:${CROSS_DIR}/bin:" | 291 | export PATH_prepend = "${STAGING_BINDIR_CROSS}:${STAGING_DIR_NATIVE}${layout_sbindir}:${STAGING_BINDIR_NATIVE}:${CROSS_DIR}/bin:${STAGING_DIR_NATIVE}${layout_base_sbindir}:" |
295 | 292 | ||
296 | ################################################################## | 293 | ################################################################## |
297 | # Build utility info. | 294 | # Build utility info. |
diff --git a/meta/packages/apt/files/apt.conf b/meta/packages/apt/files/apt.conf index 9e90616465..2bd9ddbfaf 100644 --- a/meta/packages/apt/files/apt.conf +++ b/meta/packages/apt/files/apt.conf | |||
@@ -1,4 +1,4 @@ | |||
1 | Dir "${STAGING_DIR}/" | 1 | Dir "${STAGING_DIR_NATIVE}/" |
2 | { | 2 | { |
3 | State "var/lib/apt/" | 3 | State "var/lib/apt/" |
4 | { | 4 | { |
diff --git a/meta/packages/binutils/binutils-cross.inc b/meta/packages/binutils/binutils-cross.inc index c63ea687aa..a45a39feab 100644 --- a/meta/packages/binutils/binutils-cross.inc +++ b/meta/packages/binutils/binutils-cross.inc | |||
@@ -3,7 +3,7 @@ inherit cross | |||
3 | DEPENDS += "flex-native bison-native" | 3 | DEPENDS += "flex-native bison-native" |
4 | PROVIDES = "virtual/${TARGET_PREFIX}binutils" | 4 | PROVIDES = "virtual/${TARGET_PREFIX}binutils" |
5 | PACKAGES = "" | 5 | PACKAGES = "" |
6 | EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \ | 6 | EXTRA_OECONF = "--with-sysroot=${STAGING_DIR_TARGET} \ |
7 | --program-prefix=${TARGET_PREFIX}" | 7 | --program-prefix=${TARGET_PREFIX}" |
8 | 8 | ||
9 | do_stage () { | 9 | do_stage () { |
diff --git a/meta/packages/gcc/gcc3-build-cross.inc b/meta/packages/gcc/gcc3-build-cross.inc index ec285f522b..2b9766975c 100644 --- a/meta/packages/gcc/gcc3-build-cross.inc +++ b/meta/packages/gcc/gcc3-build-cross.inc | |||
@@ -1,7 +1,9 @@ | |||
1 | USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' | 1 | USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' |
2 | 2 | ||
3 | EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR}/${TARGET_SYS} \ | 3 | EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${layout_prefix} \ |
4 | --with-gxx-include-dir=${STAGING_DIR}/${TARGET_SYS}/include/c++" | 4 | --with-gxx-include-dir=${STAGING_DIR_TARGET}/${layout_includedir}/c++ \ |
5 | --with-sysroot=${STAGING_DIR_TARGET} \ | ||
6 | --with-build-sysroot=${STAGING_DIR_TARGET}" | ||
5 | 7 | ||
6 | do_configure_prepend () { | 8 | do_configure_prepend () { |
7 | rm -f ${CROSS_DIR}/lib/gcc/${TARGET_SYS}/${BINV}/libgcc_eh.a | 9 | rm -f ${CROSS_DIR}/lib/gcc/${TARGET_SYS}/${BINV}/libgcc_eh.a |
@@ -25,13 +27,6 @@ do_stage_append () { | |||
25 | rm -f ${CROSS_DIR}/bin/*gcov | 27 | rm -f ${CROSS_DIR}/bin/*gcov |
26 | rm -f ${CROSS_DIR}/bin/*gccbug | 28 | rm -f ${CROSS_DIR}/bin/*gccbug |
27 | 29 | ||
28 | # Fix a few include links so cross builds are happier | ||
29 | if [ ! -e ${STAGING_INCDIR}/c++ ]; then | ||
30 | mkdir -p ${STAGING_INCDIR} | ||
31 | ln -sf ${CROSS_DIR}/${TARGET_SYS}/include/c++ \ | ||
32 | ${STAGING_INCDIR}/ | ||
33 | fi | ||
34 | |||
35 | # We use libiberty from binutils | 30 | # We use libiberty from binutils |
36 | rm -f ${CROSS_DIR}/lib/libiberty.a | 31 | rm -f ${CROSS_DIR}/lib/libiberty.a |
37 | 32 | ||
diff --git a/meta/packages/qemu/qemu-native_20070613.bb b/meta/packages/qemu/qemu-native_20070613.bb index a6a5bda58d..28373e273e 100644 --- a/meta/packages/qemu/qemu-native_20070613.bb +++ b/meta/packages/qemu/qemu-native_20070613.bb | |||
@@ -1,6 +1,5 @@ | |||
1 | require qemu_${PV}.bb | 1 | require qemu_${PV}.bb |
2 | inherit native | 2 | inherit native |
3 | DEPENDS = "zlib-native" | 3 | DEPENDS = "zlib-native" |
4 | prefix = "${STAGING_DIR}/${BUILD_SYS}" | ||
5 | 4 | ||
6 | require qemu-gcc3-check.inc | 5 | require qemu-gcc3-check.inc |
diff --git a/meta/packages/qemu/qemu-native_cvs.bb b/meta/packages/qemu/qemu-native_cvs.bb index fae6ca2f1b..c87d45b601 100644 --- a/meta/packages/qemu/qemu-native_cvs.bb +++ b/meta/packages/qemu/qemu-native_cvs.bb | |||
@@ -1,6 +1,5 @@ | |||
1 | require qemu_cvs.bb | 1 | require qemu_cvs.bb |
2 | inherit native | 2 | inherit native |
3 | DEPENDS = "zlib-native" | 3 | DEPENDS = "zlib-native" |
4 | prefix = "${STAGING_DIR}/${BUILD_SYS}" | ||
5 | 4 | ||
6 | require qemu-gcc3-check.inc | 5 | require qemu-gcc3-check.inc |