[openwrt/openwrt] stm32: sort kernel module packages in alphabetical order

LEDE Commits lede-commits at lists.infradead.org
Sat Apr 19 09:46:51 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/7ad335e56ec443dd8d8e7c4a07201be009212991

commit 7ad335e56ec443dd8d8e7c4a07201be009212991
Author: Thomas Richard <thomas.richard at bootlin.com>
AuthorDate: Wed Feb 26 10:33:58 2025 +0100

    stm32: sort kernel module packages in alphabetical order
    
    In modules.mk, sort packages in alphabetical order.
    
    Signed-off-by: Thomas Richard <thomas.richard at bootlin.com>
    Link: https://github.com/openwrt/openwrt/pull/18119
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/stm32/modules.mk | 224 +++++++++++++++++++++---------------------
 1 file changed, 112 insertions(+), 112 deletions(-)

diff --git a/target/linux/stm32/modules.mk b/target/linux/stm32/modules.mk
index 2249218105..4daf956438 100644
--- a/target/linux/stm32/modules.mk
+++ b/target/linux/stm32/modules.mk
@@ -2,22 +2,6 @@
 #
 # Copyright (C) 2024 Bootlin
 
-define KernelPackage/phy-stm32-usbphyc
-  TITLE:=STM32 USB HS PHY Controller driver
-  DEPENDS:=@TARGET_stm32
-  SUBMENU:=$(USB_MENU)
-  KCONFIG:=CONFIG_PHY_STM32_USBPHYC
-  FILES:=$(LINUX_DIR)/drivers/phy/st/phy-stm32-usbphyc.ko
-  AUTOLOAD:=$(call AutoProbe,phy-stm32-usbphyc,)
-endef
-
-define KernelPackage/phy-stm32-usbphyc/description
-  Kernel module for STM32 USB HS PHY Controller
-endef
-
-$(eval $(call KernelPackage,phy-stm32-usbphyc))
-
-
 define KernelPackage/bxcan
   TITLE:=STM32 Basic Extended CAN (bxCAN) devices
   KCONFIG:=CONFIG_CAN_BXCAN
@@ -29,24 +13,32 @@ endef
 $(eval $(call KernelPackage,bxcan))
 
 
-define KernelPackage/spi-stm32
-  SUBMENU=$(SPI_MENU)
-  TITLE:=STM32 SPI controller
+define KernelPackage/nvmem-stm32-romem
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=STM32 factory-programmed memory support
   DEPENDS:=@TARGET_stm32
-  KCONFIG:=CONFIG_SPI_STM32 \
-	   CONFIG_SPI=y \
-	   CONFIG_SPI_MASTER=y \
-	   CONFIG_SPI_SLAVE_TIME=n \
-	   CONFIG_SPI_SLAVE_SYSTEM_CONTROL=n
-  FILES=$(LINUX_DIR)/drivers/spi/spi-stm32.ko
-  AUTOLOAD:=$(call AutoProbe,spi-stm32)
+  KCONFIG:=CONFIG_NVMEM_STM32_ROMEM
+  FILES:=$(LINUX_DIR)/drivers/nvmem/nvmem_stm32_romem.ko
+  AUTOLOAD:=$(call AutoProbe,nvmem-stm32-romem)
 endef
 
-define KernelPackage/spi-stm32/description
-  SPI driver for STMicroelectronics STM32 SoCs.
+$(eval $(call KernelPackage,nvmem-stm32-romem))
+
+
+define KernelPackage/phy-stm32-usbphyc
+  TITLE:=STM32 USB HS PHY Controller driver
+  DEPENDS:=@TARGET_stm32
+  SUBMENU:=$(USB_MENU)
+  KCONFIG:=CONFIG_PHY_STM32_USBPHYC
+  FILES:=$(LINUX_DIR)/drivers/phy/st/phy-stm32-usbphyc.ko
+  AUTOLOAD:=$(call AutoProbe,phy-stm32-usbphyc,)
 endef
 
-$(eval $(call KernelPackage,spi-stm32))
+define KernelPackage/phy-stm32-usbphyc/description
+  Kernel module for STM32 USB HS PHY Controller
+endef
+
+$(eval $(call KernelPackage,phy-stm32-usbphyc))
 
 
 define KernelPackage/scmi-hwmon
@@ -60,27 +52,26 @@ endef
 $(eval $(call KernelPackage,scmi-hwmon))
 
 
-define KernelPackage/stm32-dcmi
-  TITLE:=STM32 Digital Camera Memory Interface support
-  KCONFIG:=CONFIG_VIDEO_STM32_DCMI
-  FILES:=$(LINUX_DIR)/drivers/media/platform/st/stm32/stm32-dcmi.ko
-  AUTOLOAD:=$(call AutoProbe,stm32-dcmi)
-  $(call AddDepends/video, at TARGET_stm32 +kmod-video-videobuf2 +kmod-video-dma-contig +kmod-video-async +kmod-video-fwnode)
+define KernelPackage/scmi-iio
+  TITLE:=IIO SCMI
+  KCONFIG=CONFIG_IIO_SCMI
+  FILES:=$(LINUX_DIR)/drivers/iio/common/scmi_sensors/scmi_iio.ko
+  AUTOLOAD:=$(call AutoProbe,scmi_iio)
+  $(call AddDepends/iio, at TARGET_stm32 +kmod-iio-kfifo-buf)
 endef
 
-$(eval $(call KernelPackage,stm32-dcmi))
+$(eval $(call KernelPackage,scmi-iio))
 
 
-define KernelPackage/sound-soc-stm32-sai
-  TITLE:=STM32 SAI interface (Serial Audio Interface) support
-  KCONFIG:=CONFIG_SND_SOC_STM32_SAI
-  FILES:=$(LINUX_DIR)/sound/soc/stm/snd-soc-stm32-sai-sub.ko \
-	 $(LINUX_DIR)/sound/soc/stm/snd-soc-stm32-sai.ko
-  AUTOLOAD:=$(call AutoProbe,snd-soc-stm32-sai-sub snd-soc-stm32-sai)
-  $(call AddDepends/sound, at TARGET_stm32 +kmod-sound-soc-core)
+define KernelPackage/sound-soc-stm32-dfsdm
+  TITLE:=SoC Audio support for STM32 DFSDM
+  KCONFIG:=CONFIG_SND_SOC_STM32_DFSDM
+  FILES:=$(LINUX_DIR)/sound/soc/stm/stm32_adfsdm.ko
+  AUTOLOAD:=$(call AutoProbe,stm32_adfsdm)
+  $(call AddDepends/sound, at TARGET_stm32 +kmod-sound-soc-core +kmod-stm32-dfsdm-adc +kmod-industrialio-buffer-cb)
 endef
 
-$(eval $(call KernelPackage,sound-soc-stm32-sai))
+$(eval $(call KernelPackage,sound-soc-stm32-dfsdm))
 
 
 define KernelPackage/sound-soc-stm32-i2s
@@ -94,6 +85,18 @@ endef
 $(eval $(call KernelPackage,sound-soc-stm32-i2s))
 
 
+define KernelPackage/sound-soc-stm32-sai
+  TITLE:=STM32 SAI interface (Serial Audio Interface) support
+  KCONFIG:=CONFIG_SND_SOC_STM32_SAI
+  FILES:=$(LINUX_DIR)/sound/soc/stm/snd-soc-stm32-sai-sub.ko \
+	 $(LINUX_DIR)/sound/soc/stm/snd-soc-stm32-sai.ko
+  AUTOLOAD:=$(call AutoProbe,snd-soc-stm32-sai-sub snd-soc-stm32-sai)
+  $(call AddDepends/sound, at TARGET_stm32 +kmod-sound-soc-core)
+endef
+
+$(eval $(call KernelPackage,sound-soc-stm32-sai))
+
+
 define KernelPackage/sound-soc-stm32-spdifrx
   TITLE:=STM32 S/PDIF receiver (SPDIFRX) support
   KCONFIG:=CONFIG_SND_SOC_STM32_SPDIFRX
@@ -105,38 +108,24 @@ endef
 $(eval $(call KernelPackage,sound-soc-stm32-spdifrx))
 
 
-define KernelPackage/sound-soc-stm32-dfsdm
-  TITLE:=SoC Audio support for STM32 DFSDM
-  KCONFIG:=CONFIG_SND_SOC_STM32_DFSDM
-  FILES:=$(LINUX_DIR)/sound/soc/stm/stm32_adfsdm.ko
-  AUTOLOAD:=$(call AutoProbe,stm32_adfsdm)
-  $(call AddDepends/sound, at TARGET_stm32 +kmod-sound-soc-core +kmod-stm32-dfsdm-adc +kmod-industrialio-buffer-cb)
-endef
-
-$(eval $(call KernelPackage,sound-soc-stm32-dfsdm))
-
-
-define KernelPackage/stm32-timers
-  TITLE:=STM32 Timers
-  DEPENDS:=@TARGET_stm32 +kmod-mfd
-  SUBMENU:=$(OTHER_MENU)
-  KCONFIG:=CONFIG_MFD_STM32_TIMERS
-  FILES:=$(LINUX_DIR)/drivers/mfd/stm32-timers.ko
-  AUTOLOAD:=$(call AutoProbe,stm32-timers)
+define KernelPackage/spi-stm32
+  SUBMENU=$(SPI_MENU)
+  TITLE:=STM32 SPI controller
+  DEPENDS:=@TARGET_stm32
+  KCONFIG:=CONFIG_SPI_STM32 \
+	   CONFIG_SPI=y \
+	   CONFIG_SPI_MASTER=y \
+	   CONFIG_SPI_SLAVE_TIME=n \
+	   CONFIG_SPI_SLAVE_SYSTEM_CONTROL=n
+  FILES=$(LINUX_DIR)/drivers/spi/spi-stm32.ko
+  AUTOLOAD:=$(call AutoProbe,spi-stm32)
 endef
 
-$(eval $(call KernelPackage,stm32-timers))
-
-
-define KernelPackage/stm32-timer-trigger
-  TITLE:=STM32 Timer Trigger
-  KCONFIG:=CONFIG_IIO_STM32_TIMER_TRIGGER
-  FILES:=$(LINUX_DIR)/drivers/iio/trigger/stm32-timer-trigger.ko
-  AUTOLOAD:=$(call AutoProbe,stm32-timer-trigger)
-  $(call AddDepends/iio, at TARGET_stm32 +kmod-stm32-timers)
+define KernelPackage/spi-stm32/description
+  SPI driver for STMicroelectronics STM32 SoCs.
 endef
 
-$(eval $(call KernelPackage,stm32-timer-trigger))
+$(eval $(call KernelPackage,spi-stm32))
 
 
 define KernelPackage/stm32-adc
@@ -152,28 +141,28 @@ endef
 $(eval $(call KernelPackage,stm32-adc))
 
 
-define KernelPackage/stm32-dfsdm-adc
-  TITLE:=STM32 DFSDM ADC
-  KCONFIG:=CONFIG_STM32_DFSDM_CORE \
-	   CONFIG_STM32_DFSDM_ADC
-  FILES:=$(LINUX_DIR)/drivers/iio/adc/stm32-dfsdm-core.ko \
-	 $(LINUX_DIR)/drivers/iio/adc/stm32-dfsdm-adc.ko
-  AUTOLOAD:=$(call AutoProbe,stm32-dfsdm-core stm32-dfsdm-adc)
-  $(call AddDepends/iio, at TARGET_stm32 +kmod-stm32-timer-trigger +kmod-industrialio-triggered-buffer +kmod-industrialio-hw-consumer)
+define KernelPackage/stm32-crc32
+  TITLE:=Support for STM32 crc accelerators
+  KCONFIG:=CONFIG_CRYPTO_DEV_STM32_CRC \
+	   CONFIG_CRYPTO_HW=y
+  FILES:=$(LINUX_DIR)/drivers/crypto/stm32/stm32-crc32.ko
+  AUTOLOAD:=$(call AutoProbe,stm32-crc32)
+  $(call AddDepends/crypto, at TARGET_stm32 +kmod-crypto-crc32)
 endef
 
-$(eval $(call KernelPackage,stm32-dfsdm-adc))
+$(eval $(call KernelPackage,stm32-crc32))
 
 
-define KernelPackage/scmi-iio
-  TITLE:=IIO SCMI
-  KCONFIG=CONFIG_IIO_SCMI
-  FILES:=$(LINUX_DIR)/drivers/iio/common/scmi_sensors/scmi_iio.ko
-  AUTOLOAD:=$(call AutoProbe,scmi_iio)
-  $(call AddDepends/iio, at TARGET_stm32 +kmod-iio-kfifo-buf)
+define KernelPackage/stm32-cryp
+  TITLE:=Support for STM32 cryp accelerators
+  KCONFIG:=CONFIG_CRYPTO_DEV_STM32_CRYP \
+	   CONFIG_CRYPTO_LIB_DES=y
+  FILES:=$(LINUX_DIR)/drivers/crypto/stm32/stm32-cryp.ko
+  AUTOLOAD:=$(call AutoProbe,stm32-cryp)
+  $(call AddDepends/crypto, at TARGET_stm32 +kmod-crypto-hash +kmod-crypto-des +kmod-crypto-engine)
 endef
 
-$(eval $(call KernelPackage,scmi-iio))
+$(eval $(call KernelPackage,stm32-cryp))
 
 
 define KernelPackage/stm32-dac
@@ -190,28 +179,28 @@ endef
 $(eval $(call KernelPackage,stm32-dac))
 
 
-define KernelPackage/nvmem-stm32-romem
-  SUBMENU:=$(OTHER_MENU)
-  TITLE:=STM32 factory-programmed memory support
-  DEPENDS:=@TARGET_stm32
-  KCONFIG:=CONFIG_NVMEM_STM32_ROMEM
-  FILES:=$(LINUX_DIR)/drivers/nvmem/nvmem_stm32_romem.ko
-  AUTOLOAD:=$(call AutoProbe,nvmem-stm32-romem)
+define KernelPackage/stm32-dcmi
+  TITLE:=STM32 Digital Camera Memory Interface support
+  KCONFIG:=CONFIG_VIDEO_STM32_DCMI
+  FILES:=$(LINUX_DIR)/drivers/media/platform/st/stm32/stm32-dcmi.ko
+  AUTOLOAD:=$(call AutoProbe,stm32-dcmi)
+  $(call AddDepends/video, at TARGET_stm32 +kmod-video-videobuf2 +kmod-video-dma-contig +kmod-video-async +kmod-video-fwnode)
 endef
 
-$(eval $(call KernelPackage,nvmem-stm32-romem))
+$(eval $(call KernelPackage,stm32-dcmi))
 
 
-define KernelPackage/stm32-crc32
-  TITLE:=Support for STM32 crc accelerators
-  KCONFIG:=CONFIG_CRYPTO_DEV_STM32_CRC \
-	   CONFIG_CRYPTO_HW=y
-  FILES:=$(LINUX_DIR)/drivers/crypto/stm32/stm32-crc32.ko
-  AUTOLOAD:=$(call AutoProbe,stm32-crc32)
-  $(call AddDepends/crypto, at TARGET_stm32 +kmod-crypto-crc32)
+define KernelPackage/stm32-dfsdm-adc
+  TITLE:=STM32 DFSDM ADC
+  KCONFIG:=CONFIG_STM32_DFSDM_CORE \
+	   CONFIG_STM32_DFSDM_ADC
+  FILES:=$(LINUX_DIR)/drivers/iio/adc/stm32-dfsdm-core.ko \
+	 $(LINUX_DIR)/drivers/iio/adc/stm32-dfsdm-adc.ko
+  AUTOLOAD:=$(call AutoProbe,stm32-dfsdm-core stm32-dfsdm-adc)
+  $(call AddDepends/iio, at TARGET_stm32 +kmod-stm32-timer-trigger +kmod-industrialio-triggered-buffer +kmod-industrialio-hw-consumer)
 endef
 
-$(eval $(call KernelPackage,stm32-crc32))
+$(eval $(call KernelPackage,stm32-dfsdm-adc))
 
 
 define KernelPackage/stm32-hash
@@ -233,16 +222,27 @@ endef
 $(eval $(call KernelPackage,stm32-hash))
 
 
-define KernelPackage/stm32-cryp
-  TITLE:=Support for STM32 cryp accelerators
-  KCONFIG:=CONFIG_CRYPTO_DEV_STM32_CRYP \
-	   CONFIG_CRYPTO_LIB_DES=y
-  FILES:=$(LINUX_DIR)/drivers/crypto/stm32/stm32-cryp.ko
-  AUTOLOAD:=$(call AutoProbe,stm32-cryp)
-  $(call AddDepends/crypto, at TARGET_stm32 +kmod-crypto-hash +kmod-crypto-des +kmod-crypto-engine)
+define KernelPackage/stm32-timers
+  TITLE:=STM32 Timers
+  DEPENDS:=@TARGET_stm32 +kmod-mfd
+  SUBMENU:=$(OTHER_MENU)
+  KCONFIG:=CONFIG_MFD_STM32_TIMERS
+  FILES:=$(LINUX_DIR)/drivers/mfd/stm32-timers.ko
+  AUTOLOAD:=$(call AutoProbe,stm32-timers)
 endef
 
-$(eval $(call KernelPackage,stm32-cryp))
+$(eval $(call KernelPackage,stm32-timers))
+
+
+define KernelPackage/stm32-timer-trigger
+  TITLE:=STM32 Timer Trigger
+  KCONFIG:=CONFIG_IIO_STM32_TIMER_TRIGGER
+  FILES:=$(LINUX_DIR)/drivers/iio/trigger/stm32-timer-trigger.ko
+  AUTOLOAD:=$(call AutoProbe,stm32-timer-trigger)
+  $(call AddDepends/iio, at TARGET_stm32 +kmod-stm32-timers)
+endef
+
+$(eval $(call KernelPackage,stm32-timer-trigger))
 
 
 define KernelPackage/st-thermal




More information about the lede-commits mailing list