blob: 99bcafc09a11988dbeeaec8ed3ce2613ad0a2ca4 [file] [log] [blame]
Brad Bishop6c2fd812019-07-21 18:08:31 -04001require u-boot-common-aspeed-sdk_${PV}.inc
2
Adriana Kobylaka6da5832020-04-08 11:19:49 -05003UBOOT_MAKE_TARGET ?= "DEVICE_TREE=${UBOOT_DEVICETREE}"
Brad Bishop6c2fd812019-07-21 18:08:31 -04004
Andrew Geissler83ecb752020-04-30 15:26:24 -05005require u-boot-aspeed.inc
Brad Bishop6c2fd812019-07-21 18:08:31 -04006
7PROVIDES += "u-boot"
8DEPENDS += "bc-native dtc-native"
Adriana Kobylak8d6b91c2020-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}