diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2011-01-18 16:18:42 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-25 12:25:46 +0000 |
commit | 7f41f1a8888a1f7f091101d19b9b0c4787f5a6fc (patch) | |
tree | ba2afa60ca17a84860545e0c871ffce34b57839a /meta/conf/bitbake.conf | |
parent | b0df35f47fb79dc149504bd66d1186b3276f9510 (diff) | |
download | poky-7f41f1a8888a1f7f091101d19b9b0c4787f5a6fc.tar.gz |
bitbake: machine specific sysroots implementation
This commit changes the sysroots path to be machine specific.
Changes includes:
1) STAGING_DIR_TARGET and STRAGING_DIR_HOST points to machine specific
paths.
2) task stamp files. Adding ${MACHINE} info into stamp files for
do_populate_sysroots and do_package tasks. Add a BB_STAMPTASK_BLACKLIST
to keep native, nativesdk, crosssdk, and cross-canadian stamp unchanged.
3) siteconfig path. Separate the site config path for different machines
to avoid one machine adopting the cache file of another machine.
4) sstate. Add machine name to sstate manifest file.
Change relocation code for sstate paths since sysroot is machine.
Keep native, nativesdk, crosssdk, and cross-canadian unchanged.
5) toolchain scripts. Change the environment path to point to machine
specific sysroots in toolchain scripts bbclass.
6) Relocate la files when populating to a different machine of the same
architecture.
7) Exclude STAGING_DIR_TARGET and STAGING_DIR_HOST parameter from sstate
siginfo since they contain ${MACHINE} information.
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r-- | meta/conf/bitbake.conf | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 1c6c7e5f12..db09c75191 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -280,7 +280,7 @@ STAGING_DATADIR_NATIVE = "${STAGING_DIR_NATIVE}${datadir_native}" | |||
280 | 280 | ||
281 | # This should really be MULTIMACH_HOST_SYS but that breaks "all" and machine | 281 | # This should really be MULTIMACH_HOST_SYS but that breaks "all" and machine |
282 | # specific packages - hack around it for now. | 282 | # specific packages - hack around it for now. |
283 | STAGING_DIR_HOST = "${STAGING_DIR}/${BASEPKG_HOST_SYS}" | 283 | STAGING_DIR_HOST = "${STAGING_DIR}/${MACHINE}" |
284 | STAGING_BINDIR = "${STAGING_DIR_HOST}${bindir}" | 284 | STAGING_BINDIR = "${STAGING_DIR_HOST}${bindir}" |
285 | STAGING_LIBDIR = "${STAGING_DIR_HOST}${libdir}" | 285 | STAGING_LIBDIR = "${STAGING_DIR_HOST}${libdir}" |
286 | STAGING_INCDIR = "${STAGING_DIR_HOST}${includedir}" | 286 | STAGING_INCDIR = "${STAGING_DIR_HOST}${includedir}" |
@@ -292,7 +292,7 @@ STAGING_PYDIR = "${STAGING_DIR}/lib/python2.4" | |||
292 | 292 | ||
293 | # This should really be MULTIMACH_TARGET_SYS but that breaks "all" and machine | 293 | # This should really be MULTIMACH_TARGET_SYS but that breaks "all" and machine |
294 | # specific packages - hack around it for now. | 294 | # specific packages - hack around it for now. |
295 | STAGING_DIR_TARGET = "${STAGING_DIR}/${BASEPKG_TARGET_SYS}" | 295 | STAGING_DIR_TARGET = "${STAGING_DIR}/${MACHINE}" |
296 | STAGING_DIR_TCBOOTSTRAP = "${STAGING_DIR_TARGET}-tcbootstrap" | 296 | STAGING_DIR_TCBOOTSTRAP = "${STAGING_DIR_TARGET}-tcbootstrap" |
297 | 297 | ||
298 | # Setting DEPLOY_DIR outside of TMPDIR is helpful, when you are using | 298 | # Setting DEPLOY_DIR outside of TMPDIR is helpful, when you are using |
@@ -316,7 +316,7 @@ SDKPATHNATIVE = "${SDKPATH}/sysroots/${SDK_SYS}" | |||
316 | ################################################################## | 316 | ################################################################## |
317 | 317 | ||
318 | OLDEST_KERNEL = "2.4.0" | 318 | OLDEST_KERNEL = "2.4.0" |
319 | STAGING_KERNEL_DIR = "${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/kernel" | 319 | STAGING_KERNEL_DIR = "${STAGING_DIR_HOST}/kernel" |
320 | 320 | ||
321 | ################################################################## | 321 | ################################################################## |
322 | # Specific image creation and rootfs population info. | 322 | # Specific image creation and rootfs population info. |
@@ -601,10 +601,10 @@ SLOT = "0" | |||
601 | 601 | ||
602 | # Other | 602 | # Other |
603 | 603 | ||
604 | export PKG_CONFIG_DIR = "${STAGING_DIR}/${BASE_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}${libdir}/pkgconfig" | 604 | export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}/${libdir}/pkgconfig" |
605 | export PKG_CONFIG_PATH = "${PKG_CONFIG_DIR}:${STAGING_DATADIR}/pkgconfig" | 605 | export PKG_CONFIG_PATH = "${PKG_CONFIG_DIR}:${STAGING_DATADIR}/pkgconfig" |
606 | export PKG_CONFIG_LIBDIR = "${PKG_CONFIG_DIR}" | 606 | export PKG_CONFIG_LIBDIR = "${PKG_CONFIG_DIR}" |
607 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR}/${BASE_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" | 607 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" |
608 | export PKG_CONFIG_DISABLE_UNINSTALLED = "yes" | 608 | export PKG_CONFIG_DISABLE_UNINSTALLED = "yes" |
609 | 609 | ||
610 | export QMAKE_MKSPEC_PATH = "${STAGING_DATADIR_NATIVE}/qmake" | 610 | export QMAKE_MKSPEC_PATH = "${STAGING_DATADIR_NATIVE}/qmake" |
@@ -735,5 +735,5 @@ TRANSLATED_TARGET_ARCH ??= ${TARGET_ARCH} | |||
735 | # Setup our default hash policy | 735 | # Setup our default hash policy |
736 | BB_SIGNATURE_HANDLER ?= "basic" | 736 | BB_SIGNATURE_HANDLER ?= "basic" |
737 | BB_HASHTASK_WHITELIST ?= "(.*-cross$|.*-native$|.*-cross-initial$|.*-cross-intermediate$|^virtual:native:.*|^virtual:nativesdk:.*)" | 737 | BB_HASHTASK_WHITELIST ?= "(.*-cross$|.*-native$|.*-cross-initial$|.*-cross-intermediate$|^virtual:native:.*|^virtual:nativesdk:.*)" |
738 | BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH DL_DIR SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM USER FILESPATH USERNAME" | 738 | BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH DL_DIR SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM USER FILESPATH USERNAME STAGING_DIR_HOST STAGING_DIR_TARGET" |
739 | 739 | ||