]> code.ossystems Code Review - openembedded-core.git/commitdiff
distro/defaultsetup.conf: Append TCLIBC to TMPDIR by default
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 May 2011 10:48:29 +0000 (12:48 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 May 2011 22:49:37 +0000 (23:49 +0100)
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>
meta/conf/distro/defaultsetup.conf
meta/conf/distro/include/tclibc-uclibc.inc

index 9f12f4da11e5b1ee76254c4d2011ef2ce943353b..072f03c90258d148947927bb1b4309e8e71ebc3c 100644 (file)
@@ -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 ?= ""
index 27f6ec672e283f68142ae0a484f2eff034221190..83418d66777cc51a0089270ae01c2fcb146b8fc7 100644 (file)
@@ -20,12 +20,6 @@ CXXFLAGS += "-fvisibility-inlines-hidden"
 
 IMAGE_LINGUAS = ""
 
-DEPLOY_DIR_IMAGE = "${TMPDIR}/deploy/images"
-DEPLOY_DIR_append = "-uclibc"
-STAGING_DIR_TARGET_append = "-uclibc"
-STAGING_DIR_HOST_append = "-uclibc"
-SSTATE_MANIFESTS_append = "-uclibc"
-
 LIBC_DEPENDENCIES = "\
     uclibc \
     uclibc-dbg \