diff options
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils_2.23.2.bb')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils_2.23.2.bb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils_2.23.2.bb b/meta/recipes-devtools/binutils/binutils_2.23.2.bb new file mode 100644 index 0000000000..1523e87273 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils_2.23.2.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | require binutils.inc | ||
2 | require binutils-${PV}.inc | ||
3 | |||
4 | DEPENDS += "flex bison zlib" | ||
5 | |||
6 | EXTRA_OECONF += "--with-sysroot=/ \ | ||
7 | --enable-install-libbfd \ | ||
8 | --enable-shared \ | ||
9 | " | ||
10 | |||
11 | EXTRA_OECONF_class-native = "--enable-targets=all --enable-64-bit-bfd --enable-install-libbfd" | ||
12 | |||
13 | do_install_class-native () { | ||
14 | autotools_do_install | ||
15 | |||
16 | # Install the libiberty header | ||
17 | install -d ${D}${includedir} | ||
18 | install -m 644 ${S}/include/ansidecl.h ${D}${includedir} | ||
19 | install -m 644 ${S}/include/libiberty.h ${D}${includedir} | ||
20 | |||
21 | # We only want libiberty, libbfd and libopcodes | ||
22 | rm -rf ${D}${bindir} | ||
23 | rm -rf ${D}${prefix}/${TARGET_SYS} | ||
24 | rm -rf ${D}${prefix}/lib/ldscripts | ||
25 | rm -rf ${D}${prefix}/share/info | ||
26 | rm -rf ${D}${prefix}/share/locale | ||
27 | rm -rf ${D}${prefix}/share/man | ||
28 | rmdir ${D}${prefix}/share || : | ||
29 | rmdir ${D}/${libdir}/gcc-lib || : | ||
30 | rmdir ${D}/${libdir}64/gcc-lib || : | ||
31 | rmdir ${D}/${libdir} || : | ||
32 | rmdir ${D}/${libdir}64 || : | ||
33 | } | ||
34 | |||
35 | BBCLASSEXTEND = "native" | ||