diff --git a/meta/recipes-bsp/opensbi/opensbi_1.4.bb b/meta/recipes-bsp/opensbi/opensbi_1.4.bb index fd18c03cfb..cf37a41176 100644 --- a/meta/recipes-bsp/opensbi/opensbi_1.4.bb +++ b/meta/recipes-bsp/opensbi/opensbi_1.4.bb @@ -13,6 +13,8 @@ SRC_URI = "git://github.com/riscv/opensbi.git;branch=master;protocol=https" S = "${WORKDIR}/git" +TARGET_CC_ARCH += "${LDFLAGS}" + EXTRA_OEMAKE += "PLATFORM=${RISCV_SBI_PLAT} I=${D} FW_PIC=y CLANG_TARGET= " # If RISCV_SBI_PAYLOAD is set then include it as a payload EXTRA_OEMAKE:append = " ${@riscv_get_extra_oemake_image(d)}"