blob: 5cc320fbcae04d645ce188eaabbc6a694909c9df [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 \
Adriana Kobylak3749f522017-08-09 17:17:25 -050013 file://0004-config-ast-common-ubi-bootops.patch', '', d)}"
Patrick Williams0f19eb52017-07-27 13:32:33 -050014
Saqib Khana8433f52017-09-22 10:21:30 -050015python do_configure () {
16 if ((d.getVar("MACHINE_FEATURES", True)) == "obmc-ubi-fs"):
17 version_id=do_get_versionID(d)
18 d.setVar('VERSION_ID', version_id)
19 bb.build.exec_func("patch_uboot", d)
20}
21
22patch_uboot () {
23 sed -i "s/kernel-0/kernel-${VERSION_ID}/g" \
24 ${S}/patches/0004-config-ast-common-ubi-bootops.patch &> /dev/null
25 sed -i "s/kernel-0/kernel-${VERSION_ID}/g" \
26 ${S}/include/configs/ast-common.h &> /dev/null
27}
28
Patrick Williams395dcbc2017-06-26 14:49:59 -050029PV = "v2016.07+git${SRCPV}"