mirror of
https://github.com/raspberrypi/linux.git
synced 2026-01-02 07:43:34 +00:00
[ Upstream commit 41e4564002 ]
set cpu_hwmon as a module build with loongson_sysconf, loongson_chiptemp
undefined error,fix cpu_hwmon compile options to be bool.Some kernel
compilation error information is as follows:
Checking missing-syscalls for N32
CALL scripts/checksyscalls.sh
Checking missing-syscalls for O32
CALL scripts/checksyscalls.sh
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC [M] drivers/platform/mips/cpu_hwmon.o
Building modules, stage 2.
MODPOST 200 modules
ERROR: "loongson_sysconf" [drivers/platform/mips/cpu_hwmon.ko] undefined!
ERROR: "loongson_chiptemp" [drivers/platform/mips/cpu_hwmon.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:92:__modpost] 错误 1
make: *** [Makefile:1261:modules] 错误 2
Signed-off-by: Yupeng Li <liyupeng@zbhlos.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Huacai Chen <chenhuacai@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
34 lines
863 B
Plaintext
34 lines
863 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# MIPS Platform Specific Drivers
|
|
#
|
|
|
|
menuconfig MIPS_PLATFORM_DEVICES
|
|
bool "MIPS Platform Specific Device Drivers"
|
|
default y
|
|
help
|
|
Say Y here to get to see options for device drivers of various
|
|
MIPS platforms, including vendor-specific netbook/laptop/desktop
|
|
extension and hardware monitor drivers. This option itself does
|
|
not add any kernel code.
|
|
|
|
If you say N, all options in this submenu will be skipped and disabled.
|
|
|
|
if MIPS_PLATFORM_DEVICES
|
|
|
|
config CPU_HWMON
|
|
bool "Loongson-3 CPU HWMon Driver"
|
|
depends on MACH_LOONGSON64
|
|
select HWMON
|
|
default y
|
|
help
|
|
Loongson-3A/3B CPU Hwmon (temperature sensor) driver.
|
|
|
|
config RS780E_ACPI
|
|
bool "Loongson RS780E ACPI Controller"
|
|
depends on MACH_LOONGSON64 || COMPILE_TEST
|
|
help
|
|
Loongson RS780E PCH ACPI Controller driver.
|
|
|
|
endif # MIPS_PLATFORM_DEVICES
|