From patchwork Sun May 15 21:34:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [0/6] RFC Distro config changes Date: Sun, 15 May 2011 21:34:03 -0000 From: Khem Raj X-Patchwork-Id: 4093 Message-Id: <20110515213403.GB24670@sakrah.homelinux.org> To: Patches and discussions about the oe-core layer On (15/05/11 13:22), Khem Raj wrote: > On Wed, May 11, 2011 at 2:45 AM, Richard Purdie > wrote: > > On Tue, 2011-05-10 at 17:58 +0200, Koen Kooi wrote: > > +DEPLOY_DIR_append = "-uclibc" > > +STAGING_DIR_TARGET_append = "-uclibc" > > +STAGING_DIR_HOST_append = "-uclibc" > > +SSTATE_MANIFESTS_append = "-uclibc" > > > > this wont work. Since virtclasses empty out some of these vars e.g. native > resets STAGING_DIR_HOST but this will still append -uclibc to it since append > happens at the end Something like below can serve us better --- a/meta/conf/distro/include/tclibc-uclibc.inc +++ b/meta/conf/distro/include/tclibc-uclibc.inc @@ -21,10 +21,10 @@ 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" +DEPLOY_DIR_append = "${@["-uclibc", ""][oe.utils.inherits(d, 'native', 'nativesdk')]}" +STAGING_DIR_TARGET_append = "${@["-uclibc", ""][oe.utils.inherits(d, 'native', 'nativesdk')]}" +STAGING_DIR_HOST_append = "${@["-uclibc", ""][oe.utils.inherits(d, 'native', 'nativesdk')]}" +SSTATE_MANIFESTS_append = "${@["-uclibc", ""][oe.utils.inherits(d, 'native', 'nativesdk')]}" LIBC_DEPENDENCIES = "\ uclibc \