diff options
author | Richard Purdie <richard@openedhand.com> | 2007-11-12 11:25:30 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-11-12 11:25:30 +0000 |
commit | 01d5da72d0bd5038ce4b6a211546a4ca3f8daffd (patch) | |
tree | ba1921d2beb66d9da21a5d6183c2c7db2bfc22a7 /meta/classes/native.bbclass | |
parent | 8c1871aabfd2b010152886cb5b48a0be84c2dc80 (diff) | |
download | poky-01d5da72d0bd5038ce4b6a211546a4ca3f8daffd.tar.gz |
Rearrange staging to match target system layout. This is a major change and will require a full rebuild.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3123 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/native.bbclass')
-rw-r--r-- | meta/classes/native.bbclass | 48 |
1 files changed, 21 insertions, 27 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" ] |