summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2013-01-25 20:42:51 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-27 13:46:39 +0000
commit0b8fe539928c7a61ca01a4a0a0f54df47164ac6c (patch)
treea5ef97be439d7f32430cd6d87c12f95f6b9ceee0 /meta/recipes-devtools
parent5c2efbaad15a8430b4a02f3fcffd92578e1bb1a3 (diff)
downloadopenembedded-core-0b8fe539928c7a61ca01a4a0a0f54df47164ac6c.tar.gz
openembedded-core-0b8fe539928c7a61ca01a4a0a0f54df47164ac6c.tar.bz2
openembedded-core-0b8fe539928c7a61ca01a4a0a0f54df47164ac6c.zip
gcc-configure-runtime: always remove info/dir
* move libgomp.info removal also outside that for cycle, can be removed outside if exists * also use infodir variable instead of ${datadir}/info Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/gcc/gcc-configure-runtime.inc8
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
index 1c9155fdb9..a9f77d9b64 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
@@ -41,12 +41,10 @@ do_install () {
for d in ${RUNTIMETARGET}; do
cd ${B}/$target/$d/
oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/$target/$d/ install
- if [ "$d" = "libgomp" ]; then
- rm -rf ${D}${datadir}/info/libgomp.info ${D}${datadir}/info/dir
- rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude
- rmdir --ignore-fail-on-non-empty -p ${D}${datadir}/info
- fi
done
+ rm -rf ${D}${infodir}/libgomp.info ${D}${infodir}/dir
+ rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude
+ rmdir --ignore-fail-on-non-empty -p ${D}${infodir}
chown -R root:root ${D}
}