blob: ba3e6b5e5bab4e0f0c08f0671642e3635628fd78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
SECTION = "devel"
inherit cross
DEPENDS += "flex-native bison-native"
PROVIDES = "virtual/${TARGET_PREFIX}binutils"
PACKAGES = ""
EXTRA_OECONF = "--with-sysroot=${STAGING_DIR_TARGET} \
--program-prefix=${TARGET_PREFIX} \
--disable-werror \
"
do_install () {
oe_runmake 'DESTDIR=${D}' install
rm -rf ${D}${prefix}/${TARGET_SYS}
# We don't really need these, so we'll remove them...
rm -rf ${D}${prefix}/lib/ldscripts
rm -rf ${D}${prefix}/share/info
rm -rf ${D}${prefix}/share/locale
rm -rf ${D}${prefix}/share/man
rmdir ${D}${prefix}/share || :
rmdir ${D}${prefix}/${libdir}/gcc-lib || :
rmdir ${D}${prefix}/${libdir}64/gcc-lib || :
rmdir ${D}${prefix}/${libdir} || :
rmdir ${D}${prefix}/${libdir}64 || :
rmdir ${D}${prefix}/${prefix} || :
# Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are
# found.
dest=${D}${prefix}/${TARGET_SYS}${base_bindir_native}
install -d $dest
for t in ar as ld nm objcopy objdump ranlib strip; do
ln -sf ../..${base_bindir_native}/${TARGET_PREFIX}$t $dest/$t
done
}
|