aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2018-01-29 09:40:52 +0800
committerYousong Zhou <yszhou4tech@gmail.com>2018-01-29 15:06:53 +0800
commit82ceb2ad2a155b65979630e774b728310c328be2 (patch)
tree9f526b35a24cc48340bd37f68394b956316e3aed
parent1d9296dcdb3fefd7e11838ff39220e99b8ad2a24 (diff)
downloadupstream-82ceb2ad2a155b65979630e774b728310c328be2.tar.gz
upstream-82ceb2ad2a155b65979630e774b728310c328be2.tar.bz2
upstream-82ceb2ad2a155b65979630e774b728310c328be2.zip
build: add config option KERNEL_MIPS_FPU_EMULATOR
To make it more accessible for nodejs users to configure and run a build on mips target lacking hardware fpu Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
-rw-r--r--config/Config-kernel.in5
-rw-r--r--target/linux/lantiq/ase/config-default1
-rw-r--r--target/linux/pistachio/config-4.91
3 files changed, 5 insertions, 2 deletions
diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index fa06b50442..f686b4a96c 100644
--- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -42,6 +42,11 @@ config KERNEL_DEBUG_FS
write to these files. Many common debugging facilities, such as
ftrace, require the existence of debugfs.
+config KERNEL_MIPS_FPU_EMULATOR
+ bool "Compile the kernel with MIPS FPU Emulator"
+ default (TARGET_lantiq_ase || TARGET_pistachio)
+ depends on (mips || mipsel || mips64 || mips64el)
+
config KERNEL_ARM_PMU
bool
default n
diff --git a/target/linux/lantiq/ase/config-default b/target/linux/lantiq/ase/config-default
index b802509022..0dfd21436f 100644
--- a/target/linux/lantiq/ase/config-default
+++ b/target/linux/lantiq/ase/config-default
@@ -11,7 +11,6 @@ CONFIG_GPIO_GENERIC_PLATFORM=y
# CONFIG_ISDN is not set
# CONFIG_LBDAF is not set
CONFIG_LEDS_TRIGGER_HEARTBEAT=y
-CONFIG_MIPS_FPU_EMULATOR=y
CONFIG_NLS=y
# CONFIG_PSB6970_PHY is not set
# CONFIG_RTL8366_SMI is not set
diff --git a/target/linux/pistachio/config-4.9 b/target/linux/pistachio/config-4.9
index a417a6b064..86eced4339 100644
--- a/target/linux/pistachio/config-4.9
+++ b/target/linux/pistachio/config-4.9
@@ -186,7 +186,6 @@ CONFIG_MIPS_CPS_PM=y
CONFIG_MIPS_CPU_SCACHE=y
# CONFIG_MIPS_ELF_APPENDED_DTB is not set
CONFIG_MIPS_EXTERNAL_TIMER=y
-CONFIG_MIPS_FPU_EMULATOR=y
CONFIG_MIPS_GIC=y
# CONFIG_MIPS_HUGE_TLB_SUPPORT is not set
CONFIG_MIPS_L1_CACHE_SHIFT=5