1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-18 21:48:23 +02:00
openwrt/target/linux/layerscape/modules.mk
Pawel Dembicki 5b0e111789 layerscape: kmod-ppfe: Use ppfe driver as module
In 8274451cb86 kmod-ppfe was changed to built-in because CONFIG_FSL_PPFE
was binary. In 5.10 and 5.15 kernel, PPFE driver can be build as module.

This patch switch kmod-ppfe from build-in to loadable module.
Loadable module helps to avoid hazard: driver is looking for firmware
file before mount root.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
2022-11-27 13:18:29 +01:00

36 lines
996 B
Makefile

# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) Jiang Yutang <jiangyutang1978@gmail.com>
define KernelPackage/ahci-qoriq
SUBMENU:=$(BLOCK_MENU)
TITLE:=Freescale QorIQ AHCI SATA support
KCONFIG:=CONFIG_AHCI_QORIQ
FILES:=$(LINUX_DIR)/drivers/ata/ahci_qoriq.ko
AUTOLOAD:=$(call AutoLoad,40,ahci-qoriq,1)
$(call AddDepends/ata,+kmod-ata-ahci-platform @TARGET_layerscape)
endef
define KernelPackage/ahci-qoriq/description
This option enables support for the Freescale QorIQ AHCI SoC's
onboard AHCI SATA.
endef
$(eval $(call KernelPackage,ahci-qoriq))
define KernelPackage/ppfe
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Freescale PPFE Driver support
DEPENDS:=@TARGET_layerscape
KCONFIG:=CONFIG_FSL_PPFE \
CONFIG_FSL_PPFE_UTIL_DISABLED=y
FILES:=$(LINUX_DIR)/drivers/staging/fsl_ppfe/pfe.ko
AUTOLOAD:=$(call AutoLoad,35,pfe)
endef
define KernelPackage/ppfe/description
Kernel modules for Freescale PPFE Driver support.
endef
$(eval $(call KernelPackage,ppfe))