summaryrefslogtreecommitdiff
path: root/packages/binutils/binutils-cross-sdk.inc
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2008-03-15 11:19:23 +0000
committerRichard Purdie <rpurdie@rpsys.net>2008-03-15 11:19:23 +0000
commit236f86e711d829bdb2d7adf5d593bcfe70665211 (patch)
tree0e164595c9c0d09b0963d8083d5e8a78b113f4c4 /packages/binutils/binutils-cross-sdk.inc
parent5df1b7e325b0e48385cf69fb2b1e64f06ad029ef (diff)
binutils-cross-sdk.inc: Create common binutils sdk .inc file with correct sysroot options and use for all versions
Diffstat (limited to 'packages/binutils/binutils-cross-sdk.inc')
-rw-r--r--packages/binutils/binutils-cross-sdk.inc25
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/binutils/binutils-cross-sdk.inc b/packages/binutils/binutils-cross-sdk.inc
new file mode 100644
index 0000000000..b545083d94
--- /dev/null
+++ b/packages/binutils/binutils-cross-sdk.inc
@@ -0,0 +1,25 @@
+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}"
+
+do_stage() {
+ :
+}
+
+do_install () {
+ autotools_do_install
+
+ # Fix the ${prefix}/${TARGET_SYS}/bin/* files to be symlinks
+ rm ${D}${prefix}/${TARGET_SYS}/bin/.debug -Rf
+ rm ${D}${prefix}/${TARGET_SYS}/bin/*
+ for l in ${D}${bindir}/*; do
+ ln -sf "${bindir}/`basename $l`" "${D}${prefix}/${TARGET_SYS}/bin/`basename $l | sed -e 's,${TARGET_PREFIX},,'`"
+ done
+
+ # 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}
+}