build: add config option KERNEL_MIPS_FPU_EMULATOR
authorYousong Zhou <yszhou4tech@gmail.com>
Mon, 29 Jan 2018 01:40:52 +0000 (09:40 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Mon, 29 Jan 2018 07:06:53 +0000 (15:06 +0800)
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>
config/Config-kernel.in
target/linux/lantiq/ase/config-default
target/linux/pistachio/config-4.9

index fa06b5044219f5080bafce8fe7596dad00a0a708..f686b4a96c298a73bdce7b674c5188b5464b3c9d 100644 (file)
@@ -42,6 +42,11 @@ config KERNEL_DEBUG_FS
          write to these files. Many common debugging facilities, such as
          ftrace, require the existence of debugfs.
 
          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
 config KERNEL_ARM_PMU
        bool
        default n
index b802509022b335938e0d1c1df0b460da51988891..0dfd21436f5b5e6026ed5240f8b06484d210d455 100644 (file)
@@ -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_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
 CONFIG_NLS=y
 # CONFIG_PSB6970_PHY is not set
 # CONFIG_RTL8366_SMI is not set
index a417a6b064bfd91fe07b19fa63284adace32b85d..86eced4339fc1041253f61307474c04b8c31b5ca 100644 (file)
@@ -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_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
 CONFIG_MIPS_GIC=y
 # CONFIG_MIPS_HUGE_TLB_SUPPORT is not set
 CONFIG_MIPS_L1_CACHE_SHIFT=5