summaryrefslogtreecommitdiff
path: root/packages/sharprom-toolchain/sharprom-toolchain-native_1.0.bb
blob: 548fb25750a7261b43a473fdeef0c6e123ee5f21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
DESCRIPTION = "Precompiled SharpROM toolchain glue package"
LICENSE = "GPL"
SECTION = "base"
# see bug 2199 for the reason the following line is in here
DEPENDS = "linux-libc-headers cross-linkage staging-linkage"
PROVIDES_sharprom-compatible = "\
  virtual/arm-linux-gcc-2.95 \
  virtual/arm-linux-libc-for-gcc \
  virtual/arm-linux-binutils \
  virtual/libc \
  virtual/libintl \
  virtual/libiconv \
  virtual/arm-linux-gcc \
  virtual/arm-linux-libc-for-gcc \
  virtual/arm-linux-gcc-intermediate \
  virtual/arm-linux-gcc-initial "
FILE_PR = "r2"

RPROVIDES = "glibc-utils libsegfault glibc-thread-db libgcc-dev libstdc++-dev libstdc++"
PACKAGES_DYNAMIC = "glibc-gconv-*"

# This needs to be extracted to /usr/local/arm :
# SRC_URI = "http://handhelds.org/download/projects/toolchain/archive/cross-2.95.3.tar.bz2"

inherit native

COMPATIBLE_HOST = 'i.86.*-linux'

do_stage() {
	if [ ! -e /usr/local/arm/2.95.3/bin/arm-linux-gcc-2.95 ]
	then
		die "You need to install the Sharp Toolchain to /usr/local/arm and rename the compiler to arm-linux-gcc-2.95"
	fi
	if [ ! -e /usr/local/arm/2.95.3/bin/arm-linux-ld-2.11.2 ]
	then
		die "You need to install the Sharp Toolchain to /usr/local/arm and rename the linker to arm-linux-ld-2.11.2"
	fi
	ln -sf /usr/local/arm/2.95.3/bin/arm-linux-gcc-2.95 ${STAGING_BINDIR}/arm-linux-gcc
	ln -sf /usr/local/arm/2.95.3/bin/arm-linux-ld-2.11.2 ${STAGING_BINDIR}/arm-linux-ld
}