blob: a2fd45b20b5ae93fb26228bbc6502ad6f9ea478b [file] [log] [blame]
#
# Copyright (C) 2006-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
DRIVERS_DIR=$(LINUX_DIR)/drivers
MRVL_DRIVERS_DIR=$(DRIVERS_DIR)/marvell
define KernelPackage/gator-driver
TITLE:=Gator Driver
SUBMENU:=Other modules
KCONFIG:= \
CONFIG_GENERIC_TRACER=y \
CONFIG_TRACING=y \
CONFIG_PROFILING=y \
CONFIG_HIGH_RES_TIMERS=y \
CONFIG_PERF_EVENTS=y
DEPENDS:=@TARGET_mmp +@KERNEL_PROFILING +@KERNEL_PERF_EVENTS
FILES:=$(DRIVERS_DIR)/misc/gator/gator.ko
endef
define KernelPackage/gator-driver/description
Gator debug utility support - kernel module
Note: this package will select the profiling and perf_events flags
endef
define KernelPackage/gator-driver/install
$(INSTALL_DIR) $(1)/bin
$(CP) $(DRIVERS_DIR)/misc/gator/gator.ko $(1)/bin/gator.ko
endef
$(eval $(call KernelPackage,gator-driver))
define KernelPackage/mrvl-pipe
MARVELL_PIPE_DIR:=$(LINUX_DIR)/drivers/marvell/mrvl_pipe
CATEGORY:=Network
SUBMENU:= Marvell Pipe Mode
TITLE:= Marvell Pipe Mode Module
DEPENDS:=@TARGET_mmp @IPV6
KCONFIG:=CONFIG_MRVL_PIPE CONFIG_NETIF_RX_FASTPATH_HOOK=y
FILES:= $(MARVELL_PIPE_DIR)/mrvlpipe.ko
endef
define KernelPackage/mrvl-pipe/description
Marvell Pipe Mode Module
endef
define KernelPackage/mrvl-pipe/config
depends on !PACKAGE_kmod-fastpath
endef
$(eval $(call KernelPackage,mrvl-pipe))