summaryrefslogtreecommitdiffstats
path: root/meta/packages/binutils
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-09-17 00:49:03 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-09-17 22:25:23 +0100
commitafa02c54709474cee4bb91368a823a8678f57998 (patch)
treef56e06bb995aeeffe9ff4a39e6db16944519f5a1 /meta/packages/binutils
parentc906f2bce424ecf201f16a486959dab600a847b0 (diff)
downloadpoky-afa02c54709474cee4bb91368a823a8678f57998.tar.gz
cross-canadian: Add cross-canadian class with gcc and binutils recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/binutils')
-rw-r--r--meta/packages/binutils/binutils-cross-canadian.inc24
-rw-r--r--meta/packages/binutils/binutils-cross-canadian_2.18.bb3
-rw-r--r--meta/packages/binutils/binutils-cross-canadian_2.19.bb3
3 files changed, 30 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}
diff --git a/meta/packages/binutils/binutils-cross-canadian_2.18.bb b/meta/packages/binutils/binutils-cross-canadian_2.18.bb
new file mode 100644
index 0000000000..13fc22aa64
--- /dev/null
+++ b/meta/packages/binutils/binutils-cross-canadian_2.18.bb
@@ -0,0 +1,3 @@
1require binutils_${PV}.bb
2require binutils-cross-canadian.inc
3PR = "r3"
diff --git a/meta/packages/binutils/binutils-cross-canadian_2.19.bb b/meta/packages/binutils/binutils-cross-canadian_2.19.bb
new file mode 100644
index 0000000000..7dad2a620b
--- /dev/null
+++ b/meta/packages/binutils/binutils-cross-canadian_2.19.bb
@@ -0,0 +1,3 @@
1require binutils_${PV}.bb
2require binutils-cross-canadian.inc
3PR = "r0"