Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/8077/?format=api
https://patches.dpdk.org/api/patches/8077/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1445955906-8505-3-git-send-email-bruce.richardson@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": "<1445955906-8505-3-git-send-email-bruce.richardson@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1445955906-8505-3-git-send-email-bruce.richardson@intel.com", "date": "2015-10-27T14:25:06", "name": "[dpdk-dev,RFC-PATCH,2/2] add example configure script", "commit_ref": null, "pull_url": null, "state": "rfc", "archived": true, "hash": "ea088d58f1f5045f51bb8ae2e6dd45dcd93154f1", "submitter": { "id": 20, "url": "https://patches.dpdk.org/api/people/20/?format=api", "name": "Bruce Richardson", "email": "bruce.richardson@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1445955906-8505-3-git-send-email-bruce.richardson@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/8077/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/8077/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id ECAEB8DA3;\n\tTue, 27 Oct 2015 15:25:14 +0100 (CET)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id EA4AF5682\n\tfor <dev@dpdk.org>; Tue, 27 Oct 2015 15:25:11 +0100 (CET)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga103.jf.intel.com with ESMTP; 27 Oct 2015 07:25:10 -0700", "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga001.jf.intel.com with ESMTP; 27 Oct 2015 07:25:10 -0700", "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tt9REP82a032739; Tue, 27 Oct 2015 14:25:08 GMT", "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id t9REP8WV008553;\n\tTue, 27 Oct 2015 14:25:08 GMT", "(from bricha3@localhost)\n\tby sivswdev01.ir.intel.com with id t9REP8Jq008549;\n\tTue, 27 Oct 2015 14:25:08 GMT" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.20,205,1444719600\"; d=\"scan'208\";a=\"804368832\"", "From": "Bruce Richardson <bruce.richardson@intel.com>", "To": "mario.alfredo.c.arevalo@intel.com, dev@dpdk.org", "Date": "Tue, 27 Oct 2015 14:25:06 +0000", "Message-Id": "<1445955906-8505-3-git-send-email-bruce.richardson@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1445955906-8505-1-git-send-email-bruce.richardson@intel.com>", "References": "<6594B51DBE477C48AAE23675314E6C460F1B8B6E@fmsmsx107.amr.corp.intel.com>\n\t<1445955906-8505-1-git-send-email-bruce.richardson@intel.com>", "Subject": "[dpdk-dev] [RFC-PATCH 2/2] add example configure script", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "To demonstrate the idea of using a configure-make-make install type\noperation for installing DPDK, add in a simple configure script in\npython which runs \"make config T=<target>\" to do most of the work and\nthen tweaks the .config file afterwards.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n configure | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 59 insertions(+)\n create mode 100755 configure", "diff": "diff --git a/configure b/configure\nnew file mode 100755\nindex 0000000..e820bdd\n--- /dev/null\n+++ b/configure\n@@ -0,0 +1,59 @@\n+#! /usr/bin/env python\n+\n+# BSD LICENSE\n+#\n+# Copyright(c) 2015 Intel Corporation. All rights reserved.\n+# All rights reserved.\n+#\n+# Redistribution and use in source and binary forms, with or without\n+# modification, are permitted provided that the following conditions\n+# are met:\n+#\n+# * Redistributions of source code must retain the above copyright\n+# notice, this list of conditions and the following disclaimer.\n+# * Redistributions in binary form must reproduce the above copyright\n+# notice, this list of conditions and the following disclaimer in\n+# the documentation and/or other materials provided with the\n+# distribution.\n+# * Neither the name of Intel Corporation nor the names of its\n+# contributors may be used to endorse or promote products derived\n+# from this software without specific prior written permission.\n+#\n+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+# \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+config_append=\"\"\n+\n+from getopt import getopt\n+import sys, os\n+\n+optlist, args = getopt(sys.argv[1:], '', ['prefix=','machine=','config='])\n+\n+for option, arg in optlist:\n+\tif option == \"--prefix\":\n+\t\tos.environ['RTE_PREFIX'] = arg\n+\telif option == \"--machine\":\n+\t\tconfig_append += \"CONFIG_RTE_MACHINE=\\\"%s\\\"\\n\" % arg\n+\telif option == \"--config\":\n+\t\tif not arg.startswith(\"CONFIG_\"):\n+\t\t\tconfig_append += \"CONFIG_%s\\n\" % arg\n+\t\telse:\n+\t\t\tconfig_append += \"%s\\n\" % arg\n+\n+if \"RTE_TARGET\" in os.environ:\n+\tos.system(\"make config T=$RTE_TARGET\")\n+else:\n+\tos.system(\"make config T=x86_64-native-linuxapp-gcc\")\n+f = open(\"build/.config\", \"a\")\n+f.write(config_append)\n+f.close()\n+\n", "prefixes": [ "dpdk-dev", "RFC-PATCH", "2/2" ] }{ "id": 8077, "url": "