Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
U
udpdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ywj
udpdk
Commits
89fa8cef
Commit
89fa8cef
authored
Nov 05, 2020
by
Leonardo Lai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move dependencies to folder
parent
e7d4851b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
16 deletions
+16
-16
.gitmodules
.gitmodules
+2
-2
apps/pingpong/Makefile
apps/pingpong/Makefile
+5
-4
apps/pktgen/Makefile
apps/pktgen/Makefile
+5
-4
deps/dpdk
deps/dpdk
+0
-0
deps/inih
deps/inih
+0
-0
udpdk/Makefile
udpdk/Makefile
+4
-6
No files found.
.gitmodules
View file @
89fa8cef
[submodule "dpdk"]
path = dpdk
path = d
eps/d
pdk
url = https://github.com/DPDK/dpdk
[submodule "inih"]
path = inih
path =
deps/
inih
url = https://github.com/benhoyt/inih
apps/pingpong/Makefile
View file @
89fa8cef
...
...
@@ -4,9 +4,10 @@
#
ROOTDIR
=
../..
DEPSDIR
=
${ROOTDIR}
/deps
ifeq
($(RTE_
SDK
),)
$(error
"Please define RTE_
SDK
environment variable"
)
ifeq
($(RTE_
TARGET
),)
$(error
"Please define RTE_
TARGET
environment variable"
)
endif
ifeq
($(UDPDK_PATH),)
...
...
@@ -17,14 +18,14 @@ endif
SRCS
=
main.c
LIBS
+=
-L
${UDPDK_PATH}
/udpdk
-Wl
,--whole-archive,-ludpdk,--no-whole-archive
LIBS
+=
-L
${
RTE_SDK}
/
${RTE_TARGET}
/lib
-Wl
,--whole-archive,-ldpdk,--no-whole-archive
LIBS
+=
-L
${
DEPSDIR}
/dpdk
/
${RTE_TARGET}
/lib
-Wl
,--whole-archive,-ldpdk,--no-whole-archive
LIBS
+=
-Wl
,--no-whole-archive
-lrt
-lm
-ldl
-lcrypto
-pthread
-lnuma
CFLAGS
+=
$(WERROR_FLAGS)
-O3
TARGET
=
"pingpong"
all
:
cc
-I
${ROOTDIR}
/udpdk
-I
${
RTE_SDK}
/
${RTE_TARGET}
/include
-o
${TARGET}
${SRCS}
${LIBS}
cc
-I
${ROOTDIR}
/udpdk
-I
${
DEPSDIR}
/dpdk
/
${RTE_TARGET}
/include
-o
${TARGET}
${SRCS}
${LIBS}
.PHONY
:
clean
clean
:
...
...
apps/pktgen/Makefile
View file @
89fa8cef
...
...
@@ -4,9 +4,10 @@
#
ROOTDIR
=
../..
DEPSDIR
=
${ROOTDIR}
/deps
ifeq
($(RTE_
SDK
),)
$(error
"Please define RTE_
SDK
environment variable"
)
ifeq
($(RTE_
TARGET
),)
$(error
"Please define RTE_
TARGET
environment variable"
)
endif
ifeq
($(UDPDK_PATH),)
...
...
@@ -17,14 +18,14 @@ endif
SRCS
=
main.c
LIBS
+=
-L
${UDPDK_PATH}
/udpdk
-Wl
,--whole-archive,-ludpdk,--no-whole-archive
LIBS
+=
-L
${
RTE_SDK}
/
${RTE_TARGET}
/lib
-Wl
,--whole-archive,-ldpdk,--no-whole-archive
LIBS
+=
-L
${
DEPSDIR}
/dpdk
/
${RTE_TARGET}
/lib
-Wl
,--whole-archive,-ldpdk,--no-whole-archive
LIBS
+=
-Wl
,--no-whole-archive
-lrt
-lm
-ldl
-lcrypto
-pthread
-lnuma
CFLAGS
+=
$(WERROR_FLAGS)
-O3
TARGET
=
"pktgen"
all
:
cc
-I
${ROOTDIR}
/udpdk
-I
${
RTE_SDK}
/
${RTE_TARGET}
/include
-o
${TARGET}
${SRCS}
${LIBS}
cc
-I
${ROOTDIR}
/udpdk
-I
${
DEPSDIR}
/dpdk
/
${RTE_TARGET}
/include
-o
${TARGET}
${SRCS}
${LIBS}
.PHONY
:
clean
clean
:
...
...
dpdk
@
e2a23448
File moved
inih
@
672457c6
File moved
udpdk/Makefile
View file @
89fa8cef
...
...
@@ -4,25 +4,23 @@
#
ROOTDIR
?=
${CURDIR}
/..
DEPSDIR
=
${ROOTDIR}
/deps
PREFIX
=
/usr/local
PREFIX_LIB
=
${PREFIX}
/lib
PREFIX_INCLUDE
=
/usr/local/include
PREFIX_BIN
=
/usr/local/bin
UDPDK_VERSION
=
0.1
UDPDK_VERSION
=
1.0
# root is only needed to perform install
ifneq
($(shell id -u), 0)
ifeq
($(RTE_SDK),)
$(error
"Please define RTE_SDK environment variable"
)
endif
ifeq
($(RTE_TARGET),)
$(error
"Please define RTE_TARGET environment variable"
)
endif
endif
UDPDK_DPDK
=
${
RTE_SDK}
/
${RTE_TARGET}
UDPDK_DPDK
=
${
DEPSDIR}
/dpdk
/
${RTE_TARGET}
INIH
=
${
ROOT
DIR}
/inih
INIH
=
${
DEPS
DIR}
/inih
CFLAGS
=
-march
=
native
-O2
CFLAGS
+=
-Wall
-Wno-deprecated-declarations
-Werror
-Wno-unused-variable
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment