Saqib Khan | a8433f5 | 2017-09-22 10:21:30 -0500 | [diff] [blame] | 1 | inherit image_version |
| 2 | |
Brad Bishop | 76b1d5e | 2018-02-16 21:12:13 -0500 | [diff] [blame] | 3 | SRC_URI_append = " file://0001-configs-ast-Add-redundnant-env.patch" |
Adriana Kobylak | 48c8fa3 | 2017-08-19 09:32:18 -0500 | [diff] [blame] | 4 | |
Brad Bishop | 76b1d5e | 2018-02-16 21:12:13 -0500 | [diff] [blame] | 5 | SRC_URI_append = " ${@bb.utils.contains('MACHINE_FEATURES', 'obmc-ubi-fs', \ |
Adriana Kobylak | 57ba998 | 2017-08-15 20:08:42 -0500 | [diff] [blame] | 6 | 'file://0001-config-ast-common-hack-bootopts.patch \ |
Edward A. James | a1cb323 | 2017-11-09 16:03:14 -0600 | [diff] [blame] | 7 | file://0004-config-ast-common-ubi-bootops.patch \ |
| 8 | file://0001-config-ast-common-Add-conditional-factory-reset-comm.patch', '', d)}" |
Patrick Williams | 0f19eb5 | 2017-07-27 13:32:33 -0500 | [diff] [blame] | 9 | |
Saqib Khan | a8433f5 | 2017-09-22 10:21:30 -0500 | [diff] [blame] | 10 | python do_configure () { |
Michael Tritz | 687c74e | 2018-01-25 10:06:21 -0600 | [diff] [blame] | 11 | if "obmc-ubi-fs" in d.getVar("MACHINE_FEATURES", True): |
Saqib Khan | a8433f5 | 2017-09-22 10:21:30 -0500 | [diff] [blame] | 12 | version_id=do_get_versionID(d) |
| 13 | d.setVar('VERSION_ID', version_id) |
| 14 | bb.build.exec_func("patch_uboot", d) |
| 15 | } |
| 16 | |
| 17 | patch_uboot () { |
| 18 | sed -i "s/kernel-0/kernel-${VERSION_ID}/g" \ |
| 19 | ${S}/patches/0004-config-ast-common-ubi-bootops.patch &> /dev/null |
| 20 | sed -i "s/kernel-0/kernel-${VERSION_ID}/g" \ |
| 21 | ${S}/include/configs/ast-common.h &> /dev/null |
| 22 | } |