Saqib Khan | a8433f5 | 2017-09-22 10:21:30 -0500 | [diff] [blame] | 1 | inherit image_version |
| 2 | |
Brad Bishop | 32275da | 2018-02-08 16:37:10 -0500 | [diff] [blame] | 3 | SRC_URI_append_aspeed = " file://0001-configs-ast-Add-redundnant-env.patch" |
Adriana Kobylak | 48c8fa3 | 2017-08-19 09:32:18 -0500 | [diff] [blame] | 4 | |
Brad Bishop | 811eeec | 2018-03-09 00:04:00 -0500 | [diff] [blame] | 5 | SRC_URI_append_aspeed_df-obmc-ubi-fs = " \ |
| 6 | file://0002-config-ast-common-hack-bootopts.patch \ |
| 7 | file://0003-config-ast-common-Add-bootopts-to-support-ubi-and-mt.patch \ |
| 8 | file://0004-config-ast-common-Add-conditional-factory-reset-comm.patch \ |
| 9 | " |
Patrick Williams | 0f19eb5 | 2017-07-27 13:32:33 -0500 | [diff] [blame] | 10 | |
Brad Bishop | 32275da | 2018-02-08 16:37:10 -0500 | [diff] [blame] | 11 | |
Brad Bishop | 811eeec | 2018-03-09 00:04:00 -0500 | [diff] [blame] | 12 | python do_configure_aspeed_df-obmc-ubi-fs () { |
| 13 | version_id=do_get_versionID(d) |
| 14 | d.setVar('VERSION_ID', version_id) |
| 15 | bb.build.exec_func("patch_uboot", d) |
Saqib Khan | a8433f5 | 2017-09-22 10:21:30 -0500 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | patch_uboot () { |
| 19 | sed -i "s/kernel-0/kernel-${VERSION_ID}/g" \ |
Joel Stanley | c5bb61e | 2018-02-20 16:17:22 +1030 | [diff] [blame] | 20 | ${S}/patches/0003-config-ast-common-Add-bootopts-to-support-ubi-and-mt.patch &> /dev/null |
Saqib Khan | a8433f5 | 2017-09-22 10:21:30 -0500 | [diff] [blame] | 21 | sed -i "s/kernel-0/kernel-${VERSION_ID}/g" \ |
| 22 | ${S}/include/configs/ast-common.h &> /dev/null |
| 23 | } |