gcc-runtime: Make sure multiple target builds work correctly
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
6118da2a7f
commit
2f7b3e3f31
|
@ -13,7 +13,7 @@ RUNTIMETARGET = "libgcc libssp libstdc++-v3"
|
||||||
# libgfortran
|
# libgfortran
|
||||||
|
|
||||||
do_configure () {
|
do_configure () {
|
||||||
cp ${STAGING_DIR_NATIVE}${prefix_native}/include/gcc-build-internal/* ${S}/gcc
|
cp ${STAGING_DIR_NATIVE}${prefix_native}/include/gcc-build-internal-${TARGET_SYS}/* ${S}/gcc
|
||||||
for d in ${RUNTIMETARGET}; do
|
for d in ${RUNTIMETARGET}; do
|
||||||
echo "Configuring $d"
|
echo "Configuring $d"
|
||||||
mkdir -p ${B}/$d/
|
mkdir -p ${B}/$d/
|
||||||
|
|
|
@ -20,14 +20,14 @@ do_install () {
|
||||||
if [ "${PN}" == "gcc-cross" -o "${PN}" == "gcc-crosssdk" ]; then
|
if [ "${PN}" == "gcc-cross" -o "${PN}" == "gcc-crosssdk" ]; then
|
||||||
install -d ${D}${includedir}/gcc-build-internal
|
install -d ${D}${includedir}/gcc-build-internal
|
||||||
for f in *.h *.c libgcc.mvars; do
|
for f in *.h *.c libgcc.mvars; do
|
||||||
cp ${B}/gcc/$f ${D}${includedir}/gcc-build-internal/
|
cp ${B}/gcc/$f ${D}${includedir}/gcc-build-internal-${TARGET_SYS}/
|
||||||
done
|
done
|
||||||
# Special for PowerPC (and possibly others)
|
# Special for PowerPC (and possibly others)
|
||||||
if [ -f ${B}/gcc/tramp.S ]; then
|
if [ -f ${B}/gcc/tramp.S ]; then
|
||||||
cp ${B}/gcc/*.S ${D}${includedir}/gcc-build-internal/
|
cp ${B}/gcc/*.S ${D}${includedir}/gcc-build-internal-${TARGET_SYS}/
|
||||||
fi
|
fi
|
||||||
if [ -f libgcc.mvars]; then
|
if [ -f libgcc.mvars]; then
|
||||||
cp ${B}/gcc/libgcc.mvars ${D}${includedir}/gcc-build-internal/
|
cp ${B}/gcc/libgcc.mvars ${D}${includedir}/gcc-build-internal-${TARGET_SYS}/
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue