Patrick Williams | 395dcbc | 2017-06-26 14:49:59 -0500 | [diff] [blame] | 1 | LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" |
| 2 | |
Joel Stanley | 6c37479 | 2018-02-13 16:00:04 +1030 | [diff] [blame] | 3 | SRCREV = "7fb88a88d08c19b0e6f88c0a484ab001a4476a27" |
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 () { |
Michael Tritz | 687c74e | 2018-01-25 10:06:21 -0600 | [diff] [blame] | 17 | if "obmc-ubi-fs" in d.getVar("MACHINE_FEATURES", True): |
Saqib Khan | a8433f5 | 2017-09-22 10:21:30 -0500 | [diff] [blame] | 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}" |