mirror of
https://git.yoctoproject.org/poky
synced 2026-04-13 14:02:21 +02:00
libgcc_4.6: Package libgcov nativesdk correctly
(From OE-Core rev: b32e26310d5b635b7ef1a6408dc14d400d799477) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -20,30 +20,30 @@ FILES_${PN}-dev = " \
|
||||
${libdir}/${TARGET_SYS}/${BINV}/*crt* \
|
||||
${libdir}/${TARGET_SYS}/${BINV}/libgcc*"
|
||||
FILES_libgcov${PKGSUFFIX}-dev = " \
|
||||
${libdir}/${TARGET_SYS}/${BINV}/libgcov.a"
|
||||
|
||||
${libdir}/${TARGET_SYS}/${BINV}/libgcov.a \
|
||||
"
|
||||
FILES_${PN}-dbg += "${base_libdir}/.debug/"
|
||||
|
||||
do_configure () {
|
||||
target=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-nativesdk##`
|
||||
install -d ${D}${base_libdir} ${D}${libdir}
|
||||
cp -fpPR ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$target/* ${B}
|
||||
mkdir -p ${B}/${PN}
|
||||
cd ${B}/${PN}
|
||||
chmod a+x ${S}/${PN}/configure
|
||||
${S}/${PN}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF}
|
||||
mkdir -p ${B}/${BPN}
|
||||
cd ${B}/${BPN}
|
||||
chmod a+x ${S}/${BPN}/configure
|
||||
${S}/${BPN}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF}
|
||||
}
|
||||
|
||||
do_compile () {
|
||||
target=`echo ${TARGET_SYS} | sed -e s#-nativesdk##`
|
||||
cd ${B}/${PN}
|
||||
oe_runmake MULTIBUILDTOP=${B}/$target/${PN}/
|
||||
cd ${B}/${BPN}
|
||||
oe_runmake MULTIBUILDTOP=${B}/$target/${BPN}/
|
||||
}
|
||||
|
||||
do_install () {
|
||||
target=`echo ${TARGET_SYS} | sed -e s#-nativesdk##`
|
||||
cd ${B}/${PN}
|
||||
oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/$target/${PN}/ install
|
||||
cd ${B}/${BPN}
|
||||
oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/$target/${BPN}/ install
|
||||
|
||||
# Move libgcc_s into /lib
|
||||
mkdir -p ${D}${base_libdir}
|
||||
|
||||
Reference in New Issue
Block a user