examples: allow pkg-config to override
PATCH 1/1 examples: allow pkg-config to override
From: Jerin Jacob <[email protected]>
In the cross-compilation environment, it possible to have different package config such as aarch64-linux-gnu-pkg-config. Use PKGCONF variable to detect the libdpdk availability.
--- examples/bbdev_app/Makefile | 6 +++--- examples/bond/Makefile | 6 +++--- examples/cmdline/Makefile | 6 +++--- examples/distributor/Makefile | 6 +++--- examples/ethtool/ethtool-app/Makefile | 6 +++--- examples/ethtool/lib/Makefile | 6 +++--- examples/eventdev_pipeline/Makefile | 6 +++--- examples/fips_validation/Makefile | 6 +++--- examples/flow_classify/Makefile | 6 +++--- examples/flow_filtering/Makefile | 6 +++--- examples/helloworld/Makefile | 6 +++--- examples/ioat/Makefile | 6 +++--- examples/ip_fragmentation/Makefile | 6 +++--- examples/ip_pipeline/Makefile | 6 +++--- examples/ip_reassembly/Makefile | 6 +++--- examples/ipsec-secgw/Makefile | 6 +++--- examples/ipv4_multicast/Makefile | 6 +++--- examples/kni/Makefile | 6 +++--- examples/l2fwd-cat/Makefile | 6 +++--- examples/l2fwd-crypto/Makefile | 6 +++--- examples/l2fwd-event/Makefile | 6 +++--- examples/l2fwd-jobstats/Makefile | 6 +++--- examples/l2fwd-keepalive/Makefile | 6 +++--- examples/l2fwd-keepalive/ka-agent/Makefile | 6 +++--- examples/l2fwd/Makefile | 6 +++--- examples/l3fwd-acl/Makefile | 6 +++--- examples/l3fwd-graph/Makefile | 6 +++--- examples/l3fwd-power/Makefile | 6 +++--- examples/l3fwd/Makefile | 6 +++--- examples/link_status_interrupt/Makefile | 6 +++--- examples/multi_process/client_server_mp/mp_client/Makefile | 6 +++--- examples/multi_process/client_server_mp/mp_server/Makefile | 6 +++--- examples/multi_process/hotplug_mp/Makefile | 6 +++--- examples/multi_process/simple_mp/Makefile | 6 +++--- examples/multi_process/symmetric_mp/Makefile | 6 +++--- examples/ntb/Makefile | 6 +++--- examples/packet_ordering/Makefile | 6 +++--- examples/performance-thread/l3fwd-thread/Makefile | 5 +++-- examples/performance-thread/pthread_shim/Makefile | 6 +++--- examples/pipeline/Makefile | 6 +++--- examples/ptpclient/Makefile | 6 +++--- examples/qos_meter/Makefile | 6 +++--- examples/qos_sched/Makefile | 6 +++--- examples/rxtx_callbacks/Makefile | 6 +++--- examples/server_node_efd/node/Makefile | 6 +++--- examples/server_node_efd/server/Makefile | 6 +++--- examples/service_cores/Makefile | 6 +++--- examples/skeleton/Makefile | 6 +++--- examples/timer/Makefile | 6 +++--- examples/vdpa/Makefile | 6 +++--- examples/vhost/Makefile | 6 +++--- examples/vhost_blk/Makefile | 6 +++--- examples/vhost_crypto/Makefile | 6 +++--- examples/vm_power_manager/Makefile | 6 +++--- examples/vm_power_manager/guest_cli/Makefile | 6 +++--- examples/vmdq/Makefile | 6 +++--- examples/vmdq_dcb/Makefile | 6 +++--- 57 files changed, 171 insertions(+), 170 deletions(-)
examples/bbdev_app/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = bbdev # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/bond/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = bond_app # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -21,8 +23,6 @@ static: build/$(APP)-static LDFLAGS += -lrte_net_bond -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/cmdline/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = cmdline # all source are stored in SRCS-y SRCS-y := main.c commands.c parse_obj_list.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/distributor/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = distributor_app # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ethtool/ethtool-app/Makefile +3 -3
@@ -12,8 +12,10 @@ LDFLAGS += -L../lib/build LDFLAGS_STATIC = -l:librte_ethtool.a LDFLAGS_SHARED = -lrte_ethtool +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -24,8 +26,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED += $(shell $(PKGCONF) --libs libdpdk)
examples/ethtool/lib/Makefile +3 -3
@@ -2,15 +2,15 @@ # Copyright(c) 2015-2020 Intel Corporation -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +PKGCONF ?= pkg-config + +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif ifneq ($(shell uname),Linux) $(error This application can only operate in a linux environment) endif -PKGCONF ?= pkg-config - # library name LIB = librte_ethtool.so LIB_STATIC = librte_ethtool.a
examples/eventdev_pipeline/Makefile +3 -3
@@ -9,8 +9,10 @@ SRCS-y := main.c SRCS-y += pipeline_worker_generic.c SRCS-y += pipeline_worker_tx.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -21,8 +23,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/fips_validation/Makefile +3 -3
@@ -17,8 +17,10 @@ SRCS-y += fips_dev_self_test.c SRCS-y += fips_validation_xts.c SRCS-y += main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -29,8 +31,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/flow_classify/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = flow_classify # all source are stored in SRCS-y SRCS-y := flow_classify.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/flow_filtering/Makefile +3 -3
@@ -5,8 +5,10 @@ APP = flow SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -17,8 +19,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/helloworld/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = helloworld # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ioat/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = ioatfwd # all source are stored in SRCS-y SRCS-y := ioatfwd.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ip_fragmentation/Makefile +3 -3
@@ -8,8 +8,10 @@ APP = ip_fragmentation # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -20,8 +22,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ip_pipeline/Makefile +3 -3
@@ -20,8 +20,10 @@ SRCS-y += thread.c SRCS-y += tmgr.c SRCS-y += cryptodev.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -32,8 +34,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ip_reassembly/Makefile +3 -3
@@ -8,8 +8,10 @@ APP = ip_reassembly # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -20,8 +22,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ipsec-secgw/Makefile +3 -3
@@ -22,8 +22,10 @@ SRCS-y += flow.c CFLAGS += -gdwarf-2 +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -34,8 +36,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ipv4_multicast/Makefile +3 -3
@@ -8,8 +8,10 @@ APP = ipv4_multicast # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -20,8 +22,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/kni/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = kni # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) CFLAGS += -DALLOW_EXPERIMENTAL_API
examples/l2fwd-cat/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = l2fwd-cat # all source are stored in SRCS-y SRCS-y := l2fwd-cat.c cat.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l2fwd-crypto/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = l2fwd-crypto # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l2fwd-event/Makefile +3 -3
@@ -13,8 +13,10 @@ SRCS-y += l2fwd_common.c SRCS-y += l2fwd_event_generic.c SRCS-y += l2fwd_event_internal_port.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -25,8 +27,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l2fwd-jobstats/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = l2fwd-jobstats # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l2fwd-keepalive/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = l2fwd-keepalive # all source are stored in SRCS-y SRCS-y := main.c shm.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -21,8 +23,6 @@ static: build/$(APP)-static LDFLAGS += -pthread -lrt -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l2fwd-keepalive/ka-agent/Makefile +3 -3
@@ -9,8 +9,10 @@ SRCS-y := main.c CFLAGS += -I.. +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -23,8 +25,6 @@ static: build/$(APP)-static LDFLAGS += -lpthread -lrt -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l2fwd/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = l2fwd # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) # Add flag to allow experimental API as l2fwd uses rte_ethdev_set_ptype API
examples/l3fwd-acl/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = l3fwd-acl # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l3fwd-graph/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = l3fwd-graph # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l3fwd-power/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = l3fwd-power # all source are stored in SRCS-y SRCS-y := main.c perf_core.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l3fwd/Makefile +3 -3
@@ -8,8 +8,10 @@ APP = l3fwd SRCS-y := main.c l3fwd_lpm.c l3fwd_fib.c l3fwd_em.c l3fwd_event.c SRCS-y += l3fwd_event_generic.c l3fwd_event_internal_port.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -20,8 +22,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) # Added for 'rte_eth_link_to_str()'
examples/link_status_interrupt/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = link_status_interrupt # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/multi_process/client_server_mp/mp_client/Makefile +3 -3
@@ -9,8 +9,10 @@ SRCS-y := client.c CFLAGS += -I../shared +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -21,8 +23,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/multi_process/client_server_mp/mp_server/Makefile +3 -3
@@ -9,8 +9,10 @@ SRCS-y := main.c init.c args.c CFLAGS += -I../shared +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -21,8 +23,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/multi_process/hotplug_mp/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = hotplug_mp # all source are stored in SRCS-y SRCS-y := main.c commands.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/multi_process/simple_mp/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = simple_mp # all source are stored in SRCS-y SRCS-y := main.c mp_commands.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/multi_process/symmetric_mp/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = symmetric_mp # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ntb/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = ntb_fwd # all source are stored in SRCS-y SRCS-y := ntb_fwd.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - CFLAGS += -D_FILE_OFFSET_BITS=64 LDFLAGS += -pthread
examples/packet_ordering/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = packet_ordering # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/performance-thread/l3fwd-thread/Makefile +3 -2
@@ -17,10 +17,12 @@ $(error "Cannot generate statically-linked binaries with this version of pkg-con endif endif +PKGCONF ?= pkg-config + CFLAGS += -DALLOW_EXPERIMENTAL_API # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -31,7 +33,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)
examples/performance-thread/pthread_shim/Makefile +3 -3
@@ -21,8 +21,10 @@ CFLAGS += -DALLOW_EXPERIMENTAL_API CFLAGS += -D_GNU_SOURCE LDFLAGS += "-Wl,--copy-dt-needed-entries" +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -35,8 +37,6 @@ static: build/$(APP)-static LDFLAGS += -lpthread -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/pipeline/Makefile +3 -3
@@ -11,8 +11,10 @@ SRCS-y += main.c SRCS-y += obj.c SRCS-y += thread.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -23,8 +25,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ptpclient/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = ptpclient # all source are stored in SRCS-y SRCS-y := ptpclient.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/qos_meter/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = qos_meter # all source are stored in SRCS-y SRCS-y := main.c rte_policer.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/qos_sched/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = qos_sched # all source are stored in SRCS-y SRCS-y := main.c args.c init.c app_thread.c cfg_file.c cmdline.c stats.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/rxtx_callbacks/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = rxtx_callbacks # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/server_node_efd/node/Makefile +3 -3
@@ -9,8 +9,10 @@ SRCS-y := node.c CFLAGS += -I../shared +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -21,8 +23,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/server_node_efd/server/Makefile +3 -3
@@ -9,8 +9,10 @@ SRCS-y := main.c init.c args.c CFLAGS += -I../shared +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -21,8 +23,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/service_cores/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = service_cores # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/skeleton/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = basicfwd # all source are stored in SRCS-y SRCS-y := basicfwd.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/timer/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = timer # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/vdpa/Makefile +3 -3
@@ -8,8 +8,10 @@ APP = vdpa SRCS-y := main.c CFLAGS += -DALLOW_EXPERIMENTAL_API +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -20,8 +22,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/vhost/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = vhost-switch # all source are stored in SRCS-y SRCS-y := main.c virtio_net.c ioat.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -21,8 +23,6 @@ static: build/$(APP)-static LDFLAGS += -pthread -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/vhost_blk/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = vhost-blk # all source are stored in SRCS-y SRCS-y := blk.c vhost_blk.c vhost_blk_compat.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - LDFLAGS += -pthread PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)
examples/vhost_crypto/Makefile +3 -3
@@ -8,8 +8,10 @@ APP = vhost-crypto SRCS-y := main.c CFLAGS += -DALLOW_EXPERIMENTAL_API +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -20,8 +22,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/vm_power_manager/Makefile +3 -3
@@ -1,8 +1,10 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2010-2020 Intel Corporation +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -25,8 +27,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/vm_power_manager/guest_cli/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = guest_vm_power_mgr # all source are stored in SRCS-y SRCS-y := main.c vm_power_cli_guest.c parse.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/vmdq/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = vmdq_app # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/vmdq_dcb/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = vmdq_dcb_app # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
Signature · 1 line
2.31.1
Quoted 8 lines · On Wed, May 05, 2021 at 04:49:44PM +0530, [email protected] wrote:
From: Jerin Jacob <[email protected]>
In the cross-compilation environment, it possible to have different package config such as aarch64-linux-gnu-pkg-config. Use PKGCONF variable to detect the libdpdk availability.
Signed-off-by Jerin Jacob <[email protected]>---
+1 to the change, but on the commit log side, this looks more like a bugfix where the PKGCONF value is set too far down the file rather than adding a new feature. The support for overriding pkg-config is meant to be already there, and test-meson-builds.sh already sets PKGCONF in the environment to override it.
/Bruce
PATCH v2 1/1 examples: fix pkg-config override sequence
In reply to [email protected]From: Jerin Jacob <[email protected]>
Move pkg-config override to beginning in the Makefile to allow use PKGCONF variable to detect the libdpdk availability.
---
v2: Update the git comments to express as fix(Bruce)
examples/bbdev_app/Makefile | 6 +++--- examples/bond/Makefile | 6 +++--- examples/cmdline/Makefile | 6 +++--- examples/distributor/Makefile | 6 +++--- examples/ethtool/ethtool-app/Makefile | 6 +++--- examples/ethtool/lib/Makefile | 6 +++--- examples/eventdev_pipeline/Makefile | 6 +++--- examples/fips_validation/Makefile | 6 +++--- examples/flow_classify/Makefile | 6 +++--- examples/flow_filtering/Makefile | 6 +++--- examples/helloworld/Makefile | 6 +++--- examples/ioat/Makefile | 6 +++--- examples/ip_fragmentation/Makefile | 6 +++--- examples/ip_pipeline/Makefile | 6 +++--- examples/ip_reassembly/Makefile | 6 +++--- examples/ipsec-secgw/Makefile | 6 +++--- examples/ipv4_multicast/Makefile | 6 +++--- examples/kni/Makefile | 6 +++--- examples/l2fwd-cat/Makefile | 6 +++--- examples/l2fwd-crypto/Makefile | 6 +++--- examples/l2fwd-event/Makefile | 6 +++--- examples/l2fwd-jobstats/Makefile | 6 +++--- examples/l2fwd-keepalive/Makefile | 6 +++--- examples/l2fwd-keepalive/ka-agent/Makefile | 6 +++--- examples/l2fwd/Makefile | 6 +++--- examples/l3fwd-acl/Makefile | 6 +++--- examples/l3fwd-graph/Makefile | 6 +++--- examples/l3fwd-power/Makefile | 6 +++--- examples/l3fwd/Makefile | 6 +++--- examples/link_status_interrupt/Makefile | 6 +++--- examples/multi_process/client_server_mp/mp_client/Makefile | 6 +++--- examples/multi_process/client_server_mp/mp_server/Makefile | 6 +++--- examples/multi_process/hotplug_mp/Makefile | 6 +++--- examples/multi_process/simple_mp/Makefile | 6 +++--- examples/multi_process/symmetric_mp/Makefile | 6 +++--- examples/ntb/Makefile | 6 +++--- examples/packet_ordering/Makefile | 6 +++--- examples/performance-thread/l3fwd-thread/Makefile | 5 +++-- examples/performance-thread/pthread_shim/Makefile | 6 +++--- examples/pipeline/Makefile | 6 +++--- examples/ptpclient/Makefile | 6 +++--- examples/qos_meter/Makefile | 6 +++--- examples/qos_sched/Makefile | 6 +++--- examples/rxtx_callbacks/Makefile | 6 +++--- examples/server_node_efd/node/Makefile | 6 +++--- examples/server_node_efd/server/Makefile | 6 +++--- examples/service_cores/Makefile | 6 +++--- examples/skeleton/Makefile | 6 +++--- examples/timer/Makefile | 6 +++--- examples/vdpa/Makefile | 6 +++--- examples/vhost/Makefile | 6 +++--- examples/vhost_blk/Makefile | 6 +++--- examples/vhost_crypto/Makefile | 6 +++--- examples/vm_power_manager/Makefile | 6 +++--- examples/vm_power_manager/guest_cli/Makefile | 6 +++--- examples/vmdq/Makefile | 6 +++--- examples/vmdq_dcb/Makefile | 6 +++--- 57 files changed, 171 insertions(+), 170 deletions(-)
examples/bbdev_app/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = bbdev # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/bond/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = bond_app # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -21,8 +23,6 @@ static: build/$(APP)-static LDFLAGS += -lrte_net_bond -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/cmdline/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = cmdline # all source are stored in SRCS-y SRCS-y := main.c commands.c parse_obj_list.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/distributor/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = distributor_app # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ethtool/ethtool-app/Makefile +3 -3
@@ -12,8 +12,10 @@ LDFLAGS += -L../lib/build LDFLAGS_STATIC = -l:librte_ethtool.a LDFLAGS_SHARED = -lrte_ethtool +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -24,8 +26,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED += $(shell $(PKGCONF) --libs libdpdk)
examples/ethtool/lib/Makefile +3 -3
@@ -2,15 +2,15 @@ # Copyright(c) 2015-2020 Intel Corporation -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +PKGCONF ?= pkg-config + +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif ifneq ($(shell uname),Linux) $(error This application can only operate in a linux environment) endif -PKGCONF ?= pkg-config - # library name LIB = librte_ethtool.so LIB_STATIC = librte_ethtool.a
examples/eventdev_pipeline/Makefile +3 -3
@@ -9,8 +9,10 @@ SRCS-y := main.c SRCS-y += pipeline_worker_generic.c SRCS-y += pipeline_worker_tx.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -21,8 +23,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/fips_validation/Makefile +3 -3
@@ -17,8 +17,10 @@ SRCS-y += fips_dev_self_test.c SRCS-y += fips_validation_xts.c SRCS-y += main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -29,8 +31,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/flow_classify/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = flow_classify # all source are stored in SRCS-y SRCS-y := flow_classify.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/flow_filtering/Makefile +3 -3
@@ -5,8 +5,10 @@ APP = flow SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -17,8 +19,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/helloworld/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = helloworld # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ioat/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = ioatfwd # all source are stored in SRCS-y SRCS-y := ioatfwd.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ip_fragmentation/Makefile +3 -3
@@ -8,8 +8,10 @@ APP = ip_fragmentation # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -20,8 +22,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ip_pipeline/Makefile +3 -3
@@ -20,8 +20,10 @@ SRCS-y += thread.c SRCS-y += tmgr.c SRCS-y += cryptodev.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -32,8 +34,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ip_reassembly/Makefile +3 -3
@@ -8,8 +8,10 @@ APP = ip_reassembly # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -20,8 +22,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ipsec-secgw/Makefile +3 -3
@@ -22,8 +22,10 @@ SRCS-y += flow.c CFLAGS += -gdwarf-2 +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -34,8 +36,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ipv4_multicast/Makefile +3 -3
@@ -8,8 +8,10 @@ APP = ipv4_multicast # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -20,8 +22,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/kni/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = kni # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) CFLAGS += -DALLOW_EXPERIMENTAL_API
examples/l2fwd-cat/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = l2fwd-cat # all source are stored in SRCS-y SRCS-y := l2fwd-cat.c cat.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l2fwd-crypto/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = l2fwd-crypto # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l2fwd-event/Makefile +3 -3
@@ -13,8 +13,10 @@ SRCS-y += l2fwd_common.c SRCS-y += l2fwd_event_generic.c SRCS-y += l2fwd_event_internal_port.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -25,8 +27,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l2fwd-jobstats/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = l2fwd-jobstats # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l2fwd-keepalive/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = l2fwd-keepalive # all source are stored in SRCS-y SRCS-y := main.c shm.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -21,8 +23,6 @@ static: build/$(APP)-static LDFLAGS += -pthread -lrt -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l2fwd-keepalive/ka-agent/Makefile +3 -3
@@ -9,8 +9,10 @@ SRCS-y := main.c CFLAGS += -I.. +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -23,8 +25,6 @@ static: build/$(APP)-static LDFLAGS += -lpthread -lrt -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l2fwd/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = l2fwd # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) # Add flag to allow experimental API as l2fwd uses rte_ethdev_set_ptype API
examples/l3fwd-acl/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = l3fwd-acl # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l3fwd-graph/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = l3fwd-graph # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l3fwd-power/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = l3fwd-power # all source are stored in SRCS-y SRCS-y := main.c perf_core.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/l3fwd/Makefile +3 -3
@@ -8,8 +8,10 @@ APP = l3fwd SRCS-y := main.c l3fwd_lpm.c l3fwd_fib.c l3fwd_em.c l3fwd_event.c SRCS-y += l3fwd_event_generic.c l3fwd_event_internal_port.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -20,8 +22,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) # Added for 'rte_eth_link_to_str()'
examples/link_status_interrupt/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = link_status_interrupt # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/multi_process/client_server_mp/mp_client/Makefile +3 -3
@@ -9,8 +9,10 @@ SRCS-y := client.c CFLAGS += -I../shared +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -21,8 +23,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/multi_process/client_server_mp/mp_server/Makefile +3 -3
@@ -9,8 +9,10 @@ SRCS-y := main.c init.c args.c CFLAGS += -I../shared +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -21,8 +23,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/multi_process/hotplug_mp/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = hotplug_mp # all source are stored in SRCS-y SRCS-y := main.c commands.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/multi_process/simple_mp/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = simple_mp # all source are stored in SRCS-y SRCS-y := main.c mp_commands.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/multi_process/symmetric_mp/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = symmetric_mp # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ntb/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = ntb_fwd # all source are stored in SRCS-y SRCS-y := ntb_fwd.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - CFLAGS += -D_FILE_OFFSET_BITS=64 LDFLAGS += -pthread
examples/packet_ordering/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = packet_ordering # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/performance-thread/l3fwd-thread/Makefile +3 -2
@@ -17,10 +17,12 @@ $(error "Cannot generate statically-linked binaries with this version of pkg-con endif endif +PKGCONF ?= pkg-config + CFLAGS += -DALLOW_EXPERIMENTAL_API # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -31,7 +33,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)
examples/performance-thread/pthread_shim/Makefile +3 -3
@@ -21,8 +21,10 @@ CFLAGS += -DALLOW_EXPERIMENTAL_API CFLAGS += -D_GNU_SOURCE LDFLAGS += "-Wl,--copy-dt-needed-entries" +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -35,8 +37,6 @@ static: build/$(APP)-static LDFLAGS += -lpthread -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/pipeline/Makefile +3 -3
@@ -11,8 +11,10 @@ SRCS-y += main.c SRCS-y += obj.c SRCS-y += thread.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -23,8 +25,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/ptpclient/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = ptpclient # all source are stored in SRCS-y SRCS-y := ptpclient.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/qos_meter/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = qos_meter # all source are stored in SRCS-y SRCS-y := main.c rte_policer.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/qos_sched/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = qos_sched # all source are stored in SRCS-y SRCS-y := main.c args.c init.c app_thread.c cfg_file.c cmdline.c stats.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/rxtx_callbacks/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = rxtx_callbacks # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/server_node_efd/node/Makefile +3 -3
@@ -9,8 +9,10 @@ SRCS-y := node.c CFLAGS += -I../shared +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -21,8 +23,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/server_node_efd/server/Makefile +3 -3
@@ -9,8 +9,10 @@ SRCS-y := main.c init.c args.c CFLAGS += -I../shared +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -21,8 +23,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/service_cores/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = service_cores # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/skeleton/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = basicfwd # all source are stored in SRCS-y SRCS-y := basicfwd.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/timer/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = timer # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/vdpa/Makefile +3 -3
@@ -8,8 +8,10 @@ APP = vdpa SRCS-y := main.c CFLAGS += -DALLOW_EXPERIMENTAL_API +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -20,8 +22,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/vhost/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = vhost-switch # all source are stored in SRCS-y SRCS-y := main.c virtio_net.c ioat.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -21,8 +23,6 @@ static: build/$(APP)-static LDFLAGS += -pthread -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/vhost_blk/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = vhost-blk # all source are stored in SRCS-y SRCS-y := blk.c vhost_blk.c vhost_blk_compat.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - LDFLAGS += -pthread PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)
examples/vhost_crypto/Makefile +3 -3
@@ -8,8 +8,10 @@ APP = vhost-crypto SRCS-y := main.c CFLAGS += -DALLOW_EXPERIMENTAL_API +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -20,8 +22,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/vm_power_manager/Makefile +3 -3
@@ -1,8 +1,10 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2010-2020 Intel Corporation +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -25,8 +27,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/vm_power_manager/guest_cli/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = guest_vm_power_mgr # all source are stored in SRCS-y SRCS-y := main.c vm_power_cli_guest.c parse.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/vmdq/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = vmdq_app # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
examples/vmdq_dcb/Makefile +3 -3
@@ -7,8 +7,10 @@ APP = vmdq_dcb_app # all source are stored in SRCS-y SRCS-y := main.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif
@@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
--
2.31.1
Re: [dpdk-dev] [PATCH v2] examples: fix pkg-config override sequence
Quoted 10 lines · On Wed, May 05, 2021 at 07:55:25PM +0530, [email protected] wrote:
From: Jerin Jacob <[email protected]>
Move pkg-config override to beginning in the
Makefileto allow use PKGCONF variable to detect the libdpdk availability.Fixes fda34680eb9a ("examples: remove legacy sections of makefiles")Signed-off-by Jerin Jacob <[email protected]>---
Thomas Monjalon
AppliedRe: [dpdk-dev] [dpdk-stable] [PATCH v2] examples: fix pkg-config override sequence
05/05/2021 17:30, Bruce Richardson:
Quoted 6 lines · On Wed, May 05, 2021 at 07:55:25PM +0530, [email protected] wrote:
Quoted 5 lines
From: Jerin Jacob <[email protected]>
Move pkg-config override to beginning in the
Makefileto allow use PKGCONF variable to detect the libdpdk availability.
Quoted 6 lines
Quoted 5 lines
Fixes fda34680eb9a ("examples: remove legacy sections of makefiles")Signed-off-by Jerin Jacob <[email protected]>---
Acked-by Bruce Richardson <[email protected]>
Applied, thanks