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 |
Klaus Heinrich Kiwi | 92f659d | 2021-03-09 21:03:42 -0300 | [diff] [blame] | 6 | inherit socsec-sign |
Brad Bishop | 6c2fd81 | 2019-07-21 18:08:31 -0400 | [diff] [blame] | 7 | |
| 8 | PROVIDES += "u-boot" |
| 9 | DEPENDS += "bc-native dtc-native" |
Adriana Kobylak | 8d6b91c | 2020-07-08 13:47:10 -0500 | [diff] [blame] | 10 | |
Patrick Williams | b9799be | 2021-08-06 09:13:33 -0500 | [diff] [blame] | 11 | SRC_URI:append:df-phosphor-mmc = " file://u-boot-env-ast2600.txt" |
Klaus Heinrich Kiwi | aecc80b | 2021-03-09 21:09:40 -0300 | [diff] [blame] | 12 | SRC_URI += " \ |
| 13 | file://rsa_oem_dss_key.pem;sha256sum=64a379979200d39949d3e5b0038e3fdd5548600b2f7077a17e35422336075ad4 \ |
| 14 | file://rsa_pub_oem_dss_key.pem;sha256sum=40132a694a10af2d1b094b1cb5adab4d6b4db2a35e02d848b2b6a85e60738264 \ |
| 15 | " |
Adriana Kobylak | 8d6b91c | 2020-07-08 13:47:10 -0500 | [diff] [blame] | 16 | |
Andrew Jeffery | 38cfcc3 | 2021-08-04 12:51:56 +0930 | [diff] [blame] | 17 | SOCSEC_SIGN_KEY ?= "${WORKDIR}/rsa_oem_dss_key.pem" |
| 18 | SOCSEC_SIGN_ALGO ?= "RSA4096_SHA512" |
| 19 | SOCSEC_SIGN_EXTRA_OPTS ?= "--stack_intersects_verification_region=false" |
| 20 | |
Patrick Williams | b9799be | 2021-08-06 09:13:33 -0500 | [diff] [blame] | 21 | UBOOT_ENV_SIZE:df-phosphor-mmc = "0x10000" |
| 22 | UBOOT_ENV:df-phosphor-mmc = "u-boot-env" |
| 23 | UBOOT_ENV_SUFFIX:df-phosphor-mmc = "bin" |
Adriana Kobylak | 8d6b91c | 2020-07-08 13:47:10 -0500 | [diff] [blame] | 24 | |
Patrick Williams | b9799be | 2021-08-06 09:13:33 -0500 | [diff] [blame] | 25 | do_compile:append() { |
Adriana Kobylak | 8d6b91c | 2020-07-08 13:47:10 -0500 | [diff] [blame] | 26 | if [ -n "${UBOOT_ENV}" ] |
| 27 | then |
| 28 | # Generate redundant environment image |
| 29 | ${B}/tools/mkenvimage -r -s ${UBOOT_ENV_SIZE} -o ${WORKDIR}/${UBOOT_ENV_BINARY} ${WORKDIR}/u-boot-env-ast2600.txt |
| 30 | fi |
| 31 | } |