diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:38:32 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:50:20 +0100 |
commit | e2e6f6fe07049f33cb6348780fa975162752e421 (patch) | |
tree | b1813295411235d1297a0ed642b1346b24fdfb12 /meta/recipes-devtools/binutils/binutils-cross-canadian.inc | |
download | poky-e2e6f6fe07049f33cb6348780fa975162752e421.tar.gz |
initial commit of Enea Linux 3.1
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils-cross-canadian.inc')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc new file mode 100644 index 0000000000..2da9017661 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc | |||
@@ -0,0 +1,27 @@ | |||
1 | inherit cross-canadian | ||
2 | |||
3 | DESCRIPTION = "A GNU collection of cross-canadian binary utilities for ${TARGET_ARCH} target" | ||
4 | PN = "binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}" | ||
5 | BPN = "binutils" | ||
6 | |||
7 | DEPENDS = "flex-native bison-native virtual/${HOST_PREFIX}gcc-crosssdk virtual/nativesdk-libc nativesdk-zlib nativesdk-gettext" | ||
8 | EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \ | ||
9 | " | ||
10 | |||
11 | # We have to point binutils at a sysroot but we don't need to rebuild if this changes | ||
12 | # e.g. we switch between different machines with different tunes. | ||
13 | EXTRA_OECONF[vardepsexclude] = "TUNE_PKGARCH" | ||
14 | |||
15 | do_install () { | ||
16 | autotools_do_install | ||
17 | |||
18 | # We're not interested in the libs or headers, these would come from the | ||
19 | # nativesdk or target version of the binutils recipe | ||
20 | rm -rf ${D}${prefix}/${TARGET_SYS} | ||
21 | rm -f ${D}${libdir}/libbfd* | ||
22 | rm -f ${D}${libdir}/libiberty* | ||
23 | rm -f ${D}${libdir}/libopcodes* | ||
24 | rm -f ${D}${includedir}/*.h | ||
25 | } | ||
26 | |||
27 | BBCLASSEXTEND = "" | ||