diff options
author | 2021-01-11 17:01:11 +0800 | |
---|---|---|
committer | 2021-01-16 22:41:19 +0100 | |
commit | 3fccb15705d55a12e7a20cb0612049a3251ea1a0 (patch) | |
tree | dde75f65ce76d25fba7349c339fe36bf61f95c3e /boot/uboot/uboot.mk | |
parent | e1ecd5b582b1266da6a4da296866cf603407694c (diff) | |
download | buildroot-3fccb15705d55a12e7a20cb0612049a3251ea1a0.tar.gz buildroot-3fccb15705d55a12e7a20cb0612049a3251ea1a0.tar.bz2 |
boot/uboot: introduce BR2_TARGET_UBOOT_NEEDS_OPENSBI
Some RISC-V platforms (such as SiFive HiFive Unleashed) encapsulate
the OpenSBI firmware image inside U-Boot.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'boot/uboot/uboot.mk')
-rw-r--r-- | boot/uboot/uboot.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index a29d71ffa2..d92000f053 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -163,6 +163,11 @@ UBOOT_MAKE_OPTS += BL31=$(BINARIES_DIR)/bl31.bin endif endif +ifeq ($(BR2_TARGET_UBOOT_NEEDS_OPENSBI),y) +UBOOT_DEPENDENCIES += opensbi +UBOOT_MAKE_OPTS += OPENSBI=$(BINARIES_DIR)/fw_dynamic.bin +endif + ifeq ($(BR2_TARGET_UBOOT_NEEDS_DTC),y) UBOOT_DEPENDENCIES += host-dtc endif |