summaryrefslogtreecommitdiff
path: root/packages/binutils
diff options
context:
space:
mode:
authorTom Rini <trini@embeddedalley.com>2009-01-16 23:06:35 -0500
committerTom Rini <trini@embeddedalley.com>2009-01-16 23:06:35 -0500
commit23633fdd4b216a8117b203ec02d86a187f76616a (patch)
treea499282c00119ef0d163becdf95dfcb7c540ec63 /packages/binutils
parent09a97024fa2285c1af1449df2f04475b442ed34c (diff)
binutils-canadian-sdk: Add a binutils 2.18 for building Canadian SDKs
Diffstat (limited to 'packages/binutils')
-rw-r--r--packages/binutils/binutils-canadian-cross.inc25
-rw-r--r--packages/binutils/binutils-canadian-sdk_2.18.bb29
2 files changed, 54 insertions, 0 deletions
diff --git a/packages/binutils/binutils-canadian-cross.inc b/packages/binutils/binutils-canadian-cross.inc
new file mode 100644
index 0000000000..244c69ff8b
--- /dev/null
+++ b/packages/binutils/binutils-canadian-cross.inc
@@ -0,0 +1,25 @@
+SECTION = "devel"
+inherit canadian-cross
+DEPENDS += "flex-native bison-native"
+PROVIDES = "virtual/${TARGET_PREFIX}binutils"
+PACKAGES = ""
+EXTRA_OECONF = "--with-sysroot=${STAGING_DIR_HOST} \
+ --program-prefix=${TARGET_PREFIX} \
+ --enable-install-libbfd \
+ --disable-werror"
+
+do_stage () {
+ # ugly hack introduce to link our staging area up
+ mkdir -p ${exec_prefix}/${SDK_SYS}
+ ln -s ${STAGING_INCDIR} ${exec_prefix}/${SDK_SYS}/include
+ ln -s ${STAGING_LIBDIR} ${exec_prefix}/${SDK_SYS}/lib
+
+ oe_runmake install
+
+ # We don't really need these, so we'll remove them...
+ rm -rf ${exec_prefix}/${SDK_SYS}/lib/ldscripts
+}
+
+do_install () {
+ :
+}
diff --git a/packages/binutils/binutils-canadian-sdk_2.18.bb b/packages/binutils/binutils-canadian-sdk_2.18.bb
new file mode 100644
index 0000000000..cf27cd06f8
--- /dev/null
+++ b/packages/binutils/binutils-canadian-sdk_2.18.bb
@@ -0,0 +1,29 @@
+SECTION = "devel"
+require binutils_${PV}.bb
+inherit canadian-sdk
+
+DEPENDS="\
+ virtual/${HOST_PREFIX}binutils \
+ virtual/${HOST_PREFIX}gcc \
+ flex-native bison-native \
+"
+
+FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-${PV}"
+EXTRA_OECONF = "--with-sysroot=${prefix}/${TARGET_SYS} \
+ --program-prefix=${TARGET_PREFIX}"
+PR = "r3"
+
+FILES_${PN}-dbg += "${prefix}/${TARGET_SYS}/bin/.debug"
+
+do_stage() {
+ :
+}
+
+do_install () {
+ autotools_do_install
+
+ # 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}
+}