aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/mamona/binutils-noemu_2.18.bb
blob: 42233bcf9939cdd2cfa534a678317d0ccf9f456d (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
PR = "r1"

require ../binutils/binutils.inc

RCONFLICTS_${PN} = "binutils"
RREPLACES_${PN} = "binutils"
RCONFLICTS_binutils-noemu-symlinks = "binutils-symlinks"
RREPLACES_binutils-noemu-symlinks = "binutils-symlinks"

SRC_URI = "\
     ${GNU_MIRROR}/binutils/binutils-${PV}.tar.bz2 \
     file://binutils-2.16.91.0.6-objcopy-rename-errorcode.patch \
     file://binutils-configure-texinfo-version.patch \
     file://binutils-uclibc-100-uclibc-conf.patch \
     file://110-arm-eabi-conf.patch \
     file://binutils-uclibc-300-001_ld_makefile_patch.patch \
     file://binutils-uclibc-300-006_better_file_error.patch \
     file://binutils-uclibc-300-012_check_ldrunpath_length.patch \
     "

# powerpc patches
SRC_URI += "file://binutils-2.16.1-e300c2c3.patch"

EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} --disable-shared"


do_configure () {
    CC=gcc AS=as LD=ld CXX=g++ AR=ar OBJCOPY=objcopy OBJDUMP=objdump RANLIB=ranlib NM=nm STRIP=strip oe_runconf
}

do_compile() {
    make configure-host LDFLAGS=\"\" 
    make LDFLAGS=\"-all-static\"
}

do_stage() {
    :
}

SRC_URI[md5sum] = "9d22ee4dafa3a194457caf4706f9cf01"
SRC_URI[sha256sum] = "487a33a452f0edcf1f8bb8fc23dff5c7a82edec3f3f8b65632b6c945e961ee9b"