Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/75743/?format=api
http://patches.dpdk.org/api/patches/75743/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200820124140.13451-5-ciara.power@intel.com/", "project": { "id": 1, "url": "http://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": "<20200820124140.13451-5-ciara.power@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200820124140.13451-5-ciara.power@intel.com", "date": "2020-08-20T12:41:07", "name": "[v2,04/37] examples/ka-agent: convert to pkg-config-based build", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "dc436697331d2ddcc541144b3579f23c6ed41ee2", "submitter": { "id": 978, "url": "http://patches.dpdk.org/api/people/978/?format=api", "name": "Power, Ciara", "email": "ciara.power@intel.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200820124140.13451-5-ciara.power@intel.com/mbox/", "series": [ { "id": 11726, "url": "http://patches.dpdk.org/api/series/11726/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11726", "date": "2020-08-20T12:41:03", "name": "remove make support in DPDK", "version": 2, "mbox": "http://patches.dpdk.org/series/11726/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/75743/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/75743/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 A9809A04AF;\n\tThu, 20 Aug 2020 14:52:21 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 381B11C0DB;\n\tThu, 20 Aug 2020 14:51:36 +0200 (CEST)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by dpdk.org (Postfix) with ESMTP id D5D071C0C2\n for <dev@dpdk.org>; Thu, 20 Aug 2020 14:51:31 +0200 (CEST)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Aug 2020 05:51:31 -0700", "from silpixa00399953.ir.intel.com (HELO\n silpixa00399953.ger.corp.intel.com) ([10.237.222.53])\n by fmsmga005.fm.intel.com with ESMTP; 20 Aug 2020 05:51:30 -0700" ], "IronPort-SDR": [ "\n K6dRMKvRzFS456/c9rzQeidtFnmDZP+b3o1NV2yJW8n2f1c33WbSKEczdMEByyAJ5TrvND4Cc0\n EtF7oes9pYfQ==", "\n r+pMg569HxLY7c6mq2wzQQ+caOGpt5vyL9tr/k54ZHcC6U6S4/BgLa6tv/HD9ptSW6yzdgGV0m\n sJvfL6je3rog==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9718\"; a=\"219594205\"", "E=Sophos;i=\"5.76,332,1592895600\"; d=\"scan'208\";a=\"219594205\"", "E=Sophos;i=\"5.76,332,1592895600\"; d=\"scan'208\";a=\"498130566\"" ], "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": "Kevin Laatz <kevin.laatz@intel.com>", "Date": "Thu, 20 Aug 2020 13:41:07 +0100", "Message-Id": "<20200820124140.13451-5-ciara.power@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20200820124140.13451-1-ciara.power@intel.com>", "References": "<20200807123009.21266-1-ciara.power@intel.com>\n <20200820124140.13451-1-ciara.power@intel.com>", "Subject": "[dpdk-dev] [PATCH v2 04/37] examples/ka-agent: convert to\n\tpkg-config-based build", "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": "From: Kevin Laatz <kevin.laatz@intel.com>\n\nRemove references to the old make build system and use pkg-config for\nbuilding these examples.\n\nSigned-off-by: Kevin Laatz <kevin.laatz@intel.com>\n---\n examples/l2fwd-keepalive/ka-agent/Makefile | 51 ++++++++++++++++------\n 1 file changed, 37 insertions(+), 14 deletions(-)", "diff": "diff --git a/examples/l2fwd-keepalive/ka-agent/Makefile b/examples/l2fwd-keepalive/ka-agent/Makefile\nindex 8d5061b178..700137c2e2 100644\n--- a/examples/l2fwd-keepalive/ka-agent/Makefile\n+++ b/examples/l2fwd-keepalive/ka-agent/Makefile\n@@ -1,14 +1,5 @@\n # SPDX-License-Identifier: BSD-3-Clause\n-# Copyright(c) 2016 Intel Corporation\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+# Copyright(c) 2016-2020 Intel Corporation\n \n # binary name\n APP = ka-agent\n@@ -16,7 +7,39 @@ APP = ka-agent\n # all source are stored in SRCS-y\n SRCS-y := main.c\n \n-CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR)/../\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-LDFLAGS += -lrt\n-include $(RTE_SDK)/mk/rte.extapp.mk\n+CFLAGS += -I..\n+\n+# Build using pkg-config variables if possible\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+$(error \"no installation of DPDK found\")\n+endif\n+\n+all: shared\n+.PHONY: shared static\n+shared: build/$(APP)-shared\n+\tln -sf $(APP)-shared build/$(APP)\n+static: build/$(APP)-static\n+\tln -sf $(APP)-static build/$(APP)\n+\n+LDFLAGS += -lpthread -lrt\n+\n+PKGCONF ?= pkg-config\n+\n+PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n+CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n+LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n+\n+build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n+\t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n+\n+build/$(APP)-static: $(SRCS-y) Makefile $(PC_FILE) | build\n+\t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_STATIC)\n+\n+build:\n+\t@mkdir -p $@\n+\n+.PHONY: clean\n+clean:\n+\trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n+\ttest -d build && rmdir -p build || true\n", "prefixes": [ "v2", "04/37" ] }{ "id": 75743, "url": "