diff options
author | Alistair Francis <alistair.francis@wdc.com> | 2020-02-24 10:35:43 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-28 23:11:28 +0000 |
commit | dd3568a37f3916799cac85ca3e89f9dccbd16c50 (patch) | |
tree | 48fd5439094db0a446fd01818c4cb295c7ad0a90 /meta/recipes-bsp/opensbi/files/0001-build-Use-ffreestanding.patch | |
parent | c9426ff8e4db0a49a79276dc57821e377d8d8546 (diff) | |
download | poky-dd3568a37f3916799cac85ca3e89f9dccbd16c50.tar.gz |
opensbi: Update to v0.6
(From OE-Core rev: 20e9ca7745fc8f2392c37c5e5e8d5b0a5f72c06c)
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/opensbi/files/0001-build-Use-ffreestanding.patch')
-rw-r--r-- | meta/recipes-bsp/opensbi/files/0001-build-Use-ffreestanding.patch | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/meta/recipes-bsp/opensbi/files/0001-build-Use-ffreestanding.patch b/meta/recipes-bsp/opensbi/files/0001-build-Use-ffreestanding.patch deleted file mode 100644 index 4899fad6aa..0000000000 --- a/meta/recipes-bsp/opensbi/files/0001-build-Use-ffreestanding.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | From efa39afecedf75a1f3154c39507bdde2810bc140 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 6 Jan 2020 18:21:02 -0800 | ||
4 | Subject: [PATCH] build: Use -ffreestanding | ||
5 | |||
6 | this is a stand-alone/baremetal application, therefore demanding | ||
7 | -ffreestanding would help it compile with hosted toolchains e.g. ( linux | ||
8 | toolchains ), it also ensures that it won't be using platform | ||
9 | optimizations like inlining mem* str* functions which gcc might decide | ||
10 | especially with wrapper string functions in opensbi code | ||
11 | |||
12 | Upstream-Status: Accepted [https://github.com/riscv/opensbi/commit/049ad0b3877352527ab470eba33bc767e9b54961] | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | Makefile | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | --- a/Makefile | ||
19 | +++ b/Makefile | ||
20 | @@ -159,7 +159,7 @@ GENFLAGS += $(libsbiutils-genflags-y) | ||
21 | GENFLAGS += $(platform-genflags-y) | ||
22 | GENFLAGS += $(firmware-genflags-y) | ||
23 | |||
24 | -CFLAGS = -g -Wall -Werror -nostdlib -fno-strict-aliasing -O2 | ||
25 | +CFLAGS = -g -Wall -Werror -ffreestanding -nostdlib -fno-strict-aliasing -O2 | ||
26 | CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls | ||
27 | CFLAGS += -mno-save-restore -mstrict-align | ||
28 | CFLAGS += -mcmodel=$(PLATFORM_RISCV_CODE_MODEL) | ||