summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/console/Kconfig2
-rw-r--r--toolchain.inc3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/console/Kconfig b/src/console/Kconfig
index e686506c451e..0a0e06949967 100644
--- a/src/console/Kconfig
+++ b/src/console/Kconfig
@@ -2,7 +2,7 @@ menu "Console"
config BOOTBLOCK_CONSOLE
bool "Enable early (bootblock) console output."
- depends on ARCH_ARM || ARCH_RISCV
+ depends on ARCH_ARM || ARCH_RISCV || ARCH_MIPS
default n
help
Use console during the bootblock if supported
diff --git a/toolchain.inc b/toolchain.inc
index 83f478b9f28c..d69fe26e7616 100644
--- a/toolchain.inc
+++ b/toolchain.inc
@@ -64,7 +64,8 @@ CFLAGS_arm := -mno-unaligned-access -ffunction-sections -fdata-sections
CFLAGS_arm64 := -ffunction-sections -fdata-sections
-CFLAGS_mipsel := -mips32r2 -G 0 -ffunction-sections -fdata-sections
+CFLAGS_mipsel := -mips32r2 -G 0 -ffunction-sections -fdata-sections
+CFLAGS_mipsel += -mno-abicalls -fno-pic
CFLAGS_x86_32 := -ffunction-sections -fdata-sections