summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/packages/binutils/binutils-cross_2.18.bb32
-rw-r--r--meta/packages/binutils/binutils_2.18.bb11
2 files changed, 43 insertions, 0 deletions
diff --git a/meta/packages/binutils/binutils-cross_2.18.bb b/meta/packages/binutils/binutils-cross_2.18.bb
new file mode 100644
index 0000000000..1f2f43ecf8
--- /dev/null
+++ b/meta/packages/binutils/binutils-cross_2.18.bb
@@ -0,0 +1,32 @@
1SECTION = "devel"
2require binutils_${PV}.bb
3inherit cross
4DEPENDS += "flex-native bison-native"
5PROVIDES = "virtual/${TARGET_PREFIX}binutils"
6FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-${PV}"
7PACKAGES = ""
8EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \
9 --program-prefix=${TARGET_PREFIX}"
10
11do_stage () {
12 oe_runmake install
13
14 # We don't really need these, so we'll remove them...
15 rm -rf ${CROSS_DIR}/lib/ldscripts
16 rm -rf ${CROSS_DIR}/share/info
17 rm -rf ${CROSS_DIR}/share/locale
18 rm -rf ${CROSS_DIR}/share/man
19 rmdir ${CROSS_DIR}/share || :
20 rmdir ${CROSS_DIR}/${libdir}/gcc-lib || :
21 rmdir ${CROSS_DIR}/${libdir} || :
22 rmdir ${CROSS_DIR}/${prefix} || :
23
24 # We want to move this into the target specific location
25 mkdir -p ${CROSS_DIR}/${TARGET_SYS}/lib
26 mv -f ${CROSS_DIR}/lib/libiberty.a ${CROSS_DIR}/${TARGET_SYS}/lib
27 rmdir ${CROSS_DIR}/lib || :
28}
29
30do_install () {
31 :
32}
diff --git a/meta/packages/binutils/binutils_2.18.bb b/meta/packages/binutils/binutils_2.18.bb
new file mode 100644
index 0000000000..a9b4d995b2
--- /dev/null
+++ b/meta/packages/binutils/binutils_2.18.bb
@@ -0,0 +1,11 @@
1require binutils.inc
2
3SRC_URI = "\
4 ${GNU_MIRROR}/binutils/binutils-${PV}.tar.bz2 \
5 file://binutils-2.16.91.0.6-objcopy-rename-errorcode.patch;patch=1 \
6 file://binutils-uclibc-100-uclibc-conf.patch;patch=1 \
7 file://110-arm-eabi-conf.patch;patch=1 \
8 file://binutils-uclibc-300-001_ld_makefile_patch.patch;patch=1 \
9 file://binutils-uclibc-300-006_better_file_error.patch;patch=1 \
10 file://binutils-uclibc-300-012_check_ldrunpath_length.patch;patch=1 \
11 "