mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
gcc: Convert to use hardlinkdir
(From OE-Core rev: 204bc1f39030a3c0dd3eadadabb013aca8bb9cc6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -178,7 +178,7 @@ do_install () {
|
|||||||
case ${PN} in
|
case ${PN} in
|
||||||
*gcc-cross|*gcc-crosssdk)
|
*gcc-cross|*gcc-crosssdk)
|
||||||
dest=${D}/${includedir}/gcc-build-internal-${MULTIMACH_TARGET_SYS}
|
dest=${D}/${includedir}/gcc-build-internal-${MULTIMACH_TARGET_SYS}
|
||||||
cp -fpPR . $dest
|
hardlinkdir . $dest
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ do_configure () {
|
|||||||
export CXX="${CXX} -nostdinc++ -nostdlib++"
|
export CXX="${CXX} -nostdinc++ -nostdlib++"
|
||||||
mtarget=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
mtarget=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
||||||
target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
||||||
cp -fpPR ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget/* ${B}
|
hardlinkdir ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget ${B}
|
||||||
for d in libgcc ${RUNTIMETARGET}; do
|
for d in libgcc ${RUNTIMETARGET}; do
|
||||||
echo "Configuring $d"
|
echo "Configuring $d"
|
||||||
rm -rf ${B}/$target/$d/
|
rm -rf ${B}/$target/$d/
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ FILES_${PN}-dbg += "${base_libdir}/.debug/"
|
|||||||
do_configure () {
|
do_configure () {
|
||||||
target=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
target=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
||||||
install -d ${D}${base_libdir} ${D}${libdir}
|
install -d ${D}${base_libdir} ${D}${libdir}
|
||||||
cp -fpPR ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$target/* ${B}
|
hardlinkdir ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$target/ ${B}
|
||||||
mkdir -p ${B}/${BPN}
|
mkdir -p ${B}/${BPN}
|
||||||
cd ${B}/${BPN}
|
cd ${B}/${BPN}
|
||||||
chmod a+x ${S}/${BPN}/configure
|
chmod a+x ${S}/${BPN}/configure
|
||||||
|
|||||||
@@ -7,9 +7,7 @@ EXTRA_OECONF_PATHS = " \
|
|||||||
do_configure () {
|
do_configure () {
|
||||||
mtarget=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
mtarget=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
||||||
target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
||||||
#cp -fpPR ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget/* ${B}
|
hardlinkdir ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget ${B}
|
||||||
(cd ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget/; find . -print0 | cpio --null -pdlu ${B})
|
|
||||||
(cd ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget/; find . -type l -print0 | cpio -pd0mLu --no-preserve-owner ${B})
|
|
||||||
|
|
||||||
echo "Configuring libgfortran"
|
echo "Configuring libgfortran"
|
||||||
rm -rf ${B}/$target/libgfortran/
|
rm -rf ${B}/$target/libgfortran/
|
||||||
|
|||||||
Reference in New Issue
Block a user