blob: a2fd45b20b5ae93fb26228bbc6502ad6f9ea478b [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2006-2012 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8DRIVERS_DIR=$(LINUX_DIR)/drivers
9MRVL_DRIVERS_DIR=$(DRIVERS_DIR)/marvell
10
11define KernelPackage/gator-driver
12 TITLE:=Gator Driver
13 SUBMENU:=Other modules
14 KCONFIG:= \
15 CONFIG_GENERIC_TRACER=y \
16 CONFIG_TRACING=y \
17 CONFIG_PROFILING=y \
18 CONFIG_HIGH_RES_TIMERS=y \
19 CONFIG_PERF_EVENTS=y
20 DEPENDS:=@TARGET_mmp +@KERNEL_PROFILING +@KERNEL_PERF_EVENTS
21 FILES:=$(DRIVERS_DIR)/misc/gator/gator.ko
22endef
23
24define KernelPackage/gator-driver/description
25 Gator debug utility support - kernel module
26 Note: this package will select the profiling and perf_events flags
27endef
28
29define KernelPackage/gator-driver/install
30 $(INSTALL_DIR) $(1)/bin
31 $(CP) $(DRIVERS_DIR)/misc/gator/gator.ko $(1)/bin/gator.ko
32endef
33
34$(eval $(call KernelPackage,gator-driver))
35
36define KernelPackage/mrvl-pipe
37 MARVELL_PIPE_DIR:=$(LINUX_DIR)/drivers/marvell/mrvl_pipe
38 CATEGORY:=Network
39 SUBMENU:= Marvell Pipe Mode
40 TITLE:= Marvell Pipe Mode Module
41 DEPENDS:=@TARGET_mmp @IPV6
42 KCONFIG:=CONFIG_MRVL_PIPE CONFIG_NETIF_RX_FASTPATH_HOOK=y
43 FILES:= $(MARVELL_PIPE_DIR)/mrvlpipe.ko
44endef
45
46define KernelPackage/mrvl-pipe/description
47 Marvell Pipe Mode Module
48endef
49
50define KernelPackage/mrvl-pipe/config
51 depends on !PACKAGE_kmod-fastpath
52endef
53
54$(eval $(call KernelPackage,mrvl-pipe))