buildroot/package/riscv-isa-sim/0001-riscv-disable-precompiled-headers.patch
Julien Olivain 410921cceb package/riscv-isa-sim: update the patch to be applied with fuzz 0
Commit 8f88a644ed "support/scripts/apply-patches.sh: set the maximum
fuzz factor to 0" reduced the fuzz factor.

Due to this change, host-riscv-isa-sim fail to build with output:

    Applying 0001-riscv-disable-precompiled-headers.patch using patch:
    patching file riscv/riscv.mk.in
    Hunk #1 FAILED at 35.
    1 out of 1 hunk FAILED -- saving rejects to file riscv/riscv.mk.in.rej

This commit rebased the package patch on the package version, bumped in
commit 853b7661bf "package/riscv-isa-sim: bump to git version
00dfa28cd7".

Signed-off-by: Julien Olivain <ju.o@free.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2024-06-25 19:27:00 +02:00

35 lines
874 B
Diff

From 12e0257495de41202827fabd5935f2e5a92ae8a6 Mon Sep 17 00:00:00 2001
From: Julien Olivain <ju.o@free.fr>
Date: Sun, 9 Jan 2022 13:38:48 +0100
Subject: [PATCH] riscv: disable precompiled headers
While precompiling header, some toolchains fail with the message:
/path/to/toolchain/bin/ld: /path/to/sysroot/usr/lib/Scrt1.o: in function `_start':
(.text+0x54): undefined reference to `main'
The patch totally disable precompiled headers.
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
riscv/riscv.mk.in | 3 ---
1 file changed, 3 deletions(-)
diff --git a/riscv/riscv.mk.in b/riscv/riscv.mk.in
index 469c48dc..c61cadaf 100644
--- a/riscv/riscv.mk.in
+++ b/riscv/riscv.mk.in
@@ -45,9 +45,6 @@ riscv_install_hdrs = \
triggers.h \
vector_unit.h \
-riscv_precompiled_hdrs = \
- insn_template.h \
-
riscv_srcs = \
processor.cc \
execute.cc \
--
2.45.2