blob: 705213e27208fb92b90e8795aa9b31aebfad09d2 [file] [log] [blame]
Saqib Khana8433f52017-09-22 10:21:30 -05001inherit image_version
2
Brad Bishop32275da2018-02-08 16:37:10 -05003SRC_URI_append_aspeed = " file://0001-configs-ast-Add-redundnant-env.patch"
Adriana Kobylak48c8fa32017-08-19 09:32:18 -05004
Brad Bishop32275da2018-02-08 16:37:10 -05005SRC_URI_append_aspeed = " ${@bb.utils.contains('MACHINE_FEATURES', 'obmc-ubi-fs', \
Adriana Kobylak57ba9982017-08-15 20:08:42 -05006 'file://0001-config-ast-common-hack-bootopts.patch \
Edward A. Jamesa1cb3232017-11-09 16:03:14 -06007 file://0004-config-ast-common-ubi-bootops.patch \
8 file://0001-config-ast-common-Add-conditional-factory-reset-comm.patch', '', d)}"
Patrick Williams0f19eb52017-07-27 13:32:33 -05009
Brad Bishop32275da2018-02-08 16:37:10 -050010
11python do_configure_aspeed () {
Michael Tritz687c74e2018-01-25 10:06:21 -060012 if "obmc-ubi-fs" in d.getVar("MACHINE_FEATURES", True):
Saqib Khana8433f52017-09-22 10:21:30 -050013 version_id=do_get_versionID(d)
14 d.setVar('VERSION_ID', version_id)
15 bb.build.exec_func("patch_uboot", d)
16}
17
18patch_uboot () {
19 sed -i "s/kernel-0/kernel-${VERSION_ID}/g" \
20 ${S}/patches/0004-config-ast-common-ubi-bootops.patch &> /dev/null
21 sed -i "s/kernel-0/kernel-${VERSION_ID}/g" \
22 ${S}/include/configs/ast-common.h &> /dev/null
23}