get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2219748,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2219748/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260404-qcom_spl-v1-1-9e6c2ac66587@seznam.cz/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/1.1/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
    },
    "msgid": "<20260404-qcom_spl-v1-1-9e6c2ac66587@seznam.cz>",
    "date": "2026-04-03T23:18:16",
    "name": "[1/5] Makefile: add SPL_REMAKE_ELF_LDSCRIPT feature",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a933591aa01226ce2daa0563cc7fe98f1f70663f",
    "submitter": {
        "id": 77645,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/77645/?format=api",
        "name": "Michael Srba",
        "email": "michael.srba@seznam.cz"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260404-qcom_spl-v1-1-9e6c2ac66587@seznam.cz/mbox/",
    "series": [
        {
            "id": 498699,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/498699/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=498699",
            "date": "2026-04-03T23:18:18",
            "name": "Add SPL support for Qualcomm platforms, starting with sdm845",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498699/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2219748/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2219748/checks/",
    "tags": {},
    "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=sKW/Nq7e;\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=\"sKW/Nq7e\";\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 4fnm2w3kbrz1yCs\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 04 Apr 2026 17:31:52 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 3AB3B84154;\n\tSat,  4 Apr 2026 08:31:21 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 10F878407E; Sat,  4 Apr 2026 01:19:38 +0200 (CEST)",
            "from mxd-3-715.seznam.cz (mxd-3-715.seznam.cz\n [IPv6:2a02:598:96:8a00::1200:715])\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 DEA2984106\n for <u-boot@lists.denx.de>; Sat,  4 Apr 2026 01:19:35 +0200 (CEST)",
            "from email.seznam.cz by smtpc-mxd-7644845457-lgzgl\n (smtpc-mxd-7644845457-lgzgl [2a02:598:96:8a00::1200:715])\n id 4f5cc2c2145296ab4ef50e9c; Sat, 04 Apr 2026 01:18:49 +0200 (CEST)",
            "from [127.0.0.1] (ip-111-27.static.ccinternet.cz [147.161.27.111])\n by smtpd-relay-789d8dfb5c-z7n27 (szn-email-smtpd/2.0.71) with ESMTPA\n id b73469ef-8094-408d-8a67-5cd8883c475c;\n Sat, 04 Apr 2026 01:18:29 +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=1775258329; bh=p1cSHdBsnlMgeKcwxyPOFzchwk4SqNmAI+8sHa9bFEo=;\n h=From:Date:Subject:MIME-Version:Content-Type:\n Content-Transfer-Encoding:Message-Id:To:Cc;\n b=sKW/Nq7eeRzFHJTGsWU0XG+FJvQPw2f8LsYdGTzq/5I7R8cdeQfPjJfav+rvopEn7\n iBRPWfrPAY9NdXhZf5J0RQMab905RFTcWtJDpIEHzK/SCs3OTYN8P80OXUbEQEjUiD\n LF+2O7QGTe53RTuG1HA/EvZNZWtMJT1KpkrpPszJFGRkUHYCw3SLy33++voOu0KOh8\n RHXgYhrqwD+O8XcJBxoHLsuJJZLX5cww/I8Jjqzq+sIKTINuXiOUTFc3QOul02Tux3\n 3KBdix1595oaIJFKF2POwXXE8G3VH2qfPsdg6/JzqTzD/fs5Gh3H2OzSq8FXDkCTzq\n snQ2RWv2lIVWw==",
        "From": "michael.srba@seznam.cz",
        "Date": "Sat, 04 Apr 2026 01:18:16 +0200",
        "Subject": "[PATCH 1/5] Makefile: add SPL_REMAKE_ELF_LDSCRIPT feature",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260404-qcom_spl-v1-1-9e6c2ac66587@seznam.cz>",
        "References": "<20260404-qcom_spl-v1-0-9e6c2ac66587@seznam.cz>",
        "In-Reply-To": "<20260404-qcom_spl-v1-0-9e6c2ac66587@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 Michael Srba <Michael.Srba@seznam.cz>",
        "X-Mailer": "b4 0.15.1",
        "X-Mailman-Approved-At": "Sat, 04 Apr 2026 08:31:19 +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\nOn some platforms (at least Qualcomm), the bootrom expects an ELF file.\nSince the contents of the ELF file are platform specific, add a config\noption that allows specifying a linker script to use to produce the\nELF file.\n\nSigned-off-by: Michael Srba <Michael.Srba@seznam.cz>\n---\n Makefile           | 23 +++++++++++++++++++++++\n common/spl/Kconfig |  6 ++++++\n 2 files changed, 29 insertions(+)",
    "diff": "diff --git a/Makefile b/Makefile\nindex f232d8b4ea2..85cd6137bca 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -1231,6 +1231,9 @@ ifneq ($(CONFIG_SPL_TARGET),)\n INPUTS-$(CONFIG_SPL) += $(CONFIG_SPL_TARGET:\"%\"=%)\n endif\n INPUTS-$(CONFIG_REMAKE_ELF) += u-boot.elf\n+ifneq ($(CONFIG_SPL_REMAKE_ELF_LDSCRIPT),)\n+INPUTS-y += spl/u-boot-spl.elf\n+endif\n INPUTS-$(CONFIG_EFI_APP) += u-boot-app.efi\n INPUTS-$(CONFIG_EFI_STUB) += u-boot-payload.efi\n \n@@ -2005,6 +2008,26 @@ 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+ifeq ($(CONFIG_SPL),y)\n+ifneq ($(CONFIG_SPL_REMAKE_ELF_LDSCRIPT),)\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+quiet_cmd_u-boot-spl-elf ?= LD      $@\n+\tcmd_u-boot-spl-elf ?= $(LD) spl/u-boot-spl-elf.o -o $@ \\\n+\t-T spl/u-boot-spl-elf.lds --defsym=$(CONFIG_PLATFORM_ELFENTRY)=$(CONFIG_SPL_TEXT_BASE) \\\n+\t-Ttext=$(CONFIG_SPL_TEXT_BASE) -z max-page-size=0x1000\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+endif\n+endif\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 2998b7acb75..9eeb56cb68b 100644\n--- a/common/spl/Kconfig\n+++ b/common/spl/Kconfig\n@@ -247,6 +247,12 @@ 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 to run with u-boot-spl.bin as input\"\n+\thelp\n+\t  This allows specifying a linker script that will act on u-boot-spl.bin\n+\t  (see also REMAKE_ELF)\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": [
        "1/5"
    ]
}