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:37 +0100 |
commit | f2528db8f466a21ca207b310fffa7b05884b4579 (patch) | |
tree | ee1783e442aa3ca505300f12eaae241bd4f25453 /meta/conf/distro/defaultsetup.conf | |
parent | 99dbb6512e057f6cb02d18a1be7c51439c1bfa30 (diff) | |
download | openembedded-core-f2528db8f466a21ca207b310fffa7b05884b4579.tar.gz openembedded-core-f2528db8f466a21ca207b310fffa7b05884b4579.tar.bz2 openembedded-core-f2528db8f466a21ca207b310fffa7b05884b4579.zip |
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/distro/defaultsetup.conf')
-rw-r--r-- | meta/conf/distro/defaultsetup.conf | 4 |
1 files changed, 4 insertions, 0 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 TCLIBC ?= "eglibc" require conf/distro/include/tclibc-${TCLIBC}.inc +# Allow single libc distros to disable this code +TCLIBCAPPEND ?= "-${TCLIBC}" +TMPDIR_append = "${TCLIBCAPPEND}" + 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))]}" USER_CLASSES ?= "" |