Skip to content

Commit

Permalink
config: try to get build system to build modules
Browse files Browse the repository at this point in the history
Throw everything together as PoC
  • Loading branch information
graysky2 committed Dec 11, 2024
1 parent 162c367 commit da6d0a5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions package/kernel/linux/modules/other.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion target/linux/bcm27xx/image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da6d0a5

Please sign in to comment.