Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/75278/?format=api
https://patches.dpdk.org/api/patches/75278/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200807123009.21266-2-ciara.power@intel.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20200807123009.21266-2-ciara.power@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200807123009.21266-2-ciara.power@intel.com", "date": "2020-08-07T12:29:51", "name": "[20.11,01/19] examples: remove legacy sections of makefiles", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "a211f695366399e316defdd07a674cece9a2f3c9", "submitter": { "id": 978, "url": "https://patches.dpdk.org/api/people/978/?format=api", "name": "Power, Ciara", "email": "ciara.power@intel.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200807123009.21266-2-ciara.power@intel.com/mbox/", "series": [ { "id": 11549, "url": "https://patches.dpdk.org/api/series/11549/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11549", "date": "2020-08-07T12:29:50", "name": "remove make support in DPDK", "version": 1, "mbox": "https://patches.dpdk.org/series/11549/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/75278/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/75278/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 905A5A04B0;\n\tFri, 7 Aug 2020 14:37:52 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E02DA1C0AC;\n\tFri, 7 Aug 2020 14:37:40 +0200 (CEST)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by dpdk.org (Postfix) with ESMTP id C916B29D6\n for <dev@dpdk.org>; Fri, 7 Aug 2020 14:37:37 +0200 (CEST)", "from orsmga001.jf.intel.com ([10.7.209.18])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 07 Aug 2020 05:37:37 -0700", "from silpixa00399953.ir.intel.com (HELO\n silpixa00399953.ger.corp.intel.com) ([10.237.222.53])\n by orsmga001.jf.intel.com with ESMTP; 07 Aug 2020 05:37:35 -0700" ], "IronPort-SDR": [ "\n mnpUGCIXxXX6z34kLcZdI1voytbCC0xbbQmwSCadScXKj8DaQM+lMHkBKr1ACwbRUdtm0sQDlw\n ULCnggQ6DLdA==", "\n dP9Ns7NR9ZCHdfsIPV7J5h8wJUpDhk0RXe7cocyS1dUU6PhhsLrdK8+3OkVC26966v6wgBh0uN\n smDycZEraegQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9705\"; a=\"152298255\"", "E=Sophos;i=\"5.75,445,1589266800\"; d=\"scan'208\";a=\"152298255\"", "E=Sophos;i=\"5.75,445,1589266800\"; d=\"scan'208\";a=\"367914410\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Ciara Power <ciara.power@intel.com>", "To": "dev@dpdk.org", "Cc": "bruce.richardson@intel.com, thomas@monjalon.net,\n Ciara Power <ciara.power@intel.com>", "Date": "Fri, 7 Aug 2020 13:29:51 +0100", "Message-Id": "<20200807123009.21266-2-ciara.power@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20200807123009.21266-1-ciara.power@intel.com>", "References": "<20200807123009.21266-1-ciara.power@intel.com>", "Subject": "[dpdk-dev] [PATCH 20.11 01/19] examples: remove legacy sections of\n\tmakefiles", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "The example app makefiles contained sections using the legacy method of\ncompiling with make. These are no longer needed, and are removed,\nleaving only the section that uses pkg-config for the make build.\n\nSigned-off-by: Ciara Power <ciara.power@intel.com>\n---\n examples/bbdev_app/Makefile | 23 ++-------------\n examples/bond/Makefile | 34 ++--------------------\n examples/cmdline/Makefile | 29 ++-----------------\n examples/distributor/Makefile | 30 ++-----------------\n examples/eventdev_pipeline/Makefile | 23 ++-------------\n examples/fips_validation/Makefile | 34 ++--------------------\n examples/flow_classify/Makefile | 29 ++-----------------\n examples/flow_filtering/Makefile | 23 ++-------------\n examples/helloworld/Makefile | 23 ++-------------\n examples/ioat/Makefile | 22 ++------------\n examples/ip_fragmentation/Makefile | 29 ++-----------------\n examples/ip_pipeline/Makefile | 36 ++---------------------\n examples/ip_reassembly/Makefile | 29 ++-----------------\n examples/ipsec-secgw/Makefile | 36 ++---------------------\n examples/ipv4_multicast/Makefile | 29 ++-----------------\n examples/kni/Makefile | 27 ++----------------\n examples/l2fwd-cat/Makefile | 38 ++-----------------------\n examples/l2fwd-crypto/Makefile | 28 ++----------------\n examples/l2fwd-event/Makefile | 22 ++------------\n examples/l2fwd-jobstats/Makefile | 23 ++-------------\n examples/l2fwd-keepalive/Makefile | 23 ++-------------\n examples/l2fwd/Makefile | 23 ++-------------\n examples/l3fwd-acl/Makefile | 28 ++----------------\n examples/l3fwd-graph/Makefile | 23 ++-------------\n examples/l3fwd-power/Makefile | 36 ++---------------------\n examples/l3fwd/Makefile | 23 ++-------------\n examples/link_status_interrupt/Makefile | 22 ++------------\n examples/ntb/Makefile | 32 ++-------------------\n examples/packet_ordering/Makefile | 22 ++------------\n examples/ptpclient/Makefile | 28 ++----------------\n examples/qos_meter/Makefile | 28 ++----------------\n examples/qos_sched/Makefile | 31 ++------------------\n examples/rxtx_callbacks/Makefile | 31 ++------------------\n examples/service_cores/Makefile | 28 ++----------------\n examples/skeleton/Makefile | 29 ++-----------------\n examples/tep_termination/Makefile | 27 ++----------------\n examples/timer/Makefile | 28 ++----------------\n examples/vdpa/Makefile | 32 ++-------------------\n examples/vhost/Makefile | 30 ++-----------------\n examples/vhost_blk/Makefile | 31 ++------------------\n examples/vhost_crypto/Makefile | 31 ++------------------\n examples/vmdq/Makefile | 23 ++-------------\n examples/vmdq_dcb/Makefile | 31 ++------------------\n 43 files changed, 129 insertions(+), 1078 deletions(-)", "diff": "diff --git a/examples/bbdev_app/Makefile b/examples/bbdev_app/Makefile\nindex 3c8eb75a4e..9675c6d096 100644\n--- a/examples/bbdev_app/Makefile\n+++ b/examples/bbdev_app/Makefile\n@@ -8,7 +8,9 @@ APP = bbdev\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -39,22 +41,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\ndiff --git a/examples/bond/Makefile b/examples/bond/Makefile\nindex 4e4289e151..cec55dd879 100644\n--- a/examples/bond/Makefile\n+++ b/examples/bond/Makefile\n@@ -8,7 +8,9 @@ APP = bond_app\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -41,33 +43,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += $(WERROR_FLAGS)\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n-endif\n-\n-CFLAGS += -O3\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y)\n-LDLIBS += -lrte_pmd_bond\n-endif\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\ndiff --git a/examples/cmdline/Makefile b/examples/cmdline/Makefile\nindex 7325097722..96dde832cf 100644\n--- a/examples/cmdline/Makefile\n+++ b/examples/cmdline/Makefile\n@@ -8,7 +8,9 @@ APP = cmdline\n SRCS-y := main.c commands.c parse_obj_list.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,28 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-# binary name\n-APP = cmdline\n-\n-# all source are stored in SRCS-y\n-SRCS-y := main.c commands.c parse_obj_list.c\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\ndiff --git a/examples/distributor/Makefile b/examples/distributor/Makefile\nindex 6e3fef9813..0dd23762e5 100644\n--- a/examples/distributor/Makefile\n+++ b/examples/distributor/Makefile\n@@ -8,7 +8,9 @@ APP = distributor_app\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,29 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n-endif\n-\n-EXTRA_CFLAGS += -O3 -Wfatal-errors\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\ndiff --git a/examples/eventdev_pipeline/Makefile b/examples/eventdev_pipeline/Makefile\nindex 95a8d0884a..bbcf694fd0 100644\n--- a/examples/eventdev_pipeline/Makefile\n+++ b/examples/eventdev_pipeline/Makefile\n@@ -10,7 +10,9 @@ SRCS-y += pipeline_worker_generic.c\n SRCS-y += pipeline_worker_tx.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -39,22 +41,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\ndiff --git a/examples/fips_validation/Makefile b/examples/fips_validation/Makefile\nindex b44ca2ee62..fddb56ca15 100644\n--- a/examples/fips_validation/Makefile\n+++ b/examples/fips_validation/Makefile\n@@ -18,7 +18,9 @@ SRCS-y += fips_validation_xts.c\n SRCS-y += main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -47,33 +49,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-INC += $(sort $(wildcard *.h))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += $(WERROR_FLAGS)\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n-endif\n-\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-CFLAGS += -I$(SRCDIR)\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\ndiff --git a/examples/flow_classify/Makefile b/examples/flow_classify/Makefile\nindex 161d576b60..7402487dcf 100644\n--- a/examples/flow_classify/Makefile\n+++ b/examples/flow_classify/Makefile\n@@ -8,7 +8,9 @@ APP = flow_classify\n SRCS-y := flow_classify.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -39,28 +41,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n-endif\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\ndiff --git a/examples/flow_filtering/Makefile b/examples/flow_filtering/Makefile\nindex 010a1383e2..3a3b243884 100644\n--- a/examples/flow_filtering/Makefile\n+++ b/examples/flow_filtering/Makefile\n@@ -6,7 +6,9 @@ APP = flow\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -35,22 +37,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\ndiff --git a/examples/helloworld/Makefile b/examples/helloworld/Makefile\nindex 94a1074cf6..d3784c11f3 100644\n--- a/examples/helloworld/Makefile\n+++ b/examples/helloworld/Makefile\n@@ -8,7 +8,9 @@ APP = helloworld\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,22 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\ndiff --git a/examples/ioat/Makefile b/examples/ioat/Makefile\nindex 86308854ea..ee03337ca4 100644\n--- a/examples/ioat/Makefile\n+++ b/examples/ioat/Makefile\n@@ -8,7 +8,9 @@ APP = ioatfwd\n SRCS-y := ioatfwd.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,21 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/ip_fragmentation/Makefile b/examples/ip_fragmentation/Makefile\nindex 3f4db3f59d..e3baedc18e 100644\n--- a/examples/ip_fragmentation/Makefile\n+++ b/examples/ip_fragmentation/Makefile\n@@ -9,7 +9,9 @@ APP = ip_fragmentation\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -39,28 +41,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n-endif\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\ndiff --git a/examples/ip_pipeline/Makefile b/examples/ip_pipeline/Makefile\nindex 1116bb6c18..e4e86830a6 100644\n--- a/examples/ip_pipeline/Makefile\n+++ b/examples/ip_pipeline/Makefile\n@@ -21,7 +21,9 @@ SRCS-y += tmgr.c\n SRCS-y += cryptodev.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -57,35 +59,3 @@ build:\n clean:\n \trm -f build/$(APP)* build/*.o\n \ttest -d build && rmdir -p build || true\n-\n-else\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)\n-$(info This application can only operate in a linux environment, \\\n-please change the definition of the RTE_TARGET environment variable)\n-all:\n-clean:\n-else\n-\n-INC += $(sort $(wildcard *.h))\n-\n-SRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) := $(SRCS-y)\n-\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-CFLAGS += -I$(SRCDIR)\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\n-endif\ndiff --git a/examples/ip_reassembly/Makefile b/examples/ip_reassembly/Makefile\nindex be9e541bd6..1350de9ebe 100644\n--- a/examples/ip_reassembly/Makefile\n+++ b/examples/ip_reassembly/Makefile\n@@ -9,7 +9,9 @@ APP = ip_reassembly\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -38,28 +40,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n-endif\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\ndiff --git a/examples/ipsec-secgw/Makefile b/examples/ipsec-secgw/Makefile\nindex b5ccbca858..5f85dbbc02 100644\n--- a/examples/ipsec-secgw/Makefile\n+++ b/examples/ipsec-secgw/Makefile\n@@ -23,7 +23,9 @@ SRCS-y += flow.c\n CFLAGS += -gdwarf-2\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -54,35 +56,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-ifneq ($(MAKECMDGOALS),clean)\n-ifneq ($(CONFIG_RTE_LIBRTE_IPSEC),y)\n-$(error \"RTE_LIBRTE_IPSEC is required to build ipsec-secgw\")\n-endif\n-endif\n-\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-CFLAGS += -O3 -gdwarf-2\n-CFLAGS += $(WERROR_FLAGS)\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)\n-CFLAGS_sa.o += -diag-disable=vec\n-endif\n-\n-ifeq ($(DEBUG),1)\n-CFLAGS += -DIPSEC_DEBUG -fstack-protector-all -O0\n-endif\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\ndiff --git a/examples/ipv4_multicast/Makefile b/examples/ipv4_multicast/Makefile\nindex 0ed78c1cc2..aa2fda5e8a 100644\n--- a/examples/ipv4_multicast/Makefile\n+++ b/examples/ipv4_multicast/Makefile\n@@ -9,7 +9,9 @@ APP = ipv4_multicast\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -38,28 +40,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n-endif\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\ndiff --git a/examples/kni/Makefile b/examples/kni/Makefile\nindex 8fcb67c619..71402fa744 100644\n--- a/examples/kni/Makefile\n+++ b/examples/kni/Makefile\n@@ -8,7 +8,9 @@ APP = kni\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -38,26 +40,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)\n-$(error This application can only operate in a linux environment, \\\n-please change the definition of the RTE_TARGET environment variable)\n-endif\n-\n-CFLAGS += -O3\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-CFLAGS += $(WERROR_FLAGS)\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/l2fwd-cat/Makefile b/examples/l2fwd-cat/Makefile\nindex d767a10d7d..4dce18226c 100644\n--- a/examples/l2fwd-cat/Makefile\n+++ b/examples/l2fwd-cat/Makefile\n@@ -8,7 +8,9 @@ APP = l2fwd-cat\n SRCS-y := l2fwd-cat.c cat.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -39,37 +41,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-ifeq ($(PQOS_INSTALL_PATH),)\n-$(error \"Please define PQOS_INSTALL_PATH environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n-endif\n-\n-EXTRA_CFLAGS += -O3 -g -Wfatal-errors\n-\n-CFLAGS += -I$(PQOS_INSTALL_PATH)/../include\n-\n-LDLIBS += -L$(PQOS_INSTALL_PATH)\n-LDLIBS += -lpqos\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/l2fwd-crypto/Makefile b/examples/l2fwd-crypto/Makefile\nindex cdbb91a1e6..b008f887cb 100644\n--- a/examples/l2fwd-crypto/Makefile\n+++ b/examples/l2fwd-crypto/Makefile\n@@ -8,7 +8,9 @@ APP = l2fwd-crypto\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,27 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-\n-ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y)\n-ifeq ($(CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER),y)\n-LDLIBS += -lrte_pmd_crypto_scheduler\n-endif\n-endif\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/l2fwd-event/Makefile b/examples/l2fwd-event/Makefile\nindex ddee388ae6..a7249995c7 100644\n--- a/examples/l2fwd-event/Makefile\n+++ b/examples/l2fwd-event/Makefile\n@@ -14,7 +14,9 @@ SRCS-y += l2fwd_event_generic.c\n SRCS-y += l2fwd_event_internal_port.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -43,21 +45,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/l2fwd-jobstats/Makefile b/examples/l2fwd-jobstats/Makefile\nindex bdb83c3e1c..292f35bee7 100644\n--- a/examples/l2fwd-jobstats/Makefile\n+++ b/examples/l2fwd-jobstats/Makefile\n@@ -8,7 +8,9 @@ APP = l2fwd-jobstats\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,22 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/l2fwd-keepalive/Makefile b/examples/l2fwd-keepalive/Makefile\nindex 9fd9db4974..26b50263aa 100644\n--- a/examples/l2fwd-keepalive/Makefile\n+++ b/examples/l2fwd-keepalive/Makefile\n@@ -8,7 +8,9 @@ APP = l2fwd-keepalive\n SRCS-y := main.c shm.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -39,22 +41,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-LDFLAGS += -lrt\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/l2fwd/Makefile b/examples/l2fwd/Makefile\nindex 15105ac57e..6a74c7464a 100644\n--- a/examples/l2fwd/Makefile\n+++ b/examples/l2fwd/Makefile\n@@ -8,7 +8,9 @@ APP = l2fwd\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -39,22 +41,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-# Add flag to allow experimental API as l2fwd uses rte_ethdev_set_ptype API\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/l3fwd-acl/Makefile b/examples/l3fwd-acl/Makefile\nindex 6644a2cf1e..a095408f51 100644\n--- a/examples/l3fwd-acl/Makefile\n+++ b/examples/l3fwd-acl/Makefile\n@@ -8,7 +8,9 @@ APP = l3fwd-acl\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,27 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n-endif\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/l3fwd-graph/Makefile b/examples/l3fwd-graph/Makefile\nindex f3cf275ece..782a261d6b 100644\n--- a/examples/l3fwd-graph/Makefile\n+++ b/examples/l3fwd-graph/Makefile\n@@ -8,7 +8,9 @@ APP = l3fwd-graph\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,22 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-CFLAGS += -I$(SRCDIR)\n-CFLAGS += -O3 $(USER_FLAGS)\n-CFLAGS += $(WERROR_FLAGS)\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/l3fwd-power/Makefile b/examples/l3fwd-power/Makefile\nindex ac1ccdcf61..29635b325a 100644\n--- a/examples/l3fwd-power/Makefile\n+++ b/examples/l3fwd-power/Makefile\n@@ -8,7 +8,9 @@ APP = l3fwd-power\n SRCS-y := main.c perf_core.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -39,35 +41,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)\n-$(info This application can only operate in a linux environment, \\\n-please change the definition of the RTE_TARGET environment variable)\n-all:\n-else\n-\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-LDLIBS += -lm -lrte_telemetry\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n-endif\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\n-endif\ndiff --git a/examples/l3fwd/Makefile b/examples/l3fwd/Makefile\nindex b25a515813..52403b2bb4 100644\n--- a/examples/l3fwd/Makefile\n+++ b/examples/l3fwd/Makefile\n@@ -9,7 +9,9 @@ SRCS-y := main.c l3fwd_lpm.c l3fwd_em.c l3fwd_event.c\n SRCS-y += l3fwd_event_generic.c l3fwd_event_internal_port.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -38,22 +40,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -I$(SRCDIR)\n-CFLAGS += -O3 $(USER_FLAGS)\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/link_status_interrupt/Makefile b/examples/link_status_interrupt/Makefile\nindex f16916faa9..da2e328d68 100644\n--- a/examples/link_status_interrupt/Makefile\n+++ b/examples/link_status_interrupt/Makefile\n@@ -8,7 +8,9 @@ APP = link_status_interrupt\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,21 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/ntb/Makefile b/examples/ntb/Makefile\nindex 81ec6017f5..ccec63c125 100644\n--- a/examples/ntb/Makefile\n+++ b/examples/ntb/Makefile\n@@ -8,8 +8,9 @@ APP = ntb_fwd\n SRCS-y := ntb_fwd.c\n \n # Build using pkg-config variables if possible\n-$(shell pkg-config --exists libdpdk)\n-ifeq ($(.SHELLSTATUS),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -42,30 +43,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \trmdir --ignore-fail-on-non-empty build\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, can be overridden by command line or environment\n-RTE_TARGET ?= x86_64-native-linuxapp-gcc\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-ifneq ($(CONFIG_RTE_EXEC_ENV_LINUXAPP),y)\n-$(info This application can only operate in a linuxapp environment, \\\n-please change the definition of the RTE_TARGET environment variable)\n-all:\n-else\n-\n-CFLAGS += -D_FILE_OFFSET_BITS=64\n-CFLAGS += -O2\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\n-endif\ndiff --git a/examples/packet_ordering/Makefile b/examples/packet_ordering/Makefile\nindex f99b69dc25..480495eeba 100644\n--- a/examples/packet_ordering/Makefile\n+++ b/examples/packet_ordering/Makefile\n@@ -8,7 +8,9 @@ APP = packet_ordering\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,21 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/ptpclient/Makefile b/examples/ptpclient/Makefile\nindex a9555fc66a..501bc67173 100644\n--- a/examples/ptpclient/Makefile\n+++ b/examples/ptpclient/Makefile\n@@ -8,7 +8,9 @@ APP = ptpclient\n SRCS-y := ptpclient.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,27 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n-endif\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/qos_meter/Makefile b/examples/qos_meter/Makefile\nindex 165e07ee25..8eabb8f8c9 100644\n--- a/examples/qos_meter/Makefile\n+++ b/examples/qos_meter/Makefile\n@@ -8,7 +8,9 @@ APP = qos_meter\n SRCS-y := main.c rte_policer.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -39,27 +41,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n-endif\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/qos_sched/Makefile b/examples/qos_sched/Makefile\nindex 0dd7d91055..7961c60120 100644\n--- a/examples/qos_sched/Makefile\n+++ b/examples/qos_sched/Makefile\n@@ -8,7 +8,9 @@ APP = qos_sched\n SRCS-y := main.c args.c init.c app_thread.c cfg_file.c cmdline.c stats.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,30 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)\n-$(info This application can only operate in a linux environment, \\\n-please change the definition of the RTE_TARGET environment variable)\n-all:\n-clean:\n-else\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\n-endif\ndiff --git a/examples/rxtx_callbacks/Makefile b/examples/rxtx_callbacks/Makefile\nindex 10e5f14d5c..3e982665c8 100644\n--- a/examples/rxtx_callbacks/Makefile\n+++ b/examples/rxtx_callbacks/Makefile\n@@ -8,7 +8,9 @@ APP = rxtx_callbacks\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,30 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += $(WERROR_FLAGS)\n-\n-# rte_eth_read_clock is experimental\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n-endif\n-\n-EXTRA_CFLAGS += -O3 -g -Wfatal-errors\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/service_cores/Makefile b/examples/service_cores/Makefile\nindex e742d88f61..456981afa5 100644\n--- a/examples/service_cores/Makefile\n+++ b/examples/service_cores/Makefile\n@@ -8,7 +8,9 @@ APP = service_cores\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,27 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n-endif\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\ndiff --git a/examples/skeleton/Makefile b/examples/skeleton/Makefile\nindex 5f5acf7159..059dc2112b 100644\n--- a/examples/skeleton/Makefile\n+++ b/examples/skeleton/Makefile\n@@ -8,7 +8,9 @@ APP = basicfwd\n SRCS-y := basicfwd.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,28 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n-endif\n-\n-EXTRA_CFLAGS += -O3 -g -Wfatal-errors\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/tep_termination/Makefile b/examples/tep_termination/Makefile\nindex 548ca3cee3..65218c504a 100644\n--- a/examples/tep_termination/Makefile\n+++ b/examples/tep_termination/Makefile\n@@ -8,7 +8,9 @@ APP = tep_termination\n SRCS-y := main.c vxlan_setup.c vxlan.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -41,26 +43,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)\n-$(error This application can only operate in a linux environment, \\\n-please change the definition of the RTE_TARGET environment variable)\n-endif\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -Wno-deprecated-declarations\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/timer/Makefile b/examples/timer/Makefile\nindex b40b65995e..64c4016aa6 100644\n--- a/examples/timer/Makefile\n+++ b/examples/timer/Makefile\n@@ -8,7 +8,9 @@ APP = timer\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,27 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n-endif\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/vdpa/Makefile b/examples/vdpa/Makefile\nindex bc0b6793e6..8dfa0ceff2 100644\n--- a/examples/vdpa/Makefile\n+++ b/examples/vdpa/Makefile\n@@ -9,7 +9,9 @@ SRCS-y := main.c\n CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -38,31 +40,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)\n-$(info This application can only operate in a linux environment, \\\n-please change the definition of the RTE_TARGET environment variable)\n-all:\n-else\n-\n-CFLAGS += -O2 -D_FILE_OFFSET_BITS=64\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -D_GNU_SOURCE\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif # linuxapp\n-\n-endif # pkg-config\ndiff --git a/examples/vhost/Makefile b/examples/vhost/Makefile\nindex ef6f3550f3..98f13176dd 100644\n--- a/examples/vhost/Makefile\n+++ b/examples/vhost/Makefile\n@@ -8,7 +8,9 @@ APP = vhost-switch\n SRCS-y := main.c virtio_net.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -41,29 +43,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)\n-$(info This application can only operate in a linux environment, \\\n-please change the definition of the RTE_TARGET environment variable)\n-all:\n-else\n-\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-CFLAGS += -O2 -D_FILE_OFFSET_BITS=64\n-CFLAGS += $(WERROR_FLAGS)\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\n-endif\ndiff --git a/examples/vhost_blk/Makefile b/examples/vhost_blk/Makefile\nindex 3952791784..6caa40c674 100644\n--- a/examples/vhost_blk/Makefile\n+++ b/examples/vhost_blk/Makefile\n@@ -8,8 +8,9 @@ APP = vhost-blk\n SRCS-y := blk.c vhost_blk.c vhost_blk_compat.c\n \n # Build using pkg-config variables if possible\n-$(shell pkg-config --exists libdpdk)\n-ifeq ($(.SHELLSTATUS),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -42,29 +43,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)\n-$(info This application can only operate in a linux environment, \\\n-please change the definition of the RTE_TARGET environment variable)\n-all:\n-else\n-\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-CFLAGS += -O2 -D_FILE_OFFSET_BITS=64\n-CFLAGS += $(WERROR_FLAGS)\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif\n-endif\ndiff --git a/examples/vhost_crypto/Makefile b/examples/vhost_crypto/Makefile\nindex 28e3e4de74..d93c1dd424 100644\n--- a/examples/vhost_crypto/Makefile\n+++ b/examples/vhost_crypto/Makefile\n@@ -9,7 +9,9 @@ SRCS-y := main.c\n CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -38,30 +40,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)\n-$(info This application can only operate in a linux environment, \\\n-please change the definition of the RTE_TARGET environment variable)\n-all:\n-else\n-\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-CFLAGS += -O2 -D_FILE_OFFSET_BITS=64\n-CFLAGS += $(WERROR_FLAGS)\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-\n-endif # Linux\n-\n-endif # pkg-config\ndiff --git a/examples/vmdq/Makefile b/examples/vmdq/Makefile\nindex b73373d3f5..c162e7c4e1 100644\n--- a/examples/vmdq/Makefile\n+++ b/examples/vmdq/Makefile\n@@ -8,7 +8,9 @@ APP = vmdq_app\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,22 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-EXTRA_CFLAGS += -O3\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\ndiff --git a/examples/vmdq_dcb/Makefile b/examples/vmdq_dcb/Makefile\nindex 8d8baf729b..e9b29e2abd 100644\n--- a/examples/vmdq_dcb/Makefile\n+++ b/examples/vmdq_dcb/Makefile\n@@ -8,7 +8,9 @@ APP = vmdq_dcb_app\n SRCS-y := main.c\n \n # Build using pkg-config variables if possible\n-ifeq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+\t$(error \"no installation of DPDK found\")\n+endif\n \n all: shared\n .PHONY: shared static\n@@ -37,30 +39,3 @@ build:\n clean:\n \trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n \ttest -d build && rmdir -p build || true\n-\n-else # Build using legacy build system\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-\n-# workaround for a gcc bug with noreturn attribute\n-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n-CFLAGS_main.o += -Wno-return-type\n-endif\n-ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)\n-CFLAGS_main.o += -diag-disable=vec\n-endif\n-EXTRA_CFLAGS += -O3 -g\n-\n-include $(RTE_SDK)/mk/rte.extapp.mk\n-endif\n", "prefixes": [ "20.11", "01/19" ] }{ "id": 75278, "url": "