get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 814501,
    "url": "http://patchwork.ozlabs.org/api/patches/814501/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/1505567532-11583-1-git-send-email-festevam@gmail.com/",
    "project": {
        "id": 27,
        "url": "http://patchwork.ozlabs.org/api/projects/27/?format=api",
        "name": "Buildroot development",
        "link_name": "buildroot",
        "list_id": "buildroot.buildroot.org",
        "list_email": "buildroot@buildroot.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1505567532-11583-1-git-send-email-festevam@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-16T13:12:11",
    "name": "[RESEND,1/2] imx: Introduce an SPL genimage template",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "a8e528a4ff12d6968dc0d2ac73f574c5129de94e",
    "submitter": {
        "id": 6978,
        "url": "http://patchwork.ozlabs.org/api/people/6978/?format=api",
        "name": "Fabio Estevam",
        "email": "festevam@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/1505567532-11583-1-git-send-email-festevam@gmail.com/mbox/",
    "series": [
        {
            "id": 3438,
            "url": "http://patchwork.ozlabs.org/api/series/3438/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=3438",
            "date": "2017-09-16T13:12:11",
            "name": "[RESEND,1/2] imx: Introduce an SPL genimage template",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/3438/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/814501/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/814501/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<buildroot-bounces@busybox.net>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "buildroot@lists.busybox.net"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "buildroot@osuosl.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=busybox.net\n\t(client-ip=140.211.166.137; helo=fraxinus.osuosl.org;\n\tenvelope-from=buildroot-bounces@busybox.net;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"MtZmzsxE\"; dkim-atps=neutral"
        ],
        "Received": [
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xvXk804t5z9sPk\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 16 Sep 2017 23:12:31 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 6DE44892F0;\n\tSat, 16 Sep 2017 13:12:30 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id XRPOVzWzvI_Z; Sat, 16 Sep 2017 13:12:30 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id D66BE892F3;\n\tSat, 16 Sep 2017 13:12:29 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id D96561C25A5\n\tfor <buildroot@lists.busybox.net>;\n\tSat, 16 Sep 2017 13:12:28 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id D42DE89FD7\n\tfor <buildroot@lists.busybox.net>;\n\tSat, 16 Sep 2017 13:12:28 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id tLxa3BAFjAYW for <buildroot@lists.busybox.net>;\n\tSat, 16 Sep 2017 13:12:28 +0000 (UTC)",
            "from mail-qk0-f196.google.com (mail-qk0-f196.google.com\n\t[209.85.220.196])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id 05DC989F78\n\tfor <buildroot@buildroot.org>; Sat, 16 Sep 2017 13:12:28 +0000 (UTC)",
            "by mail-qk0-f196.google.com with SMTP id c69so3004717qke.5\n\tfor <buildroot@buildroot.org>; Sat, 16 Sep 2017 06:12:27 -0700 (PDT)",
            "from localhost.localdomain ([187.180.181.142])\n\tby smtp.gmail.com with ESMTPSA id\n\tt65sm2082633qke.12.2017.09.16.06.12.24\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tSat, 16 Sep 2017 06:12:25 -0700 (PDT)"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=aO+YsPVhvk73rOBzyH+YKmIuhkWDHOxsj6DJ+CuW6VM=;\n\tb=MtZmzsxEMMpLH1Z4rkMhMmXnWwi0hVU/xQs2FHTLXmKuj2piOqd7qvDOVcIgTvDQ5S\n\t/EvJE75vIOhWOVMy/y4K7iWGbVnSzrqlFGgIG3xIZ3CKQ2NF36ddJh6Yi6p5j8PMJzgw\n\t69KoHOTklGPPAEkbhQI7TnFn7eFkwFtedRSTMQeT0QagK1AEK11L/cQc1rN16JJHowG8\n\tZVwLhzmosdgApW2HwRQs2MkeCHJ00VZSpvhQMhQL8wCXq5WEz9QuyLfiOZeYPrmIulDq\n\t1wKEYeCVZaJMzJcUeYqQ1EBk/86p+9Cy/FN9MCDVWF+ePADXhOY8VbNaJNPhJqBk56gB\n\tErkQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=aO+YsPVhvk73rOBzyH+YKmIuhkWDHOxsj6DJ+CuW6VM=;\n\tb=N+eIRVhHl+unMnPUi1QnMhjx4zXxO8eykxF4ypBCdahemJjzMiqoM/WDDkBH1dbF/D\n\tzwand7X8TRAulnmRIWSP5ysbSlqyKfksXqrqKLS5TLxqAkU5A/dK8+gwqiErqAC4+wrT\n\tmeWIYZxHKPXIhW2xO7P9qvIMk8bLNueilNwq6hREUZXdJrH4yLWOvpbn41fjLNoNOxuJ\n\t9dKaEp8Fm646h+1xOsLH4pOxjGQUJzl7gmIizAtmLUpAX8xQ7NwLlO9rZIHB+QygfYxz\n\tSwcivPTZRPvSh0+DV9D28FxVFGZplXWLp/eGRk0SaeyaNC+HeeTRo12T8CgGJ1bshbWY\n\t72rQ==",
        "X-Gm-Message-State": "AHPjjUhh66/+gd1aRUwoNOgc+NjDSV9rJggrrLMKf2sRxb78tXCYF2TZ\n\ty/LcKLQ20DS3JA==",
        "X-Google-Smtp-Source": "AOwi7QAwhuFSO84FwxfV1nrVd3MihtQWtafDOhzG+yMSRD1YmyYmuLS0oyyk5IFZ1dyFe06SbvU1Xw==",
        "X-Received": "by 10.55.123.1 with SMTP id w1mr12550394qkc.114.1505567546862;\n\tSat, 16 Sep 2017 06:12:26 -0700 (PDT)",
        "From": "Fabio Estevam <festevam@gmail.com>",
        "To": "thomas.petazzoni@free-electrons.com",
        "Date": "Sat, 16 Sep 2017 10:12:11 -0300",
        "Message-Id": "<1505567532-11583-1-git-send-email-festevam@gmail.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "Cc": "Fabio Estevam <fabio.estevam@nxp.com>, buildroot@buildroot.org",
        "Subject": "[Buildroot] [PATCH RESEND 1/2] imx: Introduce an SPL genimage\n\ttemplate",
        "X-BeenThere": "buildroot@busybox.net",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Discussion and development of buildroot <buildroot.busybox.net>",
        "List-Unsubscribe": "<http://lists.busybox.net/mailman/options/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=unsubscribe>",
        "List-Archive": "<http://lists.busybox.net/pipermail/buildroot/>",
        "List-Post": "<mailto:buildroot@busybox.net>",
        "List-Help": "<mailto:buildroot-request@busybox.net?subject=help>",
        "List-Subscribe": "<http://lists.busybox.net/mailman/listinfo/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "buildroot-bounces@busybox.net",
        "Sender": "\"buildroot\" <buildroot-bounces@busybox.net>"
    },
    "content": "From: Fabio Estevam <fabio.estevam@nxp.com>\n\nIntroduce a genimage template for booting SPL + u-boot.img U-Boot\nbinaries.\n\nSigned-off-by: Fabio Estevam <fabio.estevam@nxp.com>\n---\n .../freescale/common/imx/genimage.cfg.template_spl | 46 ++++++++++++++++++++++\n board/freescale/common/imx/post-image.sh           | 11 +++++-\n 2 files changed, 56 insertions(+), 1 deletion(-)\n create mode 100644 board/freescale/common/imx/genimage.cfg.template_spl",
    "diff": "diff --git a/board/freescale/common/imx/genimage.cfg.template_spl b/board/freescale/common/imx/genimage.cfg.template_spl\nnew file mode 100644\nindex 0000000..b9e247d\n--- /dev/null\n+++ b/board/freescale/common/imx/genimage.cfg.template_spl\n@@ -0,0 +1,46 @@\n+# Minimal SD card image for the Freescale boards Template for SPL Boot\n+#\n+# We mimic the .sdcard Freescale's image format:\n+# * the SD card must have 1 kB free space at the beginning,\n+# * U-Boot is dumped as is,\n+# * a FAT partition at offset 8MB is containing zImage/uImage and DTB files\n+# * a single root filesystem partition is required (ext2, ext3 or ext4)\n+#\n+\n+image boot.vfat {\n+  vfat {\n+    files = {\n+      %FILES%\n+    }\n+  }\n+  size = 16M\n+}\n+\n+image sdcard.img {\n+  hdimage {\n+  }\n+\n+  partition spl {\n+    in-partition-table = \"no\"\n+    image = \"SPL\"\n+    offset = 1024\n+  }\n+\n+  partition u-boot-img {\n+    in-partition-table = \"no\"\n+    image = \"u-boot.img\"\n+    offset = 69K\n+  }\n+\n+  partition boot {\n+    partition-type = 0xC\n+    bootable = \"true\"\n+    image = \"boot.vfat\"\n+    offset = 8M\n+  }\n+\n+  partition rootfs {\n+    partition-type = 0x83\n+    image = \"rootfs.ext2\"\n+  }\n+}\ndiff --git a/board/freescale/common/imx/post-image.sh b/board/freescale/common/imx/post-image.sh\nindex 9e4da82..b239743 100755\n--- a/board/freescale/common/imx/post-image.sh\n+++ b/board/freescale/common/imx/post-image.sh\n@@ -28,6 +28,15 @@ linux_image()\n \tfi\n }\n \n+genimage_type()\n+{\n+\tif grep -Eq \"^BR2_TARGET_UBOOT_SPL=y$\" ${BR2_CONFIG}; then\n+\t\techo \"genimage.cfg.template_spl\"\n+\telse\n+\t\techo \"genimage.cfg.template\"\n+\tfi\n+}\n+\n main()\n {\n \tlocal FILES=\"$(dtb_list) $(linux_image)\"\n@@ -35,7 +44,7 @@ main()\n \tlocal GENIMAGE_TMP=\"${BUILD_DIR}/genimage.tmp\"\n \n \tsed -e \"s/%FILES%/${FILES}/\" \\\n-\t\tboard/freescale/common/imx/genimage.cfg.template > ${GENIMAGE_CFG}\n+\t\tboard/freescale/common/imx/$(genimage_type) > ${GENIMAGE_CFG}\n \n \trm -rf \"${GENIMAGE_TMP}\"\n \n",
    "prefixes": [
        "RESEND",
        "1/2"
    ]
}