summaryrefslogtreecommitdiffstats
path: root/meta/packages/binutils/binutils-cross-canadian.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/binutils/binutils-cross-canadian.inc')
-rw-r--r--meta/packages/binutils/binutils-cross-canadian.inc24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/packages/binutils/binutils-cross-canadian.inc b/meta/packages/binutils/binutils-cross-canadian.inc
new file mode 100644
index 0000000000..8d21db70ee
--- /dev/null
+++ b/meta/packages/binutils/binutils-cross-canadian.inc
@@ -0,0 +1,24 @@
1inherit cross-canadian
2DEPENDS = "flex-native bison-native virtual/${HOST_PREFIX}gcc-crosssdk virtual/libc-nativesdk zlib-nativesdk"
3EXTRA_OECONF = "--with-sysroot=${prefix}/${TARGET_SYS} \
4 --program-prefix=${TARGET_PREFIX}"
5
6do_stage() {
7 :
8}
9
10do_install () {
11 autotools_do_install
12
13 # Fix the ${prefix}/${TARGET_SYS}/bin/* files to be symlinks
14 rm ${D}${prefix}/${TARGET_SYS}/bin/.debug -Rf
15 rm ${D}${prefix}/${TARGET_SYS}/bin/*
16 for l in ${D}${bindir}/*; do
17 ln -sf "${bindir}/`basename $l`" "${D}${prefix}/${TARGET_SYS}/bin/`basename $l | sed -e 's,${TARGET_PREFIX},,'`"
18 done
19
20 # Install the libiberty header
21 install -d ${D}${includedir}
22 install -m 644 ${S}/include/ansidecl.h ${D}${includedir}
23 install -m 644 ${S}/include/libiberty.h ${D}${includedir}
24}