blob: 5a0b7e66f24946d1f26568da3cb12ac4371c38f4 [file] [log] [blame]
Saqib Khan41723472017-09-22 10:21:30 -05001inherit image_version
2
Patrick Williams12fc9392021-08-06 09:16:53 -05003SRC_URI:append:aspeed = " file://0001-configs-ast-Add-redundnant-env.patch"
Adriana Kobylak57ef7222017-08-19 09:32:18 -05004
Patrick Williams12fc9392021-08-06 09:16:53 -05005SRC_URI:append:aspeed:df-obmc-ubi-fs = " \
Brad Bishop8623bbe2018-03-09 00:04:00 -05006 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 Jeffery6a7aa192018-04-20 13:52:04 +09309 file://0005-config-ast-common-Fall-back-to-secondary-flash-on-fa.patch \
Brad Bishop8623bbe2018-03-09 00:04:00 -050010 "
Patrick Williams470e25e2017-07-27 13:32:33 -050011
Patrick Williams12fc9392021-08-06 09:16:53 -050012SRC_URI:append:aspeed:df-isolate-bmc = " \
Andrew Jeffery66270f42018-07-26 14:15:21 +093013 file://0001-aspeed-Disable-unnecessary-features.patch \
14 "
Patrick Williams12fc9392021-08-06 09:16:53 -050015SRC_URI:append:aspeed:df-aspeednic-use-mac2 = " \
John Wangc2f35262019-07-10 17:24:54 +080016 file://0002-board-aspeed-aspeednic-Use-MAC2-for-networking.patch \
17 "
Chanh Nguyen6610b2e2021-10-10 12:11:16 +070018SRC_URI:append:aspeed:df-aspeed-spi-master = " \
19 file://0006-aspeed-Enable-SPI-master-mode-by-default.patch \
20 "
Andrew Geissler32a2f0b2018-04-17 10:57:39 -070021do_patch[depends] += "os-release:do_populate_sysroot"
Brad Bishop273ec602018-02-08 16:37:10 -050022
Patrick Williams12fc9392021-08-06 09:16:53 -050023python do_patch:append:aspeed:df-obmc-ubi-fs () {
Brad Bishop8623bbe2018-03-09 00:04:00 -050024 version_id=do_get_versionID(d)
25 d.setVar('VERSION_ID', version_id)
Andrew Jeffery1cadf4c2018-04-05 15:31:15 +093026 bb.build.exec_func("patch_kernelname", d)
Saqib Khan41723472017-09-22 10:21:30 -050027}
28
Andrew Jeffery1cadf4c2018-04-05 15:31:15 +093029patch_kernelname () {
30 sed -ri "s/kernel-(0|[a-fA-F0-9]{8})/kernel-${VERSION_ID}/g" \
31 ${S}/include/configs/ast-common.h &> /dev/null
Saqib Khan41723472017-09-22 10:21:30 -050032}