summaryrefslogtreecommitdiff
path: root/meta/packages/binutils/binutils-cross-sdk.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-01-24 13:43:10 +0000
committerRichard Purdie <richard@openedhand.com>2008-01-24 13:43:10 +0000
commit913adea0a2905a7c589da4357f929b15c1e41734 (patch)
tree9d1bc311deb84ba4b7d0c51f7cdfca8b556549e0 /meta/packages/binutils/binutils-cross-sdk.inc
parent9519cc59d2151975e9aeed99979655badc140728 (diff)
downloadopenembedded-core-913adea0a2905a7c589da4357f929b15c1e41734.tar.gz
openembedded-core-913adea0a2905a7c589da4357f929b15c1e41734.tar.bz2
openembedded-core-913adea0a2905a7c589da4357f929b15c1e41734.zip
binutils: Factor common sdk code into binutils-cross-sdk.inc
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3580 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/binutils/binutils-cross-sdk.inc')
-rw-r--r--meta/packages/binutils/binutils-cross-sdk.inc20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/packages/binutils/binutils-cross-sdk.inc b/meta/packages/binutils/binutils-cross-sdk.inc
new file mode 100644
index 0000000000..6e59e9e569
--- /dev/null
+++ b/meta/packages/binutils/binutils-cross-sdk.inc
@@ -0,0 +1,20 @@
+inherit sdk
+DEPENDS += "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}"
+
+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}
+}