get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2225915,
    "url": "http://patchwork.ozlabs.org/api/patches/2225915/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260421-qcom_spl-v3-1-efee3f76754d@seznam.cz/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260421-qcom_spl-v3-1-efee3f76754d@seznam.cz>",
    "list_archive_url": null,
    "date": "2026-04-21T19:43:44",
    "name": "[v3,01/11] Makefile: add SPL_REMAKE_ELF_LDSCRIPT feature",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "f778e616e77756831a27ae0cf7711cc0fd93504d",
    "submitter": {
        "id": 77645,
        "url": "http://patchwork.ozlabs.org/api/people/77645/?format=api",
        "name": "Michael Srba",
        "email": "michael.srba@seznam.cz"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260421-qcom_spl-v3-1-efee3f76754d@seznam.cz/mbox/",
    "series": [
        {
            "id": 500886,
            "url": "http://patchwork.ozlabs.org/api/series/500886/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=500886",
            "date": "2026-04-21T19:43:46",
            "name": "Add SPL support for Qualcomm platforms, starting with sdm845",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/500886/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2225915/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2225915/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=seznam.cz header.i=@seznam.cz header.a=rsa-sha256\n header.s=szn1 header.b=tVTAwAEs;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=seznam.cz",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n secure) header.d=seznam.cz header.i=@seznam.cz header.b=\"tVTAwAEs\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=seznam.cz",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=michael.srba@seznam.cz"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0YM60rChz1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 06:08:18 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 4BD3C842E7;\n\tTue, 21 Apr 2026 22:07:24 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id BF62084198; Tue, 21 Apr 2026 21:45:07 +0200 (CEST)",
            "from mxd-2-a04.seznam.cz (mxd-2-a04.seznam.cz\n [IPv6:2a02:598:64:8a00::1000:a04])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 317D5841C8\n for <u-boot@lists.denx.de>; Tue, 21 Apr 2026 21:45:01 +0200 (CEST)",
            "from email.seznam.cz by smtpc-mxd-fd5c5cd95-m9brr\n (smtpc-mxd-fd5c5cd95-m9brr [2a02:598:64:8a00::1000:a04])\n id 38f816a863f642c13951daf6; Tue, 21 Apr 2026 21:44:22 +0200 (CEST)",
            "from [127.0.0.1] (ip-111-27.static.ccinternet.cz [147.161.27.111])\n by smtpd-relay-7c7c659656-cskk5 (szn-email-smtpd/2.0.72) with ESMTPA\n id 642b4ce6-ab12-4862-9d6e-180770bb728f;\n Tue, 21 Apr 2026 21:44:04 +0200"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=seznam.cz; s=szn1;\n t=1776800662; bh=Ynt6BdDNIEz91zl0+nSq0hH+dJSm+rcDcmW+BRNBOwU=;\n h=From:Date:Subject:MIME-Version:Content-Type:\n Content-Transfer-Encoding:Message-Id:To:Cc;\n b=tVTAwAEscUe0NySpctjVrlNVtp7U2R+yA0yHAxdTM+m8C9jTmHnOyt+XrV5Qrsjj0\n YYd6+3R0iVhL33KF/58G5R6aMtxE+iPmyIkO0+w5WtEsk08DgAtVDVCb2LpRw8ar2f\n +U0fdLGa3McEAnLQz8cUqpj/FVi8nGb+hbOiuB7y2c3TQZfo5uc84nt2/E5lzyh9nR\n tr98FMn+vvtdmb/36EERy5IkT6UwpJp2Io8drIzUn1UaUlcVmFBcjWxwsjKZSFPZWx\n 1EivrNzIl2eGj429KB4QduzJyDsXI899r9OgK19vyFZyGe9LeJ3kiw6iuvu1bZEQv4\n gQ69xq+gNrWpg==",
        "From": "michael.srba@seznam.cz",
        "Date": "Tue, 21 Apr 2026 21:43:44 +0200",
        "Subject": "[PATCH v3 01/11] Makefile: add SPL_REMAKE_ELF_LDSCRIPT feature",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260421-qcom_spl-v3-1-efee3f76754d@seznam.cz>",
        "References": "<20260421-qcom_spl-v3-0-efee3f76754d@seznam.cz>",
        "In-Reply-To": "<20260421-qcom_spl-v3-0-efee3f76754d@seznam.cz>",
        "To": "u-boot@lists.denx.de, Sumit Garg <sumit.garg@kernel.org>,\n u-boot-qcom@groups.io",
        "Cc": "Tom Rini <trini@konsulko.com>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Simon Glass <sjg@chromium.org>, Sughosh Ganu <sughosh.ganu@arm.com>,\n Anshul Dalal <anshuld@ti.com>, Peng Fan <peng.fan@nxp.com>,\n Mattijs Korpershoek <mkorpershoek@kernel.org>,\n Quentin Schulz <quentin.schulz@cherry.de>,\n Heinrich Schuchardt <xypron.glpk@gmx.de>, Andrew Davis <afd@ti.com>,\n Hrushikesh Salunke <h-salunke@ti.com>,\n Dario Binacchi <dario.binacchi@amarulasolutions.com>, Ye Li <ye.li@nxp.com>,\n Andre Przywara <andre.przywara@arm.com>,\n Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>,\n Leo Yu-Chi Liang <ycliang@andestech.com>,\n Andrew Goodbody <andrew.goodbody@linaro.org>, Dhruva Gole <d-gole@ti.com>,\n Kaustabh Chakraborty <kauschluss@disroot.org>,\n Jerome Forissier <jerome.forissier@arm.com>,\n Heiko Schocher <hs@nabladev.com>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Lukasz Majewski <lukma@denx.de>,\n Mateusz Kulikowski <mateusz.kulikowski@gmail.com>,\n Dinesh Maniyam <dinesh.maniyam@altera.com>,\n Neil Armstrong <neil.armstrong@linaro.org>,\n Patrice Chotard <patrice.chotard@foss.st.com>,\n Patrick Delaunay <patrick.delaunay@foss.st.com>,\n Michal Simek <michal.simek@amd.com>, Yao Zi <me@ziyao.cc>,\n Peter Korsgaard <peter@korsgaard.com>,\n Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>,\n Casey Connolly <casey.connolly@linaro.org>,\n Tingting Meng <tingting.meng@altera.com>,\n Tien Fong Chee <tien.fong.chee@altera.com>, Alice Guo <alice.guo@nxp.com>,\n George Chan <gchan9527@gmail.com>,\n Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>,\n Alexey Charkov <alchark@gmail.com>, Ronald Wahl <ronald.wahl@legrand.com>,\n Michael Trimarchi <michael@amarulasolutions.com>,\n Michael Srba <Michael.Srba@seznam.cz>",
        "X-Mailer": "b4 0.15.1",
        "X-Mailman-Approved-At": "Tue, 21 Apr 2026 22:07:20 +0200",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.39",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>",
        "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "From: Michael Srba <Michael.Srba@seznam.cz>\n\nSome platforms (e.g. least Qualcomm), use the ELF format in creative\nways, including in the bootrom. Make SPL_REMAKE_ELF use a linker script\nspecified in SPL_REMAKE_ELF_LDSCRIPT (with the previously hardcoded path\nas the default).\n\nSigned-off-by: Michael Srba <Michael.Srba@seznam.cz>\n---\n Makefile           | 10 ++++++++--\n common/spl/Kconfig | 10 ++++++++++\n 2 files changed, 18 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/Makefile b/Makefile\nindex 8af18668b0f..50893d5689e 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -2004,16 +2004,22 @@ u-boot.elf: u-boot.bin u-boot-elf.lds FORCE\n quiet_cmd_u-boot-spl-elf ?= LD      $@\n \tcmd_u-boot-spl-elf ?= $(LD) spl/u-boot-spl-elf.o -o $@ \\\n \t$(if $(CONFIG_SYS_BIG_ENDIAN),-EB,-EL) \\\n-\t-T u-boot-elf.lds --defsym=$(CONFIG_PLATFORM_ELFENTRY)=$(CONFIG_SPL_TEXT_BASE) \\\n+\t-T spl/u-boot-spl-elf.lds --defsym=$(CONFIG_PLATFORM_ELFENTRY)=$(CONFIG_SPL_TEXT_BASE) \\\n \t-Ttext=$(CONFIG_SPL_TEXT_BASE)\n-spl/u-boot-spl.elf: spl/u-boot-spl.bin u-boot-elf.lds\n+spl/u-boot-spl.elf: spl/u-boot-spl.bin spl/u-boot-spl-elf.lds\n \t$(Q)$(OBJCOPY) -I binary $(PLATFORM_ELFFLAGS) $< spl/u-boot-spl-elf.o\n \t$(call if_changed,u-boot-spl-elf)\n \n+SPL_REMAKE_ELF_LDSCRIPT := $(addprefix $(srctree)/,$(CONFIG_SPL_REMAKE_ELF_LDSCRIPT:\"%\"=%))\n+\n+spl/u-boot-spl-elf.lds: $(SPL_REMAKE_ELF_LDSCRIPT) FORCE\n+\t$(call if_changed_dep,cpp_lds)\n+\n u-boot-elf.lds: arch/u-boot-elf.lds prepare FORCE\n \t$(call if_changed_dep,cpp_lds)\n \n PHONY += prepare0\n+\n # MediaTek's ARM-based u-boot needs a header to contains its load address\n # which is parsed by the BootROM.\n # If the SPL build is enabled, the header will be added to the spl binary,\ndiff --git a/common/spl/Kconfig b/common/spl/Kconfig\nindex d1a85f50209..1d279a2bb05 100644\n--- a/common/spl/Kconfig\n+++ b/common/spl/Kconfig\n@@ -247,6 +247,16 @@ config SPL_HANDOFF\n \t  proper. Also SPL can receive information from TPL in the same place\n \t  if that is enabled.\n \n+config SPL_REMAKE_ELF_LDSCRIPT\n+\tstring \"Linker script for SPL ELF\"\n+\tdepends on SPL_REMAKE_ELF\n+\tdefault \"arch/$(ARCH)/u-boot-spl-elf.lds\"\n+\thelp\n+\t  This allows specifying a linker script that will act on u-boot-spl.bin.\n+\t  Some platforms (e.g Qualcomm) use the ELF format in creative ways,\n+\t  including in the bootrom. For such platforms, you can change the default\n+\t  linker script to a platform-specific one.\n+\n config SPL_LDSCRIPT\n \tstring \"Linker script for the SPL stage\"\n \tdefault \"arch/arm/cpu/arm926ejs/sunxi/u-boot-spl.lds\" if MACH_SUNIV\n",
    "prefixes": [
        "v3",
        "01/11"
    ]
}