| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | # |
| 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 | |
| 8 | DRIVERS_DIR=$(LINUX_DIR)/drivers |
| 9 | MRVL_DRIVERS_DIR=$(DRIVERS_DIR)/marvell |
| 10 | |
| 11 | define 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 |
| 22 | endef |
| 23 | |
| 24 | define KernelPackage/gator-driver/description |
| 25 | Gator debug utility support - kernel module |
| 26 | Note: this package will select the profiling and perf_events flags |
| 27 | endef |
| 28 | |
| 29 | define KernelPackage/gator-driver/install |
| 30 | $(INSTALL_DIR) $(1)/bin |
| 31 | $(CP) $(DRIVERS_DIR)/misc/gator/gator.ko $(1)/bin/gator.ko |
| 32 | endef |
| 33 | |
| 34 | $(eval $(call KernelPackage,gator-driver)) |
| 35 | |
| 36 | define 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 |
| 44 | endef |
| 45 | |
| 46 | define KernelPackage/mrvl-pipe/description |
| 47 | Marvell Pipe Mode Module |
| 48 | endef |
| 49 | |
| 50 | define KernelPackage/mrvl-pipe/config |
| 51 | depends on !PACKAGE_kmod-fastpath |
| 52 | endef |
| 53 | |
| 54 | $(eval $(call KernelPackage,mrvl-pipe)) |