Brad Bishop | 6c2fd81 | 2019-07-21 18:08:31 -0400 | [diff] [blame] | 1 | require u-boot-common-aspeed-sdk_${PV}.inc |
zhanghaicheng | 851a10e | 2021-12-23 09:44:26 +0800 | [diff] [blame] | 2 | require conf/machine/distro/include/uboot-distrovars.inc |
Brad Bishop | 6c2fd81 | 2019-07-21 18:08:31 -0400 | [diff] [blame] | 3 | |
Adriana Kobylak | a6da583 | 2020-04-08 11:19:49 -0500 | [diff] [blame] | 4 | UBOOT_MAKE_TARGET ?= "DEVICE_TREE=${UBOOT_DEVICETREE}" |
Brad Bishop | 6c2fd81 | 2019-07-21 18:08:31 -0400 | [diff] [blame] | 5 | |
Andrei Kartashev | c5b413f | 2021-10-08 00:14:45 +0300 | [diff] [blame] | 6 | require recipes-bsp/u-boot/u-boot.inc |
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 | |
Howard Chiu | c1c2370 | 2022-04-26 09:32:42 +0800 | [diff] [blame] | 11 | SRC_URI:append:uboot-flash-32768 = " file://u-boot_flash_32M.cfg" |
| 12 | SRC_URI:append:uboot-flash-65536 = " file://u-boot_flash_64M.cfg" |
Patrick Williams | b9799be | 2021-08-06 09:13:33 -0500 | [diff] [blame] | 13 | 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] | 14 | SRC_URI += " \ |
| 15 | file://rsa_oem_dss_key.pem;sha256sum=64a379979200d39949d3e5b0038e3fdd5548600b2f7077a17e35422336075ad4 \ |
| 16 | file://rsa_pub_oem_dss_key.pem;sha256sum=40132a694a10af2d1b094b1cb5adab4d6b4db2a35e02d848b2b6a85e60738264 \ |
| 17 | " |
Adriana Kobylak | 8d6b91c | 2020-07-08 13:47:10 -0500 | [diff] [blame] | 18 | |
Andrew Jeffery | 38cfcc3 | 2021-08-04 12:51:56 +0930 | [diff] [blame] | 19 | SOCSEC_SIGN_KEY ?= "${WORKDIR}/rsa_oem_dss_key.pem" |
| 20 | SOCSEC_SIGN_ALGO ?= "RSA4096_SHA512" |
Jamin Lin | e73cb4a | 2021-12-17 15:04:35 +0800 | [diff] [blame] | 21 | SOCSEC_SIGN_EXTRA_OPTS ?= "--stack_intersects_verification_region=false --rsa_key_order=big" |
Andrew Jeffery | 38cfcc3 | 2021-08-04 12:51:56 +0930 | [diff] [blame] | 22 | |
Andrew Jeffery | 50e2234 | 2021-08-25 15:46:26 +0930 | [diff] [blame] | 23 | inherit socsec-sign |
Jamin Lin | eed879f | 2021-12-17 15:45:25 +0800 | [diff] [blame] | 24 | inherit otptool |
Andrew Jeffery | 50e2234 | 2021-08-25 15:46:26 +0930 | [diff] [blame] | 25 | |
Patrick Williams | b9799be | 2021-08-06 09:13:33 -0500 | [diff] [blame] | 26 | UBOOT_ENV_SIZE:df-phosphor-mmc = "0x10000" |
| 27 | UBOOT_ENV:df-phosphor-mmc = "u-boot-env" |
| 28 | UBOOT_ENV_SUFFIX:df-phosphor-mmc = "bin" |
Andrei Kartashev | b60b7b1 | 2021-07-29 09:01:35 +0300 | [diff] [blame] | 29 | UBOOT_ENV_TXT:df-phosphor-mmc = "u-boot-env-ast2600.txt" |
Adriana Kobylak | 8d6b91c | 2020-07-08 13:47:10 -0500 | [diff] [blame] | 30 | |
Patrick Williams | b9799be | 2021-08-06 09:13:33 -0500 | [diff] [blame] | 31 | do_compile:append() { |
Adriana Kobylak | 8d6b91c | 2020-07-08 13:47:10 -0500 | [diff] [blame] | 32 | if [ -n "${UBOOT_ENV}" ] |
| 33 | then |
| 34 | # Generate redundant environment image |
Andrei Kartashev | b60b7b1 | 2021-07-29 09:01:35 +0300 | [diff] [blame] | 35 | ${B}/tools/mkenvimage -r -s ${UBOOT_ENV_SIZE} -o ${WORKDIR}/${UBOOT_ENV_BINARY} ${WORKDIR}/${UBOOT_ENV_TXT} |
Adriana Kobylak | 8d6b91c | 2020-07-08 13:47:10 -0500 | [diff] [blame] | 36 | fi |
| 37 | } |