mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-27 06:39:51 +00:00
7a112661d5
Correct a few mistakes around dependencies and naming and unset CONFIG_FIRMWARE_RP1 in RPi5B's config and instead of a builtin, build it as a module. Without this change, there are two entries for rp1.ko in /lib/modules/$(uname -r)/modules.builtin due to how we strip the leading directories when we generate it. See: package/kernel/linux/Makefile around line 63. % grep rp1.ko /lib/modules/$(uname -r)/modules.builtin pwm-rp1.ko clk-rp1.ko rp1.ko rp1.ko The kernel log gets spammed with tons of superfluous warnings as a results of the double entry: daemon.warn modprobe: found duplicate builtin module rp1 Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/17461 Signed-off-by: Robert Marko <robimarko@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> (cherry picked from commit f105d1a9a9739267fb25612d039c392a397775bd)
37 lines
945 B
Makefile
37 lines
945 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Copyright (C) 2019 OpenWrt.org
|
|
|
|
define KernelPackage/rp1-adc
|
|
SUBMENU:=$(OTHER_MENU)
|
|
TITLE:=RP1 ADC and temperature sensor driver
|
|
KCONFIG:=CONFIG_SENSORS_RP1_ADC
|
|
FILES:=$(LINUX_DIR)/drivers/hwmon/rp1-adc.ko
|
|
AUTOLOAD:=$(call AutoLoad,21,rp1-adc)
|
|
DEPENDS:=@TARGET_bcm27xx_bcm2712
|
|
endef
|
|
|
|
define KernelPackage/rp1-adc/description
|
|
Kernel module for RP1 silicon providing ADC and
|
|
temperature monitoring.
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,rp1-adc))
|
|
|
|
|
|
define KernelPackage/hwmon-raspberrypi
|
|
TITLE:=Raspberry Pi voltage monitor
|
|
KCONFIG:=CONFIG_SENSORS_RASPBERRYPI_HWMON
|
|
FILES:=$(LINUX_DIR)/drivers/hwmon/raspberrypi-hwmon.ko
|
|
AUTOLOAD:=$(call AutoLoad,60,raspberrypi-hwmon)
|
|
$(call AddDepends/hwmon,@TARGET_bcm27xx)
|
|
endef
|
|
|
|
define KernelPackage/hwmon-raspberrypi/description
|
|
Kernel module for voltage sensor on the Raspberry Pi
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,hwmon-raspberrypi))
|
|
|
|
|