diff options
| -rw-r--r-- | meta/recipes-bsp/opensbi/files/0001-Makefile-Don-t-specify-mabi-or-march.patch | 36 | ||||
| -rw-r--r-- | meta/recipes-bsp/opensbi/opensbi_1.0.bb (renamed from meta/recipes-bsp/opensbi/opensbi_0.9.bb) | 5 |
2 files changed, 2 insertions, 39 deletions
diff --git a/meta/recipes-bsp/opensbi/files/0001-Makefile-Don-t-specify-mabi-or-march.patch b/meta/recipes-bsp/opensbi/files/0001-Makefile-Don-t-specify-mabi-or-march.patch deleted file mode 100644 index d2a8048e87..0000000000 --- a/meta/recipes-bsp/opensbi/files/0001-Makefile-Don-t-specify-mabi-or-march.patch +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | From fe9860fd85e49a75bef545e5d9914070491e8002 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alistair Francis <alistair.francis@wdc.com> | ||
| 3 | Date: Fri, 15 Feb 2019 14:57:41 -0800 | ||
| 4 | Subject: [PATCH] Makefile: Don't specify mabi or march | ||
| 5 | |||
| 6 | To avoid | ||
| 7 | can't link double-float modules with soft-float modules | ||
| 8 | errors when building 32-bit openSBI don't specify mabi or march. | ||
| 9 | |||
| 10 | Upstream-Status: Inappropriate [Fixes a 32-bit OE flow bug] | ||
| 11 | Signed-off-by: Alistair Francis <alistair.francis@wdc.com> | ||
| 12 | |||
| 13 | --- | ||
| 14 | Makefile | 2 -- | ||
| 15 | 1 file changed, 2 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/Makefile b/Makefile | ||
| 18 | index ccf8ea3..69e5b38 100644 | ||
| 19 | --- a/Makefile | ||
| 20 | +++ b/Makefile | ||
| 21 | @@ -169,7 +169,6 @@ GENFLAGS += $(firmware-genflags-y) | ||
| 22 | CFLAGS = -g -Wall -Werror -ffreestanding -nostdlib -fno-strict-aliasing -O2 | ||
| 23 | CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls | ||
| 24 | CFLAGS += -mno-save-restore -mstrict-align | ||
| 25 | -CFLAGS += -mabi=$(PLATFORM_RISCV_ABI) -march=$(PLATFORM_RISCV_ISA) | ||
| 26 | CFLAGS += -mcmodel=$(PLATFORM_RISCV_CODE_MODEL) | ||
| 27 | CFLAGS += $(GENFLAGS) | ||
| 28 | CFLAGS += $(platform-cflags-y) | ||
| 29 | @@ -183,7 +182,6 @@ CPPFLAGS += $(firmware-cppflags-y) | ||
| 30 | ASFLAGS = -g -Wall -nostdlib -D__ASSEMBLY__ | ||
| 31 | ASFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls | ||
| 32 | ASFLAGS += -mno-save-restore -mstrict-align | ||
| 33 | -ASFLAGS += -mabi=$(PLATFORM_RISCV_ABI) -march=$(PLATFORM_RISCV_ISA) | ||
| 34 | ASFLAGS += -mcmodel=$(PLATFORM_RISCV_CODE_MODEL) | ||
| 35 | ASFLAGS += $(GENFLAGS) | ||
| 36 | ASFLAGS += $(platform-asflags-y) | ||
diff --git a/meta/recipes-bsp/opensbi/opensbi_0.9.bb b/meta/recipes-bsp/opensbi/opensbi_1.0.bb index 1956fbf9ff..8430f62543 100644 --- a/meta/recipes-bsp/opensbi/opensbi_0.9.bb +++ b/meta/recipes-bsp/opensbi/opensbi_1.0.bb | |||
| @@ -8,14 +8,13 @@ require opensbi-payloads.inc | |||
| 8 | 8 | ||
| 9 | inherit autotools-brokensep deploy | 9 | inherit autotools-brokensep deploy |
| 10 | 10 | ||
| 11 | SRCREV = "234ed8e427f4d92903123199f6590d144e0d9351" | 11 | SRCREV = "ce4c0188d96b2c20c2e08d24646a5e517fe15a4b" |
| 12 | SRC_URI = "git://github.com/riscv/opensbi.git;branch=master;protocol=https \ | 12 | SRC_URI = "git://github.com/riscv/opensbi.git;branch=master;protocol=https \ |
| 13 | file://0001-Makefile-Don-t-specify-mabi-or-march.patch \ | ||
| 14 | " | 13 | " |
| 15 | 14 | ||
| 16 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
| 17 | 16 | ||
| 18 | EXTRA_OEMAKE += "PLATFORM=${RISCV_SBI_PLAT} I=${D} FW_PIC=n" | 17 | EXTRA_OEMAKE += "PLATFORM=${RISCV_SBI_PLAT} I=${D} FW_PIC=n CLANG_TARGET= " |
| 19 | # If RISCV_SBI_PAYLOAD is set then include it as a payload | 18 | # If RISCV_SBI_PAYLOAD is set then include it as a payload |
| 20 | EXTRA_OEMAKE:append = " ${@riscv_get_extra_oemake_image(d)}" | 19 | EXTRA_OEMAKE:append = " ${@riscv_get_extra_oemake_image(d)}" |
| 21 | EXTRA_OEMAKE:append = " ${@riscv_get_extra_oemake_fdt(d)}" | 20 | EXTRA_OEMAKE:append = " ${@riscv_get_extra_oemake_fdt(d)}" |
