Skip to contentSkip to conversation

RISC-V: nmon: fix SiFive DEBUG_LL build

PATCH Applied Ahmad Fatoum 2 participants 2 messages Nov 29, 2021 – Nov 30, 2021 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RISC-V: nmon: fix SiFive DEBUG_LL build

nmon includes <debug_ll.h> in assembly source, so add __ASSEMBLY__ guards, so the build doesn't fail.

---
 arch/riscv/include/asm/debug_ll.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/include/asm/debug_ll.h +1 -1
index d01b4f09b8e1..867c96d79724 100644
@@ -36,7 +36,7 @@
 
 #include <asm/debug_ll_ns16550.h>
 
-#elif defined CONFIG_DEBUG_SIFIVE
+#elif defined CONFIG_DEBUG_SIFIVE && !defined __ASSEMBLY__
 
 #include <io.h>
 
Signature · 7 lines
2.33.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 7 lines · Ahmad Fatoum

nmon includes <debug_ll.h> in assembly source, so add __ASSEMBLY__ guards, so the build doesn't fail.

---
 arch/riscv/include/asm/debug_ll.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox