Patrick Williams | 395dcbc | 2017-06-26 14:49:59 -0500 | [diff] [blame] | 1 | LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" |
| 2 | |
Andrew Jeffery | da48f95 | 2017-10-21 00:30:45 +1030 | [diff] [blame] | 3 | SRCREV = "16f997c564f873b4fdf12fc90ee8a9f6f6080961" |
Patrick Williams | 395dcbc | 2017-06-26 14:49:59 -0500 | [diff] [blame] | 4 | UBRANCH = "v2016.07-aspeed-openbmc" |
| 5 | SRC_URI = "git://git@github.com/openbmc/u-boot.git;branch=${UBRANCH};protocol=https" |
| 6 | |
Saqib Khan | a8433f5 | 2017-09-22 10:21:30 -0500 | [diff] [blame] | 7 | inherit image_version |
| 8 | |
Adriana Kobylak | 48c8fa3 | 2017-08-19 09:32:18 -0500 | [diff] [blame] | 9 | SRC_URI += "file://0001-configs-ast-Add-redundnant-env.patch" |
| 10 | |
Patrick Williams | 0f19eb5 | 2017-07-27 13:32:33 -0500 | [diff] [blame] | 11 | SRC_URI += "${@bb.utils.contains('MACHINE_FEATURES', 'obmc-ubi-fs', \ |
Adriana Kobylak | 57ba998 | 2017-08-15 20:08:42 -0500 | [diff] [blame] | 12 | 'file://0001-config-ast-common-hack-bootopts.patch \ |
Edward A. James | a1cb323 | 2017-11-09 16:03:14 -0600 | [diff] [blame] | 13 | file://0004-config-ast-common-ubi-bootops.patch \ |
| 14 | file://0001-config-ast-common-Add-conditional-factory-reset-comm.patch', '', d)}" |
Patrick Williams | 0f19eb5 | 2017-07-27 13:32:33 -0500 | [diff] [blame] | 15 | |
Saqib Khan | a8433f5 | 2017-09-22 10:21:30 -0500 | [diff] [blame] | 16 | python 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 | |
| 23 | patch_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 Williams | 395dcbc | 2017-06-26 14:49:59 -0500 | [diff] [blame] | 30 | PV = "v2016.07+git${SRCPV}" |