mirror of
https://git.yoctoproject.org/poky
synced 2026-02-24 02:19:39 +01:00
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1528 311d38ba-8fff-0310-9ca6-ca027cbcb966
35 lines
983 B
PHP
35 lines
983 B
PHP
inherit sdk
|
|
DEPENDS += "flex-native bison-native"
|
|
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-${PV}"
|
|
EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \
|
|
--program-prefix=${TARGET_PREFIX}"
|
|
|
|
|
|
FILES_binutils-cross-sdk-dbg = ""
|
|
do_install () {
|
|
autotools_do_install
|
|
|
|
# We don't really need these, so we'll remove them...
|
|
rm -rf ${D}${libdir}/ldscripts
|
|
|
|
# Fix the /usr/${TARGET_SYS}/bin/* links
|
|
for l in ${D}${prefix}/${TARGET_SYS}/bin/*; do
|
|
rm -f $l
|
|
ln -sf `echo ${prefix}/${TARGET_SYS}/bin \
|
|
| tr -s / \
|
|
| sed -e 's,^/,,' -e 's,[^/]*,..,g'`${bindir}/${TARGET_PREFIX}`basename $l` $l
|
|
done
|
|
|
|
# Install the libiberty header
|
|
install -d ${D}${includedir}
|
|
install -m 644 ${S}/include/ansidecl.h ${D}${includedir}
|
|
install -m 644 ${S}/include/libiberty.h ${D}${includedir}
|
|
|
|
cd ${D}${bindir}
|
|
|
|
# Symlinks for ease of running these on the native target
|
|
for p in ${TARGET_SYS}-* ; do
|
|
ln -sf $p `echo $p | sed -e s,${TARGET_SYS}-,,`
|
|
done
|
|
}
|