summaryrefslogtreecommitdiff
path: root/multitech/recipes/u-boot/u-boot_2012.10.bb
blob: a91ec92025386803bf109aea6bb4c6f2c58f5f1d (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
PR = "r1"
require recipes/u-boot/u-boot.inc

DEFAULT_PREFERENCE = "-1"

# U-Boot 2012.10 for AT91
SRCREV="linux4sam_4.0"

SRC_URI = "git://github.com/linux4sam/u-boot-at91.git;protocol=http;tag=${SRCREV} \
           file://u-boot-2012.10-sam9x5-eth-mii-fix.patch \
           "

# add patch to speed up boot if ethernet autonegotiation fails
SRC_URI += "file://u-boot-2010.06-macb-autoneg-timeout.patch"

SRC_URI_append_mtocgd3 = " file://u-boot-2012.10-mtocgd3.patch"

SRC_URI_append_mtocgd = " file://u-boot-2012.10-mtocgd.patch"

TARGET_LDFLAGS = ""

S = "${WORKDIR}/git"

inherit base

do_configure_prepend() {
    mv -f tools/setlocalversion tools/setlocalversion.old
    echo -e "#!/bin/sh\necho '-${MACHINE}-${PR}'" > tools/setlocalversion
    chmod a+rx tools/setlocalversion
}

do_compile () {
       oe_runmake ${UBOOT_MACHINE}
       oe_runmake all
}