mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-23 07:36:57 +08:00
58 lines
2.0 KiB
Makefile
58 lines
2.0 KiB
Makefile
#
|
|
# Copyright (c) 2015 The Linux Foundation. All rights reserved.
|
|
# Permission to use, copy, modify, and/or distribute this software for
|
|
# any purpose with or without fee is hereby granted, provided that the
|
|
# above copyright notice and this permission notice appear in all copies.
|
|
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
|
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=shortcut-fe-simulated-driver
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_URL:=https://source.codeaurora.org/quic/qsdk/oss/lklm/shortcut-fe
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=c7dd8173b178affc9d8da22f51610243be994e1c
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define KernelPackage/shortcut-fe-drv
|
|
SECTION:=kernel
|
|
CATEGORY:=Kernel modules
|
|
SUBMENU:=Network Support
|
|
DEPENDS:=@TARGET_ipq806x||TARGET_ipq807x +kmod-shortcut-fe
|
|
TITLE:=Simulated sfe driver for ECM
|
|
FILES:=$(PKG_BUILD_DIR)/simulated-driver/shortcut-fe-drv.ko
|
|
AUTOLOAD:=$(call AutoLoad,10,shortcut-fe-drv)
|
|
endef
|
|
|
|
define KernelPackage/shortcut-fe-drv/Description
|
|
Simulated sfe driver which act as an adapter to convert message between a connection manager and the SFE core engine.
|
|
endef
|
|
|
|
EXTRA_CFLAGS+=-DSFE_SUPPORT_IPV6
|
|
|
|
define Build/Compile
|
|
$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
|
|
$(KERNEL_MAKE_FLAGS) \
|
|
$(PKG_MAKE_FLAGS) \
|
|
M="$(PKG_BUILD_DIR)/simulated-driver" \
|
|
EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
|
|
modules
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include/shortcut-fe
|
|
$(CP) -rf $(PKG_BUILD_DIR)/simulated-driver/sfe_drv.h $(1)/usr/include/shortcut-fe
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,shortcut-fe-drv))
|