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
net/pcap: remove rte prefix from static functions
[dpdk.git]
/
drivers
/
net
/
mlx4
/
Makefile
diff --git
a/drivers/net/mlx4/Makefile
b/drivers/net/mlx4/Makefile
index
23b766d
..
efed953
100644
(file)
--- a/
drivers/net/mlx4/Makefile
+++ b/
drivers/net/mlx4/Makefile
@@
-31,12
+31,6
@@
include $(RTE_SDK)/mk/rte.vars.mk
include $(RTE_SDK)/mk/rte.vars.mk
-ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS)$(CONFIG_RTE_BUILD_SHARED_LIB),yy)
-all:
- @echo 'MLX4: Not supported in a combined shared library'
- @false
-endif
-
# Library name.
LIB = librte_pmd_mlx4.a
# Library name.
LIB = librte_pmd_mlx4.a
@@
-54,6
+48,8
@@
CFLAGS += -O3
CFLAGS += -std=gnu99 -Wall -Wextra
CFLAGS += -g
CFLAGS += -I.
CFLAGS += -std=gnu99 -Wall -Wextra
CFLAGS += -g
CFLAGS += -I.
+CFLAGS += -D_BSD_SOURCE
+CFLAGS += -D_DEFAULT_SOURCE
CFLAGS += -D_XOPEN_SOURCE=600
CFLAGS += $(WERROR_FLAGS)
LDLIBS += -libverbs
CFLAGS += -D_XOPEN_SOURCE=600
CFLAGS += $(WERROR_FLAGS)
LDLIBS += -libverbs
@@
-104,7
+100,9
@@
ifndef V
AUTOCONF_OUTPUT := >/dev/null
endif
AUTOCONF_OUTPUT := >/dev/null
endif
-mlx4_autoconf.h: $(RTE_SDK)/scripts/auto-config-h.sh
+mlx4_autoconf.h.new: FORCE
+
+mlx4_autoconf.h.new: $(RTE_SDK)/scripts/auto-config-h.sh
$Q $(RM) -f -- '$@'
$Q sh -- '$<' '$@' \
RSS_SUPPORT \
$Q $(RM) -f -- '$@'
$Q sh -- '$<' '$@' \
RSS_SUPPORT \
@@
-124,9
+122,16
@@
mlx4_autoconf.h: $(RTE_SDK)/scripts/auto-config-h.sh
enum IBV_EXP_QP_BURST_CREATE_DISABLE_ETH_LOOPBACK \
$(AUTOCONF_OUTPUT)
enum IBV_EXP_QP_BURST_CREATE_DISABLE_ETH_LOOPBACK \
$(AUTOCONF_OUTPUT)
+# Create mlx4_autoconf.h or update it in case it differs from the new one.
+
+mlx4_autoconf.h: mlx4_autoconf.h.new
+ $Q [ -f '$@' ] && \
+ cmp '$<' '$@' $(AUTOCONF_OUTPUT) || \
+ mv '$<' '$@'
+
mlx4.o: mlx4_autoconf.h
clean_mlx4: FORCE
mlx4.o: mlx4_autoconf.h
clean_mlx4: FORCE
- $Q rm -f -- mlx4_autoconf.h
+ $Q rm -f -- mlx4_autoconf.h
mlx4_autoconf.h.new
clean: clean_mlx4
clean: clean_mlx4