blob: 56d12356ac19643f0d8776abe2c5963f3c0097ec [file] [log] [blame]
Saqib Khan41723472017-09-22 10:21:30 -05001inherit image_version
2
Brad Bishop273ec602018-02-08 16:37:10 -05003SRC_URI_append_aspeed = " file://0001-configs-ast-Add-redundnant-env.patch"
Adriana Kobylak57ef7222017-08-19 09:32:18 -05004
Brad Bishop8623bbe2018-03-09 00:04:00 -05005SRC_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 Williams470e25e2017-07-27 13:32:33 -050010
Andrew Jeffery1cadf4c2018-04-05 15:31:15 +093011do_patch[depends] = "os-release:do_populate_sysroot"
Brad Bishop273ec602018-02-08 16:37:10 -050012
Andrew Jeffery1cadf4c2018-04-05 15:31:15 +093013python do_patch_append_aspeed_df-obmc-ubi-fs () {
Brad Bishop8623bbe2018-03-09 00:04:00 -050014 version_id=do_get_versionID(d)
15 d.setVar('VERSION_ID', version_id)
Andrew Jeffery1cadf4c2018-04-05 15:31:15 +093016 bb.build.exec_func("patch_kernelname", d)
Saqib Khan41723472017-09-22 10:21:30 -050017}
18
Andrew Jeffery1cadf4c2018-04-05 15:31:15 +093019patch_kernelname () {
20 sed -ri "s/kernel-(0|[a-fA-F0-9]{8})/kernel-${VERSION_ID}/g" \
21 ${S}/include/configs/ast-common.h &> /dev/null
Saqib Khan41723472017-09-22 10:21:30 -050022}