blob: 727c62d27c17caaf56166be09eba2bac3c639e11 [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
Klaus Heinrich Kiwi92f659d2021-03-09 21:03:42 -03006inherit socsec-sign
Brad Bishop6c2fd812019-07-21 18:08:31 -04007
8PROVIDES += "u-boot"
9DEPENDS += "bc-native dtc-native"
Adriana Kobylak8d6b91c2020-07-08 13:47:10 -050010
11SRC_URI_append_df-phosphor-mmc = " file://u-boot-env-ast2600.txt"
Klaus Heinrich Kiwiaecc80b2021-03-09 21:09:40 -030012SRC_URI += " \
13 file://rsa_oem_dss_key.pem;sha256sum=64a379979200d39949d3e5b0038e3fdd5548600b2f7077a17e35422336075ad4 \
14 file://rsa_pub_oem_dss_key.pem;sha256sum=40132a694a10af2d1b094b1cb5adab4d6b4db2a35e02d848b2b6a85e60738264 \
15 "
Adriana Kobylak8d6b91c2020-07-08 13:47:10 -050016
17UBOOT_ENV_SIZE_df-phosphor-mmc = "0x10000"
18UBOOT_ENV_df-phosphor-mmc = "u-boot-env"
19UBOOT_ENV_SUFFIX_df-phosphor-mmc = "bin"
20
21do_compile_append() {
22 if [ -n "${UBOOT_ENV}" ]
23 then
24 # Generate redundant environment image
25 ${B}/tools/mkenvimage -r -s ${UBOOT_ENV_SIZE} -o ${WORKDIR}/${UBOOT_ENV_BINARY} ${WORKDIR}/u-boot-env-ast2600.txt
26 fi
27}