summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-bsp/u-boot/u-boot.inc
blob: d094c87ee49b87c92405a9abb0dfd77709ebd6bb (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
LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"

SRCREV = "c468fa0409fdbccd9be9f41767a96b5ce6999dec"
UBRANCH = "v2016.07-aspeed-openbmc"
SRC_URI = "git://scm.raptorcs.com/scm/git/talos-obmc-uboot;branch=${UBRANCH}-03-26-2018;protocol=https"

inherit image_version

SRC_URI += "file://0001-configs-ast-Add-redundnant-env.patch"

SRC_URI += "${@bb.utils.contains('MACHINE_FEATURES', 'obmc-ubi-fs', \
    'file://0001-config-ast-common-hack-bootopts.patch \
     file://0004-config-ast-common-ubi-bootops.patch \
     file://0001-config-ast-common-Add-conditional-factory-reset-comm.patch', '', d)}"

python do_configure () {
    if ((d.getVar("MACHINE_FEATURES", True)) == "obmc-ubi-fs"):
        version_id=do_get_versionID(d)
        d.setVar('VERSION_ID', version_id)
        bb.build.exec_func("patch_uboot", d)
}

patch_uboot () {
	sed -i "s/kernel-0/kernel-${VERSION_ID}/g" \
	${S}/patches/0004-config-ast-common-ubi-bootops.patch &> /dev/null
	sed -i "s/kernel-0/kernel-${VERSION_ID}/g" \
	${S}/include/configs/ast-common.h &> /dev/null
}

PV = "v2016.07+git${SRCPV}"
OpenPOWER on IntegriCloud