1inherit image_version 2 3SRC_URI:append:aspeed = " file://0001-configs-ast-Add-redundnant-env.patch" 4 5SRC_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 file://0005-config-ast-common-Fall-back-to-secondary-flash-on-fa.patch \ 10 " 11 12SRC_URI:append:aspeed:df-isolate-bmc = " \ 13 file://0001-aspeed-Disable-unnecessary-features.patch \ 14 " 15SRC_URI:append:aspeed:df-aspeednic-use-mac2 = " \ 16 file://0002-board-aspeed-aspeednic-Use-MAC2-for-networking.patch \ 17 " 18SRC_URI:append:aspeed:df-aspeed-spi-master = " \ 19 file://0006-aspeed-Enable-SPI-master-mode-by-default.patch \ 20 " 21do_patch[depends] += "os-release:do_populate_sysroot" 22 23python do_patch:append:aspeed:df-obmc-ubi-fs () { 24 version_id=do_get_versionID(d) 25 d.setVar('VERSION_ID', version_id) 26 bb.build.exec_func("patch_kernelname", d) 27} 28 29patch_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 32} 33