blob: a5be9f8fc04c159d5215b89dc9da8c2b00e1a688 [file] [log] [blame]
Patrick Williams395dcbc2017-06-26 14:49:59 -05001LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
2
Andrew Jefferyda48f952017-10-21 00:30:45 +10303SRCREV = "16f997c564f873b4fdf12fc90ee8a9f6f6080961"
Patrick Williams395dcbc2017-06-26 14:49:59 -05004UBRANCH = "v2016.07-aspeed-openbmc"
5SRC_URI = "git://git@github.com/openbmc/u-boot.git;branch=${UBRANCH};protocol=https"
6
Saqib Khana8433f52017-09-22 10:21:30 -05007inherit image_version
8
Adriana Kobylak48c8fa32017-08-19 09:32:18 -05009SRC_URI += "file://0001-configs-ast-Add-redundnant-env.patch"
10
Patrick Williams0f19eb52017-07-27 13:32:33 -050011SRC_URI += "${@bb.utils.contains('MACHINE_FEATURES', 'obmc-ubi-fs', \
Adriana Kobylak57ba9982017-08-15 20:08:42 -050012 'file://0001-config-ast-common-hack-bootopts.patch \
Edward A. Jamesa1cb3232017-11-09 16:03:14 -060013 file://0004-config-ast-common-ubi-bootops.patch \
14 file://0001-config-ast-common-Add-conditional-factory-reset-comm.patch', '', d)}"
Patrick Williams0f19eb52017-07-27 13:32:33 -050015
Saqib Khana8433f52017-09-22 10:21:30 -050016python do_configure () {
17 if ((d.getVar("MACHINE_FEATURES", True)) == "obmc-ubi-fs"):
18 version_id=do_get_versionID(d)
19 d.setVar('VERSION_ID', version_id)
20 bb.build.exec_func("patch_uboot", d)
21}
22
23patch_uboot () {
24 sed -i "s/kernel-0/kernel-${VERSION_ID}/g" \
25 ${S}/patches/0004-config-ast-common-ubi-bootops.patch &> /dev/null
26 sed -i "s/kernel-0/kernel-${VERSION_ID}/g" \
27 ${S}/include/configs/ast-common.h &> /dev/null
28}
29
Patrick Williams395dcbc2017-06-26 14:49:59 -050030PV = "v2016.07+git${SRCPV}"