summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorTom Rini <trini@embeddedalley.com>2009-04-22 21:28:22 -0400
committerTom Rini <trini@embeddedalley.com>2009-04-22 21:28:22 -0400
commit1e6c98c990e5bc2ee6e5b9c5ad409699869ad3bc (patch)
tree5218fa2a14f9e42ea70cc237f1f080697984c369 /recipes
parent98dd5d2a73056f89ba0d7ff169e2c24f892bcb9e (diff)
binutils-canadian-sdk: Add 2.18.50.7 (as this is a popular default)
Diffstat (limited to 'recipes')
-rw-r--r--recipes/binutils/binutils-canadian-sdk_2.18.50.0.7.bb32
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes/binutils/binutils-canadian-sdk_2.18.50.0.7.bb b/recipes/binutils/binutils-canadian-sdk_2.18.50.0.7.bb
new file mode 100644
index 0000000000..e44e7b7144
--- /dev/null
+++ b/recipes/binutils/binutils-canadian-sdk_2.18.50.0.7.bb
@@ -0,0 +1,32 @@
+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}"
+# On MinGW hosts we want to prepend a drive letter, in ${SDK_REALPATH_MINGW}
+# to the sysroot path.
+SYSROOT = "${@['${SDK_REALPATH}/${TARGET_SYS}', '${SDK_REALPATH_MINGW}${SDK_REALPATH}/${TARGET_SYS}'][bb.data.getVar('SDK_OS', d, 1) in ['mingw32', 'mingw64']]}"
+EXTRA_OECONF = "--with-sysroot=${SYSROOT} \
+ --program-prefix=${TARGET_PREFIX}"
+PR = "r4"
+
+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}
+}