diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-01-08 08:42:54 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-10 21:18:22 +0000 |
commit | 019f8d3c0023b3d74790896148c174060cb2a604 (patch) | |
tree | 4f4cab89e7fcb1b2475100710ffab85dc7392f85 /meta/recipes-bsp/opensbi/opensbi_0.5.bb | |
parent | 1eecc83125ae1dee10537a13620c8355edf1d001 (diff) | |
download | poky-019f8d3c0023b3d74790896148c174060cb2a604.tar.gz |
opensbi: Use -ffreestanding compiler options
This usually helps compiler to not use built-in optimizations
for string functions and mem* functions unnecessarily, since OE's
compiler is hosted for linux cross compile, this also means we instruct
it rightly for building a baremetal application
Refresh the patches to apply without fuzz
Fixes linking errors e.g.
platform/qemu/virt/lib/libplatsbi.a(sbi_string.o): in function `sbi_memset':
| /mnt/b/yoe/build/tmp/work/riscv64-yoe-linux/opensbi/0.5-r0/git/lib/sbi/sbi_string.c:102: undefined reference to `memset'
| collect2: error: ld returned 1 exit status
(From OE-Core rev: f599b6c77f3585c8917f4d685689da4cc8a8bf04)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/opensbi/opensbi_0.5.bb')
-rw-r--r-- | meta/recipes-bsp/opensbi/opensbi_0.5.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-bsp/opensbi/opensbi_0.5.bb b/meta/recipes-bsp/opensbi/opensbi_0.5.bb index 759bbbfdaa..6a9026254c 100644 --- a/meta/recipes-bsp/opensbi/opensbi_0.5.bb +++ b/meta/recipes-bsp/opensbi/opensbi_0.5.bb | |||
@@ -11,6 +11,7 @@ inherit autotools-brokensep deploy | |||
11 | SRCREV = "be92da280d87c38a2e0adc5d3f43bab7b5468f09" | 11 | SRCREV = "be92da280d87c38a2e0adc5d3f43bab7b5468f09" |
12 | SRC_URI = "git://github.com/riscv/opensbi.git \ | 12 | SRC_URI = "git://github.com/riscv/opensbi.git \ |
13 | file://0001-Makefile-Don-t-specify-mabi-or-march.patch \ | 13 | file://0001-Makefile-Don-t-specify-mabi-or-march.patch \ |
14 | file://0001-build-Use-ffreestanding.patch \ | ||
14 | " | 15 | " |
15 | 16 | ||
16 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |