diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-17 12:48:29 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-19 23:49:54 +0100 |
commit | 624263c82d1dabb55862a6532a2df2b8a4b541dc (patch) | |
tree | c50de744d2f7ee742ebf3276f492de56b04df728 /meta | |
parent | 09862c423921e5272dedba111e0b6057dcd37d12 (diff) | |
download | poky-624263c82d1dabb55862a6532a2df2b8a4b541dc.tar.gz |
distro/defaultsetup.conf: Append TCLIBC to TMPDIR by default
The current solutions to share uclibc, eglibc and glibc builds in the
same tree all have various issues associated with them. Appending the
suffix to TMPDIR seems like the best solution since sstate (which
defaults to outside TMPDIR) will allow reuse of any components.
This avoids messy changes to the core with other approaches to this
problem inevitably entail, usually in code where this abstraction isn;'t
logically best placed.
(From OE-Core rev: f2528db8f466a21ca207b310fffa7b05884b4579)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/conf/distro/defaultsetup.conf | 4 | ||||
-rw-r--r-- | meta/conf/distro/include/tclibc-uclibc.inc | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/meta/conf/distro/defaultsetup.conf b/meta/conf/distro/defaultsetup.conf index 9f12f4da11..072f03c902 100644 --- a/meta/conf/distro/defaultsetup.conf +++ b/meta/conf/distro/defaultsetup.conf | |||
@@ -12,6 +12,10 @@ require conf/distro/include/tcmode-${TCMODE}.inc | |||
12 | TCLIBC ?= "eglibc" | 12 | TCLIBC ?= "eglibc" |
13 | require conf/distro/include/tclibc-${TCLIBC}.inc | 13 | require conf/distro/include/tclibc-${TCLIBC}.inc |
14 | 14 | ||
15 | # Allow single libc distros to disable this code | ||
16 | TCLIBCAPPEND ?= "-${TCLIBC}" | ||
17 | TMPDIR_append = "${TCLIBCAPPEND}" | ||
18 | |||
15 | CACHE = "${TMPDIR}/cache/${TCMODE}-${TCLIBC}${@['', '/' + str(bb.data.getVar('MACHINE', d, 1))][bool(bb.data.getVar('MACHINE', d, 1))]}${@['', '/' + str(bb.data.getVar('SDKMACHINE', d, 1))][bool(bb.data.getVar('SDKMACHINE', d, 1))]}" | 19 | CACHE = "${TMPDIR}/cache/${TCMODE}-${TCLIBC}${@['', '/' + str(bb.data.getVar('MACHINE', d, 1))][bool(bb.data.getVar('MACHINE', d, 1))]}${@['', '/' + str(bb.data.getVar('SDKMACHINE', d, 1))][bool(bb.data.getVar('SDKMACHINE', d, 1))]}" |
16 | 20 | ||
17 | USER_CLASSES ?= "" | 21 | USER_CLASSES ?= "" |
diff --git a/meta/conf/distro/include/tclibc-uclibc.inc b/meta/conf/distro/include/tclibc-uclibc.inc index 27f6ec672e..83418d6677 100644 --- a/meta/conf/distro/include/tclibc-uclibc.inc +++ b/meta/conf/distro/include/tclibc-uclibc.inc | |||
@@ -20,12 +20,6 @@ CXXFLAGS += "-fvisibility-inlines-hidden" | |||
20 | 20 | ||
21 | IMAGE_LINGUAS = "" | 21 | IMAGE_LINGUAS = "" |
22 | 22 | ||
23 | DEPLOY_DIR_IMAGE = "${TMPDIR}/deploy/images" | ||
24 | DEPLOY_DIR_append = "-uclibc" | ||
25 | STAGING_DIR_TARGET_append = "-uclibc" | ||
26 | STAGING_DIR_HOST_append = "-uclibc" | ||
27 | SSTATE_MANIFESTS_append = "-uclibc" | ||
28 | |||
29 | LIBC_DEPENDENCIES = "\ | 23 | LIBC_DEPENDENCIES = "\ |
30 | uclibc \ | 24 | uclibc \ |
31 | uclibc-dbg \ | 25 | uclibc-dbg \ |