get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/8076/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 8076,
    "url": "https://patches.dpdk.org/api/patches/8076/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1445955906-8505-2-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-2-git-send-email-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1445955906-8505-2-git-send-email-bruce.richardson@intel.com",
    "date": "2015-10-27T14:25:05",
    "name": "[dpdk-dev,RFC-PATCH,1/2] gen-build-mk: add \"make install\" option to build dir",
    "commit_ref": null,
    "pull_url": null,
    "state": "rfc",
    "archived": true,
    "hash": "3bda60349e9f994ae322f4fe2f0d560cd01957fc",
    "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-2-git-send-email-bruce.richardson@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/8076/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/8076/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 0503C5682;\n\tTue, 27 Oct 2015 15:25:13 +0100 (CET)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 438FC567C\n\tfor <dev@dpdk.org>; Tue, 27 Oct 2015 15:25:11 +0100 (CET)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby orsmga102.jf.intel.com with ESMTP; 27 Oct 2015 07:25:10 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby fmsmga001.fm.intel.com with ESMTP; 27 Oct 2015 07:25:08 -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\tt9REP8hE032736; 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 t9REP7Bt008546;\n\tTue, 27 Oct 2015 14:25:07 GMT",
            "(from bricha3@localhost)\n\tby sivswdev01.ir.intel.com with  id t9REP7am008542;\n\tTue, 27 Oct 2015 14:25:07 GMT"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.20,205,1444719600\"; d=\"scan'208\";a=\"820534291\"",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "mario.alfredo.c.arevalo@intel.com, dev@dpdk.org",
        "Date": "Tue, 27 Oct 2015 14:25:05 +0000",
        "Message-Id": "<1445955906-8505-2-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 1/2] gen-build-mk: add \"make install\" option\n\tto build dir",
        "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": "Add in a \"make install\" command to the makefile for a DPDK build\ndirectory. Once inside the directory, make and make install will\nbehave as normal for opensource packages, compiling and installing\nin the filesystem the DPDK code.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n scripts/gen-build-mk.sh | 13 +++++++++++++\n 1 file changed, 13 insertions(+)",
    "diff": "diff --git a/scripts/gen-build-mk.sh b/scripts/gen-build-mk.sh\nindex 5c12813..2387cf6 100755\n--- a/scripts/gen-build-mk.sh\n+++ b/scripts/gen-build-mk.sh\n@@ -36,6 +36,9 @@\n #   $1: path of project src root\n #   $2: path of build dir (can be relative to $1)\n \n+if [ -z \"$RTE_PREFIX\" ] ; then\n+\tRTE_PREFIX=/usr/local\n+fi\n echo \"# Automatically generated by gen-build-mk.sh\"\n echo\n echo \"ifdef O\"\n@@ -46,8 +49,18 @@ echo \"endif\"\n echo\n echo \"MAKEFLAGS += --no-print-directory\"\n echo\n+echo \"INSTALL = install -v\"\n+echo\n echo \"all:\"\n echo \"\t@\\$(MAKE) -C $1 O=$2\"\n echo\n+echo \"install:\"\n+echo \"\t@\\$(INSTALL) -d $RTE_PREFIX/lib/dpdk $RTE_PREFIX/include/dpdk\"\n+echo \"\t@\\$(INSTALL) -d $RTE_PREFIX/include/dpdk/exec-env $RTE_PREFIX/include/dpdk/generic\"\n+echo \"\t@\\$(INSTALL) lib/* $RTE_PREFIX/lib/dpdk\"\n+echo \"\t@\\$(INSTALL) include/*.h $RTE_PREFIX/include/dpdk\"\n+echo \"\t@\\$(INSTALL) include/exec-env/*.h $RTE_PREFIX/include/dpdk/exec-env\"\n+echo \"\t@\\$(INSTALL) include/generic/*.h $RTE_PREFIX/include/dpdk/generic\"\n+echo\n echo \"%::\"\n echo \"\t@\\$(MAKE) -C $1 O=$2 \\$@\"\n",
    "prefixes": [
        "dpdk-dev",
        "RFC-PATCH",
        "1/2"
    ]
}