From da6d0a57351443154880663f88423f2b35938d9a Mon Sep 17 00:00:00 2001 From: John Audia Date: Wed, 11 Dec 2024 14:45:22 -0500 Subject: [PATCH] config: try to get build system to build modules Throw everything together as PoC --- package/kernel/linux/modules/other.mk | 28 +++++++++++++++++++++++++++ target/linux/bcm27xx/image/Makefile | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index 7b64985fd69e7d..7699c934ed0752 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -1038,6 +1038,34 @@ endef $(eval $(call KernelPackage,keys-trusted)) +define KernelPackage/rp1 + TITLE:=RP1 title + KCONFIG:= \ + CONFIG_FIRMWARE_RP1 \ + CONFIG_RP1_PIO \ + CONFIG_PINCTRL_RP1 \ + CONFIG_COMMON_CLK_RP1_SDIO \ + CONFIG_MBOX_RP1 \ + CONFIG_PWM_PIO_RP1 \ + CONFIG_PINCTRL_RP1=y \ + CONFIG_MFD_RP1=y \ + CONFIG_COMMON_CLK_RP1=y \ + CONFIG_COMMON_CLK_RP1_SDIO=y \ + CONFIG_PWM_RP1=y + FILES:= \ + $(LINUX_DIR)/drivers/firmware/rp1.ko \ + $(LINUX_DIR)/drivers/p1-mailbox.ko \ + $(LINUX_DIR)/drivers/misc/rp1-pio.ko \ + $(LINUX_DIR)/drivers/pwm/pwm-pio-rp1.ko + AUTOLOAD:=$(call AutoLoad,10,rp1) +endef + +define KernelPackage/rp1/description + RP1 modules +endef + +$(eval $(call KernelPackage,rp1)) + define KernelPackage/tpm SUBMENU:=$(OTHER_MENU) TITLE:=TPM Hardware Support diff --git a/target/linux/bcm27xx/image/Makefile b/target/linux/bcm27xx/image/Makefile index 23bc3a35c9edd8..ee6bdf9564c5c8 100644 --- a/target/linux/bcm27xx/image/Makefile +++ b/target/linux/bcm27xx/image/Makefile @@ -201,7 +201,7 @@ define Device/rpi-5 cypress-firmware-43455-sdio \ brcmfmac-nvram-43455-sdio \ kmod-brcmfmac wpad-basic-mbedtls \ - kmod-hwmon-pwmfan kmod-thermal + kmod-hwmon-pwmfan kmod-thermal kmod-rp1 IMAGE/sysupgrade.img.gz := boot-common | sdcard-img | gzip | append-metadata IMAGE/factory.img.gz := boot-common | sdcard-img | gzip endef