blob: 99bcafc09a11988dbeeaec8ed3ce2613ad0a2ca4 [file] [log] [blame]
Brad Bishopfe033262019-07-21 18:08:31 -04001require u-boot-common-aspeed-sdk_${PV}.inc
2
Adriana Kobylak08e8e742020-04-08 11:19:49 -05003UBOOT_MAKE_TARGET ?= "DEVICE_TREE=${UBOOT_DEVICETREE}"
Brad Bishopfe033262019-07-21 18:08:31 -04004
Andrew Geisslercd159fc2020-04-30 15:26:24 -05005require u-boot-aspeed.inc
Brad Bishopfe033262019-07-21 18:08:31 -04006
7PROVIDES += "u-boot"
8DEPENDS += "bc-native dtc-native"
Adriana Kobylakfdc603c2020-07-08 13:47:10 -05009
10SRC_URI_append_df-phosphor-mmc = " file://u-boot-env-ast2600.txt"
11
12UBOOT_ENV_SIZE_df-phosphor-mmc = "0x10000"
13UBOOT_ENV_df-phosphor-mmc = "u-boot-env"
14UBOOT_ENV_SUFFIX_df-phosphor-mmc = "bin"
15
16do_compile_append() {
17 if [ -n "${UBOOT_ENV}" ]
18 then
19 # Generate redundant environment image
20 ${B}/tools/mkenvimage -r -s ${UBOOT_ENV_SIZE} -o ${WORKDIR}/${UBOOT_ENV_BINARY} ${WORKDIR}/u-boot-env-ast2600.txt
21 fi
22}