Brad Bishop | 6c2fd81 | 2019-07-21 18:08:31 -0400 | [diff] [blame] | 1 | require u-boot-common-aspeed-sdk_${PV}.inc |
| 2 | |
Adriana Kobylak | a6da583 | 2020-04-08 11:19:49 -0500 | [diff] [blame] | 3 | UBOOT_MAKE_TARGET ?= "DEVICE_TREE=${UBOOT_DEVICETREE}" |
Brad Bishop | 6c2fd81 | 2019-07-21 18:08:31 -0400 | [diff] [blame] | 4 | |
Andrew Geissler | 83ecb75 | 2020-04-30 15:26:24 -0500 | [diff] [blame] | 5 | require u-boot-aspeed.inc |
Brad Bishop | 6c2fd81 | 2019-07-21 18:08:31 -0400 | [diff] [blame] | 6 | |
| 7 | PROVIDES += "u-boot" |
| 8 | DEPENDS += "bc-native dtc-native" |
Adriana Kobylak | 8d6b91c | 2020-07-08 13:47:10 -0500 | [diff] [blame] | 9 | |
| 10 | SRC_URI_append_df-phosphor-mmc = " file://u-boot-env-ast2600.txt" |
| 11 | |
| 12 | UBOOT_ENV_SIZE_df-phosphor-mmc = "0x10000" |
| 13 | UBOOT_ENV_df-phosphor-mmc = "u-boot-env" |
| 14 | UBOOT_ENV_SUFFIX_df-phosphor-mmc = "bin" |
| 15 | |
| 16 | do_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 | } |