blob: 5329b2c89eccbb7df44bd247a21f3e6cd3d82a9c [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 Bishop811eeec2018-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 \
Andrew Jeffery2b552542018-04-20 13:52:04 +09309 file://0005-config-ast-common-Fall-back-to-secondary-flash-on-fa.patch \
Brad Bishop811eeec2018-03-09 00:04:00 -050010 "
Patrick Williams0f19eb52017-07-27 13:32:33 -050011
Andrew Jeffery82f2db22018-07-26 14:15:21 +093012SRC_URI_append_aspeed_df-isolate-bmc = " \
13 file://0001-aspeed-Disable-unnecessary-features.patch \
14 "
John Wang5a8e7c52019-07-10 17:24:54 +080015SRC_URI_append_aspeed_df-aspeednic-use-mac2 = " \
16 file://0002-board-aspeed-aspeednic-Use-MAC2-for-networking.patch \
17 "
Andrew Jeffery82f2db22018-07-26 14:15:21 +093018
Andrew Geissler68fb2e42018-04-17 10:57:39 -070019do_patch[depends] += "os-release:do_populate_sysroot"
Brad Bishop32275da2018-02-08 16:37:10 -050020
Andrew Jeffery85520442018-04-05 15:31:15 +093021python do_patch_append_aspeed_df-obmc-ubi-fs () {
Brad Bishop811eeec2018-03-09 00:04:00 -050022 version_id=do_get_versionID(d)
23 d.setVar('VERSION_ID', version_id)
Andrew Jeffery85520442018-04-05 15:31:15 +093024 bb.build.exec_func("patch_kernelname", d)
Saqib Khana8433f52017-09-22 10:21:30 -050025}
26
Andrew Jeffery85520442018-04-05 15:31:15 +093027patch_kernelname () {
28 sed -ri "s/kernel-(0|[a-fA-F0-9]{8})/kernel-${VERSION_ID}/g" \
29 ${S}/include/configs/ast-common.h &> /dev/null
Saqib Khana8433f52017-09-22 10:21:30 -050030}