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 \ |
Adriana Kobylak | 3749f52 | 2017-08-09 17:17:25 -0500 | [diff] [blame] | 13 | file://0004-config-ast-common-ubi-bootops.patch', '', d)}" |
Patrick Williams | 0f19eb5 | 2017-07-27 13:32:33 -0500 | [diff] [blame] | 14 | |
Saqib Khan | a8433f5 | 2017-09-22 10:21:30 -0500 | [diff] [blame] | 15 | python 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 | |
| 22 | patch_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 Williams | 395dcbc | 2017-06-26 14:49:59 -0500 | [diff] [blame] | 29 | PV = "v2016.07+git${SRCPV}" |