mirror of
git://git.yoctoproject.org/meta-rockchip.git
synced 2025-07-05 05:04:47 +02:00
bsp: u-boot: split things that can apply to any U-Boot into a .inc file
Anyone writing their own U-Boot recipe for their Rockchip-based board will need to repeat the same as currently done in a bbappend that only applies to the upstream u-boot recipe from OE-Core. This is both error-prone and more difficult to maintain as well as lowering the number of people actually using the code in meta-rockchip (thus increasing maintainer load by having less people debug the code). Move everything that is Rockchip-specific but reusable in an .inc file that can be included by other layers. Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
This commit is contained in:
parent
7b8294a874
commit
16ee7d94d2
19
recipes-bsp/u-boot/u-boot-rockchip.inc
Normal file
19
recipes-bsp/u-boot/u-boot-rockchip.inc
Normal file
|
@ -0,0 +1,19 @@
|
|||
BL31:rockchip:aarch64 = "${DEPLOY_DIR_IMAGE}/bl31-${SOC_FAMILY}.elf"
|
||||
# SOC_FAMILY for RK3588S is rk3588s but it should use the binaries from rk3588
|
||||
BL31:rk3588s = "${DEPLOY_DIR_IMAGE}/bl31-rk3588.elf"
|
||||
EXTRA_OEMAKE:append:rockchip:aarch64 = " BL31=${BL31}"
|
||||
|
||||
TFA_DEPENDS ??= ""
|
||||
TFA_DEPENDS:rockchip:aarch64 = " trusted-firmware-a:do_deploy"
|
||||
do_compile[depends] .= "${TFA_DEPENDS}"
|
||||
|
||||
# No open-source TPL (yet)
|
||||
EXTRA_OEMAKE:append:rk3308 = " ROCKCHIP_TPL=${DEPLOY_DIR_IMAGE}/ddr-rk3308.bin"
|
||||
EXTRA_OEMAKE:append:rk3568 = " ROCKCHIP_TPL=${DEPLOY_DIR_IMAGE}/ddr-rk3568.bin"
|
||||
EXTRA_OEMAKE:append:rk3588s = " ROCKCHIP_TPL=${DEPLOY_DIR_IMAGE}/ddr-rk3588.bin"
|
||||
|
||||
INIT_FIRMWARE_DEPENDS ??= ""
|
||||
INIT_FIRMWARE_DEPENDS:rk3308 = " rockchip-rkbin:do_deploy"
|
||||
INIT_FIRMWARE_DEPENDS:rk3568 = " rockchip-rkbin:do_deploy"
|
||||
INIT_FIRMWARE_DEPENDS:rk3588s = " rockchip-rkbin:do_deploy"
|
||||
do_compile[depends] .= "${INIT_FIRMWARE_DEPENDS}"
|
|
@ -1,3 +1,5 @@
|
|||
require u-boot-rockchip.inc
|
||||
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
||||
|
||||
SRC_URI:append:rk-u-boot-env = " file://rockchip-enable-environment-mmc.cfg"
|
||||
|
@ -7,26 +9,6 @@ DEPENDS:append:rk3308 = " u-boot-tools-native"
|
|||
DEPENDS:append:rock-pi-4 = " gnutls-native"
|
||||
DEPENDS:append:rk-u-boot-env = " u-boot-mkenvimage-native"
|
||||
|
||||
BL31:rockchip:aarch64 = "${DEPLOY_DIR_IMAGE}/bl31-${SOC_FAMILY}.elf"
|
||||
# SOC_FAMILY for RK3588S is rk3588s but it should use the binaries from rk3588
|
||||
BL31:rk3588s = "${DEPLOY_DIR_IMAGE}/bl31-rk3588.elf"
|
||||
EXTRA_OEMAKE:append:rockchip:aarch64 = " BL31=${BL31}"
|
||||
|
||||
TFA_DEPENDS ??= ""
|
||||
TFA_DEPENDS:rockchip:aarch64 = " trusted-firmware-a:do_deploy"
|
||||
do_compile[depends] .= "${TFA_DEPENDS}"
|
||||
|
||||
# No open-source TPL (yet)
|
||||
EXTRA_OEMAKE:append:rk3308 = " ROCKCHIP_TPL=${DEPLOY_DIR_IMAGE}/ddr-rk3308.bin"
|
||||
EXTRA_OEMAKE:append:rk3568 = " ROCKCHIP_TPL=${DEPLOY_DIR_IMAGE}/ddr-rk3568.bin"
|
||||
EXTRA_OEMAKE:append:rk3588s = " ROCKCHIP_TPL=${DEPLOY_DIR_IMAGE}/ddr-rk3588.bin"
|
||||
|
||||
INIT_FIRMWARE_DEPENDS ??= ""
|
||||
INIT_FIRMWARE_DEPENDS:rk3308 = " rockchip-rkbin:do_deploy"
|
||||
INIT_FIRMWARE_DEPENDS:rk3568 = " rockchip-rkbin:do_deploy"
|
||||
INIT_FIRMWARE_DEPENDS:rk3588s = " rockchip-rkbin:do_deploy"
|
||||
do_compile[depends] .= "${INIT_FIRMWARE_DEPENDS}"
|
||||
|
||||
do_compile:append:rock2-square () {
|
||||
# copy to default search path
|
||||
if [ "${SPL_BINARY}" = "u-boot-spl-dtb.bin" ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user