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/conf | |
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/conf')
-rw-r--r-- | meta/conf/bitbake.conf | 118 |
1 files changed, 52 insertions, 66 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index a0e62578ec..f5031f0b01 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -1,65 +1,51 @@ | |||
1 | ################################################################## | 1 | ################################################################## |
2 | # Standard target filesystem layout. | ||
3 | ################################################################## | ||
4 | |||
5 | # Path prefixes | ||
6 | layout_prefix = "/usr" | ||
7 | layout_exec_prefix = "/usr" | ||
8 | layout_base_prefix = "" | ||
9 | |||
10 | # Base paths | ||
11 | layout_base_bindir = "${layout_base_prefix}/bin" | ||
12 | layout_base_sbindir = "${layout_base_prefix}/sbin" | ||
13 | layout_base_libdir = "${layout_base_prefix}/lib" | ||
14 | |||
15 | # Architecture independent paths | ||
16 | layout_sysconfdir = "${layout_base_prefix}/etc" | ||
17 | layout_localstatedir = "${layout_base_prefix}/var" | ||
18 | layout_servicedir = "${layout_base_prefix}/srv" | ||
19 | layout_sharedstatedir = "${layout_prefix}/com" | ||
20 | layout_datadir = "${layout_prefix}/share" | ||
21 | layout_infodir = "${layout_datadir}/info" | ||
22 | layout_mandir = "${layout_datadir}/man" | ||
23 | layout_docdir = "${layout_datadir}/doc" | ||
24 | |||
25 | # Architecture dependent paths | ||
26 | layout_bindir = "${layout_exec_prefix}/bin" | ||
27 | layout_sbindir = "${layout_exec_prefix}/sbin" | ||
28 | layout_libdir = "${layout_exec_prefix}/lib" | ||
29 | layout_includedir = "${layout_exec_prefix}/include" | ||
30 | layout_libexecdir = "${layout_exec_prefix}/libexec" | ||
31 | |||
32 | ################################################################## | ||
33 | # Standard target filesystem paths. | 2 | # Standard target filesystem paths. |
34 | ################################################################## | 3 | ################################################################## |
35 | 4 | ||
36 | # Path prefixes | 5 | # Path prefixes |
37 | export base_prefix = "" | 6 | export base_prefix = "" |
38 | export prefix = "${layout_prefix}" | 7 | export prefix = "/usr" |
39 | export exec_prefix = "${layout_exec_prefix}" | 8 | export exec_prefix = "/usr" |
40 | 9 | ||
41 | # Base paths | 10 | # Base paths |
42 | export base_bindir = "${layout_base_bindir}" | 11 | export base_bindir = "${base_prefix}/bin" |
43 | export base_sbindir = "${layout_base_sbindir}" | 12 | export base_sbindir = "${base_prefix}/sbin" |
44 | export base_libdir = "${layout_base_libdir}" | 13 | export base_libdir = "${base_prefix}/lib" |
45 | 14 | ||
46 | # Architecture independent paths | 15 | # Architecture independent paths |
47 | export datadir = "${layout_datadir}" | 16 | export datadir = "${prefix}/share" |
48 | export sysconfdir = "${layout_sysconfdir}" | 17 | export sysconfdir = "${base_prefix}/etc" |
49 | export sharedstatedir = "${layout_sharedstatedir}" | 18 | export servicedir = "${base_prefix}/srv" |
50 | export localstatedir = "${layout_localstatedir}" | 19 | export sharedstatedir = "${base_prefix}/com" |
51 | export infodir = "${layout_infodir}" | 20 | export localstatedir = "${base_prefix}/var" |
52 | export mandir = "${layout_mandir}" | 21 | export infodir = "${datadir}/info" |
53 | export docdir = "${layout_docdir}" | 22 | export mandir = "${datadir}/man" |
54 | export servicedir = "${layout_servicedir}" | 23 | export docdir = "${datadir}/doc" |
55 | 24 | ||
56 | # Architecture dependent paths | 25 | # Architecture dependent paths |
57 | export bindir = "${layout_bindir}" | 26 | export bindir = "${exec_prefix}/bin" |
58 | export sbindir = "${layout_sbindir}" | 27 | export sbindir = "${exec_prefix}/sbin" |
59 | export libexecdir = "${layout_libexecdir}" | 28 | export libexecdir = "${exec_prefix}/libexec" |
60 | export libdir = "${layout_libdir}" | 29 | export libdir = "${exec_prefix}/lib" |
61 | export includedir = "${layout_includedir}" | 30 | export includedir = "${exec_prefix}/include" |
62 | export oldincludedir = "${layout_includedir}" | 31 | export oldincludedir = "${exec_prefix}/include" |
32 | |||
33 | base_bindir_native = "/bin" | ||
34 | base_sbindir_native = "/sbin" | ||
35 | sysconfdir_native = "/etc" | ||
36 | prefix_native = "/usr" | ||
37 | bindir_native = "${prefix_native}/bin" | ||
38 | sbindir_native = "${prefix_native}/sbin" | ||
39 | includedir_native = "${prefix_native}/include" | ||
40 | libdir_native = "${prefix_native}/lib" | ||
41 | datadir_native = "${prefix_native}/share" | ||
42 | bindir_cross = "/bin" | ||
43 | |||
44 | # | ||
45 | # Cross recipes need to know about the target layout | ||
46 | # := is used carefully here | ||
47 | # | ||
48 | target_datadir := "${datadir}" | ||
63 | 49 | ||
64 | ################################################################## | 50 | ################################################################## |
65 | # Architecture-dependent build variables. | 51 | # Architecture-dependent build variables. |
@@ -263,21 +249,21 @@ B = "${S}" | |||
263 | STAGING_DIR = "${TMPDIR}/staging" | 249 | STAGING_DIR = "${TMPDIR}/staging" |
264 | 250 | ||
265 | STAGING_DIR_NATIVE = "${STAGING_DIR}/${BUILD_SYS}" | 251 | STAGING_DIR_NATIVE = "${STAGING_DIR}/${BUILD_SYS}" |
266 | STAGING_BINDIR_NATIVE = "${STAGING_DIR_NATIVE}${layout_bindir}" | 252 | STAGING_BINDIR_NATIVE = "${STAGING_DIR_NATIVE}${bindir_native}" |
267 | STAGING_BINDIR_CROSS = "${STAGING_DIR_NATIVE}${layout_bindir}/${MULTIMACH_HOST_SYS}" | 253 | STAGING_BINDIR_CROSS = "${STAGING_DIR_NATIVE}${bindir_cross}/${MULTIMACH_HOST_SYS}" |
268 | STAGING_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${layout_libdir}" | 254 | STAGING_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${libdir_native}" |
269 | STAGING_INCDIR_NATIVE = "${STAGING_DIR_NATIVE}${layout_includedir}" | 255 | STAGING_INCDIR_NATIVE = "${STAGING_DIR_NATIVE}${includedir_native}" |
270 | STAGING_ETCDIR_NATIVE = "${STAGING_DIR_NATIVE}${layout_sysconfdir}" | 256 | STAGING_ETCDIR_NATIVE = "${STAGING_DIR_NATIVE}${sysconfdir_native}" |
271 | STAGING_DATADIR_NATIVE = "${STAGING_DIR_NATIVE}${layout_datadir}" | 257 | STAGING_DATADIR_NATIVE = "${STAGING_DIR_NATIVE}${datadir_native}" |
272 | 258 | ||
273 | # This should really be MULTIMACH_HOST_SYS but that breaks "all" and machine | 259 | # This should really be MULTIMACH_HOST_SYS but that breaks "all" and machine |
274 | # specific packages - hack around it for now. | 260 | # specific packages - hack around it for now. |
275 | STAGING_DIR_HOST = "${STAGING_DIR}/${BASEPKG_HOST_SYS}" | 261 | STAGING_DIR_HOST = "${STAGING_DIR}/${BASEPKG_HOST_SYS}" |
276 | STAGING_BINDIR = "${STAGING_DIR_HOST}${layout_bindir}" | 262 | STAGING_BINDIR = "${STAGING_DIR_HOST}${bindir}" |
277 | STAGING_LIBDIR = "${STAGING_DIR_HOST}${layout_libdir}" | 263 | STAGING_LIBDIR = "${STAGING_DIR_HOST}${libdir}" |
278 | STAGING_INCDIR = "${STAGING_DIR_HOST}${layout_includedir}" | 264 | STAGING_INCDIR = "${STAGING_DIR_HOST}${includedir}" |
279 | STAGING_DATADIR = "${STAGING_DIR_HOST}${layout_datadir}" | 265 | STAGING_DATADIR = "${STAGING_DIR_HOST}${datadir}" |
280 | STAGING_EXECPREFIXDIR = "${STAGING_DIR_HOST}${layout_exec_prefix}" | 266 | STAGING_EXECPREFIXDIR = "${STAGING_DIR_HOST}${exec_prefix}" |
281 | STAGING_LOADER_DIR = "${STAGING_DIR_HOST}/loader" | 267 | STAGING_LOADER_DIR = "${STAGING_DIR_HOST}/loader" |
282 | STAGING_FIRMWARE_DIR = "${STAGING_DIR_HOST}/firmware" | 268 | STAGING_FIRMWARE_DIR = "${STAGING_DIR_HOST}/firmware" |
283 | STAGING_PYDIR = "${STAGING_DIR}/lib/python2.4" | 269 | STAGING_PYDIR = "${STAGING_DIR}/lib/python2.4" |
@@ -367,7 +353,7 @@ EXTRA_IMAGEDEPENDS = "" | |||
367 | 353 | ||
368 | CROSS_DIR = "${TMPDIR}/cross/${BASE_PACKAGE_ARCH}" | 354 | CROSS_DIR = "${TMPDIR}/cross/${BASE_PACKAGE_ARCH}" |
369 | CROSS_DATADIR = "${CROSS_DIR}/share" | 355 | CROSS_DATADIR = "${CROSS_DIR}/share" |
370 | PATH_prepend = "${STAGING_BINDIR_CROSS}:${STAGING_DIR_NATIVE}${layout_sbindir}:${STAGING_BINDIR_NATIVE}:${CROSS_DIR}/bin:${STAGING_DIR_NATIVE}${layout_base_sbindir}:${STAGING_DIR_NATIVE}${layout_base_bindir}:" | 356 | PATH_prepend = "${STAGING_BINDIR_CROSS}:${STAGING_DIR_NATIVE}${sbindir_native}:${STAGING_BINDIR_NATIVE}:${CROSS_DIR}/${bindir_cross}:${STAGING_DIR_NATIVE}${base_sbindir_native}:${STAGING_DIR_NATIVE}/${base_bindir_native}:" |
371 | export PATH | 357 | export PATH |
372 | 358 | ||
373 | ################################################################## | 359 | ################################################################## |
@@ -418,7 +404,7 @@ export BUILD_CPPFLAGS = "-isystem${STAGING_INCDIR_NATIVE}" | |||
418 | BUILDSDK_CPPFLAGS = "-isystem${STAGING_INCDIR}" | 404 | BUILDSDK_CPPFLAGS = "-isystem${STAGING_INCDIR}" |
419 | export CPPFLAGS = "${TARGET_CPPFLAGS}" | 405 | export CPPFLAGS = "${TARGET_CPPFLAGS}" |
420 | export TARGET_CPPFLAGS = "" | 406 | export TARGET_CPPFLAGS = "" |
421 | #export TARGET_CPPFLAGS = "-isystem${STAGING_DIR_TARGET}${layout_includedir}" | 407 | #export TARGET_CPPFLAGS = "-isystem${STAGING_DIR_TARGET}${includedir}" |
422 | 408 | ||
423 | export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}" | 409 | export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}" |
424 | BUILDSDK_CFLAGS = "${BUILDSDK_CPPFLAGS} ${BUILD_OPTIMIZATION}" | 410 | BUILDSDK_CFLAGS = "${BUILDSDK_CPPFLAGS} ${BUILD_OPTIMIZATION}" |
@@ -439,8 +425,8 @@ BUILDSDK_LDFLAGS = "-L${STAGING_LIBDIR} \ | |||
439 | 425 | ||
440 | export LDFLAGS = "${TARGET_LDFLAGS}" | 426 | export LDFLAGS = "${TARGET_LDFLAGS}" |
441 | export TARGET_LDFLAGS = "-Wl,-O1" | 427 | export TARGET_LDFLAGS = "-Wl,-O1" |
442 | #export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${layout_libdir} \ | 428 | #export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${libdir} \ |
443 | # -Wl,-rpath-link,${STAGING_DIR_TARGET}${layout_libdir} \ | 429 | # -Wl,-rpath-link,${STAGING_DIR_TARGET}${libdir} \ |
444 | # -Wl,-O1" | 430 | # -Wl,-O1" |
445 | 431 | ||
446 | # Which flags to leave by strip-flags() in bin/build/oebuild.sh ? | 432 | # Which flags to leave by strip-flags() in bin/build/oebuild.sh ? |
@@ -575,7 +561,7 @@ SLOT = "0" | |||
575 | 561 | ||
576 | # Other | 562 | # Other |
577 | 563 | ||
578 | export PKG_CONFIG_DIR = "${STAGING_DIR}/${BASE_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}${layout_libdir}/pkgconfig" | 564 | export PKG_CONFIG_DIR = "${STAGING_DIR}/${BASE_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}${libdir}/pkgconfig" |
579 | export PKG_CONFIG_PATH = "${PKG_CONFIG_DIR}:${STAGING_DATADIR}/pkgconfig" | 565 | export PKG_CONFIG_PATH = "${PKG_CONFIG_DIR}:${STAGING_DATADIR}/pkgconfig" |
580 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR}/${BASE_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" | 566 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR}/${BASE_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" |
581 | export PKG_CONFIG_DISABLE_UNINSTALLED = "yes" | 567 | export PKG_CONFIG_DISABLE_UNINSTALLED = "yes" |