blob: e1eb73807134debfdd6f2f1ba4460395986c2d17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
inherit image_version
SRC_URI_append_aspeed = " file://0001-configs-ast-Add-redundnant-env.patch"
SRC_URI_append_aspeed_df-obmc-ubi-fs = " \
file://0002-config-ast-common-hack-bootopts.patch \
file://0003-config-ast-common-Add-bootopts-to-support-ubi-and-mt.patch \
file://0004-config-ast-common-Add-conditional-factory-reset-comm.patch \
"
python do_configure_aspeed_df-obmc-ubi-fs () {
version_id=do_get_versionID(d)
d.setVar('VERSION_ID', version_id)
bb.build.exec_func("patch_uboot", d)
}
patch_uboot () {
sed -i "s/kernel-0/kernel-${VERSION_ID}/g" \
${S}/patches/0003-config-ast-common-Add-bootopts-to-support-ubi-and-mt.patch &> /dev/null
sed -i "s/kernel-0/kernel-${VERSION_ID}/g" \
${S}/include/configs/ast-common.h &> /dev/null
}
|