Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
intel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Feed
intel
Commits
b02b25af
Commit
b02b25af
authored
6 years ago
by
Kenneth Johansson
Browse files
Options
Downloads
Patches
Plain Diff
add directconnect_dp.
parent
45ce9cfa
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
directconnect_dp/Makefile
+108
-0
108 additions, 0 deletions
directconnect_dp/Makefile
directconnect_dp/config/Config.in
+1
-0
1 addition, 0 deletions
directconnect_dp/config/Config.in
with
109 additions
and
0 deletions
directconnect_dp/Makefile
0 → 100755
+
108
−
0
View file @
b02b25af
#
# Copyright (C) 2016 Intel Corporation
# Copyright (C) 2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include
$(TOPDIR)/rules.mk
include
$(INCLUDE_DIR)/kernel.mk
PKG_NAME
:=
directconnect-dp
PKG_VERSION
:=
0.2.3.1
PKG_RELEASE
:=
1
PKG_IS_KERNEL_MODULE
=
y
PKG_SOURCE_VERSION
:=
96ca5de25950a4532f212cbaf434c7a147d2b92e
#PKG_SOURCE_URL:=ssh://git@gts-chd.intel.com:29418/sw_ugw/dc_dp_drv.git
PKG_SOURCE_URL
:=
git@dev.iopsys.eu:intel/dc_dp_drv.git
PKG_SOURCE_PROTO
:=
git
PKG_SOURCE_MIRROR
:=
1
PKG_MIRROR
:=
0
PKG_DEFAULT_CUSTOM_SOURCE_DIR
:=
/dc_dp_drv/
-include
$(INCLUDE_DIR)/package-version-override.mk
include
$(INCLUDE_DIR)/package.mk
define
KernelPackage/$(PKG_NAME)
SUBMENU
:=
Intel
TITLE
:=
DirectConnect datapath driver
DEPENDS
:=
@TARGET_intel_mips
KCONFIG
:=
\
CONFIG_DIRECTCONNECT_DP_API
FILES
:=
\
$(
PKG_BUILD_DIR
)
/common/directconnect_datapath.ko
\
$(
if
$(
CONFIG_TARGET_intel_mips_xrx500
)
,
$(
PKG_BUILD_DIR
)
/dc_mode/dc_mode0/dc_mode0-xrx500.ko
)
\
$(
if
$(
CONFIG_TARGET_intel_xrx330
)
,
$(
if
(
CONFIG_PACKAGE_kmod-vrx518_ep
)
,
\
$(
PKG_BUILD_DIR
)
/dc_mode/dc_mode1/dc_mode1-xrx330.ko
)
)
AUTOLOAD
:=
$(
call AutoProbe,directconnect_datapath dc_mode0-xrx500 dc_mode1-xrx330
)
MENU
:=
1
endef
define
KernelPackage/$(PKG_NAME)/description
DirectConnect
datapath
driver
endef
define
KernelPackage/$(PKG_NAME)/config
source
"$(SOURCE)/config/Config.in"
$(
call
Package/kmod-
$(
PKG_NAME
)
/override_version
)
$(
call
Package/kmod-
$(
PKG_NAME
)
/override_source_path
)
endef
EXTRA_CFLAGS
+=
\
-DCONFIG_DIRECTCONNECT_DP_DBG
\
-DCONFIG_DIRECTCONNECT_DP_LITEPATH
\
-DSW_DCMODE1_BUILTIN
\
$(
if
$(
CONFIG_TARGET_intel_mips_xrx500
)
,
\
-DHAVE_DATAPATH_API
\
)
export
CONFIG_DIRECTCONNECT_DP_LITEPATH
=
y
export
CONFIG_SW_DCMODE1_BUILTIN
=
y
ifeq
($(CONFIG_TARGET_intel_mips_xrx500),y)
export
CONFIG_DIRECTCONNECT_DP_XRX500
=
y
endif
ifeq
($(CONFIG_TARGET_x86_puma),y)
export
CONFIG_DIRECTCONNECT_DP_XRX750
=
y
EXTRA_CFLAGS
+=
-DHAVE_DATAPATH_API
endif
ifeq
($(CONFIG_TARGET_intel_xrx330),y)
ifeq
($(CONFIG_PACKAGE_kmod-vrx518_ep),y)
# for VRX518 only
export
CONFIG_DIRECTCONNECT_DP_330
=
y
EXTRA_CFLAGS
+=
-DHAVE_DATAPATH_API
endif
endif
EXTRA_CFLAGS
+=
-I
$(
PKG_BUILD_DIR
)
/include
define
Build/InstallDev
$(INSTALL_DIR)
$(STAGING_DIR)/include/net/
$(CP)
$(PKG_BUILD_DIR)/include/*.h
$(STAGING_DIR)/include/net/
endef
define
Build/Compile
$(MAKE)
-C
"$(LINUX_DIR)"
\
CROSS_COMPILE
=
"
$(
TARGET_CROSS
)
"
\
ARCH
=
"
$(
LINUX_KARCH
)
"
\
SUBDIRS
=
"
$(
PKG_BUILD_DIR
)
"
\
EXTRA_CFLAGS
=
"
$(
EXTRA_CFLAGS
)
"
\
modules
endef
define
Build/Clean
if
[
-d
$(PKG_BUILD_DIR)
];
then
\
$(MAKE)
-C
$(PKG_BUILD_DIR)
KERNEL_DIR
=
$(
LINUX_DIR
)
clean
;
\
$(
RM
)
-r
$(
PKG_BUILD_DIR
)
/ipkg-
$(
BOARD
);
\
fi
endef
$(
eval
$(
call KernelPackage,
$(
PKG_NAME
)))
This diff is collapsed.
Click to expand it.
directconnect_dp/config/Config.in
0 → 100755
+
1
−
0
View file @
b02b25af
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment