git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal: add core list input format
[dpdk.git]
/
examples
/
vhost
/
Makefile
diff --git
a/examples/vhost/Makefile
b/examples/vhost/Makefile
index
47e054d
..
c269466
100644
(file)
--- a/
examples/vhost/Makefile
+++ b/
examples/vhost/Makefile
@@
-38,15
+38,21
@@
RTE_TARGET ?= x86_64-native-linuxapp-gcc
include $(RTE_SDK)/mk/rte.vars.mk
include $(RTE_SDK)/mk/rte.vars.mk
+ifneq ($(CONFIG_RTE_EXEC_ENV),"linuxapp")
+$(info This application can only operate in a linuxapp environment, \
+please change the definition of the RTE_TARGET environment variable)
+all:
+else
+
# binary name
APP = vhost-switch
# all source are stored in SRCS-y
# binary name
APP = vhost-switch
# all source are stored in SRCS-y
-#SRCS-y := cusedrv.c loopback-userspace.c
-SRCS-y := main.c virtio-net.c vhost-net-cdev.c
+SRCS-y := main.c
-CFLAGS += -O2 -
I/usr/local/include -D_FILE_OFFSET_BITS=64 -Wno-unused-parameter
+CFLAGS += -O2 -
D_FILE_OFFSET_BITS=64
CFLAGS += $(WERROR_FLAGS)
CFLAGS += $(WERROR_FLAGS)
-LDFLAGS += -lfuse
include $(RTE_SDK)/mk/rte.extapp.mk
include $(RTE_SDK)/mk/rte.extapp.mk
+
+endif