From patchwork Mon May 16 06:04:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/2] tclibc-uclibc.inc: Append -uclibc only to target recipes Date: Mon, 16 May 2011 06:04:21 -0000 From: Khem Raj X-Patchwork-Id: 4103 Message-Id: To: OE core Do not define DEPLOY_DIR_IMAGE Append -uclibc to STAGING_DIR_TARGET only for target recipe and cross recipes Append -uclibc to STAGING_DIR_HOST only for target recipes. These changes make sure that we still share the native sysroot Signed-off-by: Khem Raj --- meta/conf/distro/include/tclibc-uclibc.inc | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/meta/conf/distro/include/tclibc-uclibc.inc b/meta/conf/distro/include/tclibc-uclibc.inc index 27f6ec6..4bd313f 100644 --- a/meta/conf/distro/include/tclibc-uclibc.inc +++ b/meta/conf/distro/include/tclibc-uclibc.inc @@ -20,10 +20,9 @@ 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" +STAGING_DIR_TARGET_append = "${@['-uclibc', ''][oe.utils.inherits(d, 'native', 'nativesdk')]}" +STAGING_DIR_HOST_append = "${@['-uclibc', ''][oe.utils.inherits(d, 'native', 'nativesdk', 'cross', 'crosssdk')]}" SSTATE_MANIFESTS_append = "-uclibc" LIBC_DEPENDENCIES = "\