From: Richard Purdie Date: Tue, 30 Mar 2010 09:43:15 +0000 (+0100) Subject: gcc-package-cross.inc: Only stage gcc-runtime headers for gcc-cross X-Git-Tag: yocto-4.0~45761 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0cf4a982444871ae28683986546f3590b752c651;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git gcc-package-cross.inc: Only stage gcc-runtime headers for gcc-cross Signed-off-by: Richard Purdie --- diff --git a/meta/packages/gcc/gcc-package-cross.inc b/meta/packages/gcc/gcc-package-cross.inc index 6c565048288..588427ef85d 100644 --- a/meta/packages/gcc/gcc-package-cross.inc +++ b/meta/packages/gcc/gcc-package-cross.inc @@ -17,8 +17,10 @@ do_install () { done # gcc-runtime requires some headers, we stash them here - install -d ${D}${includedir}/gcc-build-internal - for f in auto-host.h gcov-iov.h gthr-default.h libgcc.mvars options.h tconfig.h tm.h; do - cp ${B}/gcc/$f ${D}${includedir}/gcc-build-internal/ - done + if [ "${PN}" == "gcc-cross" ]; then + install -d ${D}${includedir}/gcc-build-internal + for f in auto-host.h gcov-iov.h gthr-default.h libgcc.mvars options.h tconfig.h tm.h; do + cp ${B}/gcc/$f ${D}${includedir}/gcc-build-internal/ + done + fi }