get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2227914,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2227914/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20260424132326.825570-3-jeanmichel.hautbois@yoseli.org/",
    "project": {
        "id": 27,
        "url": "http://patchwork.ozlabs.org/api/1.1/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": ""
    },
    "msgid": "<20260424132326.825570-3-jeanmichel.hautbois@yoseli.org>",
    "date": "2026-04-24T13:23:17",
    "name": "[02/11] package/gcc: force --with-arch=cf on m68k MCF5441x",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c89ee6a84a30c546fd2f8c6e082129ad0c64c925",
    "submitter": {
        "id": 86730,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/86730/?format=api",
        "name": "Jean-Michel Hautbois",
        "email": "jeanmichel.hautbois@yoseli.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20260424132326.825570-3-jeanmichel.hautbois@yoseli.org/mbox/",
    "series": [
        {
            "id": 501366,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501366/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=501366",
            "date": "2026-04-24T13:23:15",
            "name": "Add ColdFire MCF5441x (m68k) support",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501366/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2227914/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227914/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<buildroot-bounces@buildroot.org>",
        "X-Original-To": [
            "incoming-buildroot@patchwork.ozlabs.org",
            "buildroot@buildroot.org"
        ],
        "Delivered-To": [
            "patchwork-incoming-buildroot@legolas.ozlabs.org",
            "buildroot@buildroot.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=buildroot.org header.i=@buildroot.org\n header.a=rsa-sha256 header.s=default header.b=ZW4WAi0y;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g2DWM3t2nz1yD5\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Fri, 24 Apr 2026 23:36:15 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id 7F3DB427FA;\n\tFri, 24 Apr 2026 13:36:12 +0000 (UTC)",
            "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id CmvYpYDRGHv4; Fri, 24 Apr 2026 13:36:11 +0000 (UTC)",
            "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id 9BEBD427FE;\n\tFri, 24 Apr 2026 13:36:11 +0000 (UTC)",
            "from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137])\n by lists1.osuosl.org (Postfix) with ESMTP id D5DC724D\n for <buildroot@buildroot.org>; Fri, 24 Apr 2026 13:36:05 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp4.osuosl.org (Postfix) with ESMTP id CE2CC427EC\n for <buildroot@buildroot.org>; Fri, 24 Apr 2026 13:36:04 +0000 (UTC)",
            "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id EZxhyiz8DklG for <buildroot@buildroot.org>;\n Fri, 24 Apr 2026 13:36:04 +0000 (UTC)",
            "from mslow3.mail.gandi.net (mslow3.mail.gandi.net [217.70.178.249])\n by smtp4.osuosl.org (Postfix) with ESMTPS id 9C037427F6\n for <buildroot@buildroot.org>; Fri, 24 Apr 2026 13:36:03 +0000 (UTC)",
            "from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net\n [217.70.183.200])\n by mslow3.mail.gandi.net (Postfix) with ESMTP id F158F5834F0\n for <buildroot@buildroot.org>; Fri, 24 Apr 2026 13:23:38 +0000 (UTC)",
            "by mail.gandi.net (Postfix) with ESMTPSA id 628363EC29;\n Fri, 24 Apr 2026 13:23:32 +0000 (UTC)"
        ],
        "X-Virus-Scanned": [
            "amavis at osuosl.org",
            "amavis at osuosl.org"
        ],
        "X-Comment": "SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org;\n receiver=<UNKNOWN> ",
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 smtp4.osuosl.org 9BEBD427FE",
            "OpenDKIM Filter v2.11.0 smtp4.osuosl.org 9C037427F6"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1777037771;\n\tbh=sewubHCZc/QpC0LPdTkBHUFr3kgvlXGUtiUmYd7LBck=;\n\th=From:To:Date:In-Reply-To:References:Subject:List-Id:\n\t List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:\n\t Cc:From;\n\tb=ZW4WAi0y7Dbnc6ARX1wTe/fFjqIU01lQnjC2x2QWIsBlPXb2qSY+MnNMQyIdjrKbq\n\t oU3UW2iRywRkH1Z8hqF2qyktTkPvoLFLcqOTx8ml7yZYmzex64fgM7NsXpxWSH1nyP\n\t 6X3rUzxBY/9+QmCU4DKa4O3HEKArwGdet73YFbQq3bo5gQd8qL9OWLhbHDjoPzHyns\n\t IZ/h2tV9kOj9YqLEFNGEgjyYFHig/qT1zQ0mJmACywayajSjGgQRqQrCf8y2NV1gyF\n\t lpdJe+hvmt6HukJQP7ivE1XQV5BmWYU8Zdvl9reT/cO2kQnADNJg/IHDnr6mseDEwq\n\t uB7b0/7xkudPA==",
        "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=217.70.178.249;\n helo=mslow3.mail.gandi.net; envelope-from=jeanmichel.hautbois@yoseli.org;\n receiver=<UNKNOWN>",
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp4.osuosl.org 9C037427F6",
        "From": "Jean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>",
        "To": "buildroot@buildroot.org",
        "Date": "Fri, 24 Apr 2026 15:23:17 +0200",
        "Message-Id": "<20260424132326.825570-3-jeanmichel.hautbois@yoseli.org>",
        "X-Mailer": "git-send-email 2.39.5",
        "In-Reply-To": "<20260424132326.825570-1-jeanmichel.hautbois@yoseli.org>",
        "References": "<20260424132326.825570-1-jeanmichel.hautbois@yoseli.org>",
        "MIME-Version": "1.0",
        "X-GND-Sasl": "jeanmichel.hautbois@yoseli.org",
        "X-GND-Score": "-100",
        "X-GND-Cause": "\n dmFkZTGTJ1hdEHfyIcX5k2JHGvQQzHgXocBueP6kzQ3PiO/QZPC2ZIbWos5Z/nBj+MNBUL6MxmPYi+CleSCkc3eF0q+zojS7XiQ0tRWeJ9sJTycu0tvaFaDe/0E7skwEzhHvE12DvsnHGm7ZBShzcHG0JImqeNvniTYvCpYkyWcJzBGbf684OOqsjoB9SoSWN/MejtPXP8EYC0FMHQCqaqK4lSjVECJMLrfhjizD9JSRHw6maluNA2H+8z2LH6STAgl2WvQ/7bYBIAqI1+5oIjDXgeJOanWJCHO9dj1fax29HojsaAabzQXmHeE8gAa/fBYFngk6l8UKsW92hkjl3zEw2kXXTjZzRq467KXaUoRW1krZBVrquMfRrJdAPkLF+86ygCL4FgOf1rkKPlxCJ5b7/+FmKGoREXdVbcaJny2HdyjyHhalU8pxPfk+H7XThmYLHHnFRgTkaz25oshj0G0Wht2L1cTMlP/6nKvWpRAoMHJP5rJMGDhAGk1gwE7KZrykufKT1OagqNXxiKOIntKcOq4yPdifm5xIb6D3spOAspFdh/jqKBEQ9gu9HCvUHbn1feYIJLZUyTz6xgW1lLDccK4R0Ec4JIpyVOW4lDUYnLy4NevjFVJAyTjwkgKLkS4Z98UjZhf9SAzf7uzPB1hrJd0kGo8lVnRsdZMU6249Lj843w",
        "X-GND-State": "clean",
        "X-Mailman-Original-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=yoseli.org; s=gm1; t=1777037013;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=/XSw5oD7kPANsNgZdDQ5DyhHBb1F2pJvf2NxroHi+Tw=;\n b=GRtmbGJmZTDDP+V64MYr5sK1mgQ4wHMIiOATcs9lth1iA8k/4/RpoGhD26tKPSVNPjQPch\n MEarEg8ZVJuqgFNRcAFl5Wpv3oqJv/1/l3fUNauLSEpqosj1LG3XybE4QbVnmkW08QhOMa\n Fz0TNdX3CrbhSVeKcHsxK+RVLIATmyg5sPh8w9o+2PU6FAYB9LqU0Ry2sPWHEjyVsxszn1\n /oUR3xALLvZuIOKR9FArUhC9Z36l6lNgMhVFVCGGEummGRKoOdVaaSpwfZziTR796zK5cb\n XLz9/Tu8Y8IzaplaQay4Mh02qXs+kM6cekHI17Ar/8s33GXyCtVapl3ro/ytjQ==",
        "X-Mailman-Original-Authentication-Results": [
            "smtp4.osuosl.org;\n dmarc=none (p=none dis=none)\n header.from=yoseli.org",
            "smtp4.osuosl.org;\n dkim=pass (2048-bit key,\n unprotected) header.d=yoseli.org header.i=@yoseli.org header.a=rsa-sha256\n header.s=gm1 header.b=GRtmbGJm"
        ],
        "Subject": "[Buildroot] [PATCH 02/11] package/gcc: force --with-arch=cf on m68k\n MCF5441x",
        "X-BeenThere": "buildroot@buildroot.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Discussion and development of buildroot <buildroot.buildroot.org>",
        "List-Unsubscribe": "<https://lists.buildroot.org/mailman/options/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.buildroot.org/pipermail/buildroot/>",
        "List-Post": "<mailto:buildroot@buildroot.org>",
        "List-Help": "<mailto:buildroot-request@buildroot.org?subject=help>",
        "List-Subscribe": "<https://lists.buildroot.org/mailman/listinfo/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=subscribe>",
        "Cc": "Bernd Kuhls <bernd@kuhls.net>,\n Jean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>,\n Fabrice Fontaine <fontaine.fabrice@gmail.com>,\n Thomas Petazzoni <thomas.petazzoni@bootlin.com>,\n Giulio Benetti <giulio.benetti@benettiengineering.com>,\n Ismael Luceno <ismael@iodev.co.uk>, Romain Naour <romain.naour@gmail.com>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "buildroot-bounces@buildroot.org",
        "Sender": "\"buildroot\" <buildroot-bounces@buildroot.org>"
    },
    "content": "On m68k ColdFire V4e (MCF5441x) with BR2_USE_MMU selected, the\nhost-gcc build fails during the multilib pass because the compiler\ncannot disambiguate between m68k and cf variants. It needs to be\nconfigured explicitly with --with-arch=cf.\n\nThe natural place to wire this would be BR2_GCC_TARGET_ARCH=\"cf\" in\narch/Config.in.m68k (as was attempted in an earlier v1 submission\n[1], see the v1 review at [2]). That mechanism is however also\nconsumed by the external toolchain infrastructure: when\nBR2_GCC_TARGET_ARCH is non-empty,\ntoolchain/toolchain-external/pkg-toolchain-external.mk unconditionally\nadds -march=$(GCC_TARGET_ARCH) to TOOLCHAIN_EXTERNAL_CFLAGS and bakes\nit into the toolchain wrapper as the default BR_ARCH.\n\nThis is fine as long as the value is a valid -march= argument, but\ngcc m68k only accepts 68000/68010/68020/68030/68040/68060/cpu32/isaa\n/isaaplus/isab/isac on the command line; \"cf\" is a valid --with-arch\nvalue for configure, but not a valid -march. The result is that an\nexternal toolchain user selecting BR2_m68k_cf5441x gets the wrapper\ninjecting -march=cf on every compile, which immediately fails with\n\"unrecognized argument in option '-march=cf'\". This was confirmed by\nconsuming a Buildroot-generated cf5441x toolchain as external.\n\nInstead, add the --with-arch=cf configure argument via Buildroot's\ngcc packaging Makefile (package/gcc/gcc.mk), gated on\nBR2_m68k_cf5441x. Only the internal host-gcc configure step picks\nit up; BR2_GCC_TARGET_ARCH remains unset, so the external toolchain\ninfrastructure is untouched and external toolchain users are not\naffected by this patch.\n\n[1] https://lore.kernel.org/buildroot/20230629053130.3976-1-jeanmichel.hautbois@yoseli.org/\n[2] https://lore.kernel.org/buildroot/20230704052449.GM2510@scaer/\n\nSigned-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>\n---\n package/gcc/gcc.mk | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk\nindex ea96286c32..270a0638d9 100644\n--- a/package/gcc/gcc.mk\n+++ b/package/gcc/gcc.mk\n@@ -220,6 +220,10 @@ endif\n ifneq ($(GCC_TARGET_ARCH),)\n HOST_GCC_COMMON_CONF_OPTS += --with-arch=\"$(GCC_TARGET_ARCH)\"\n endif\n+\n+ifeq ($(BR2_m68k_cf5441x),y)\n+HOST_GCC_COMMON_CONF_OPTS += --with-arch=cf\n+endif\n ifneq ($(GCC_TARGET_ABI),)\n HOST_GCC_COMMON_CONF_OPTS += --with-abi=\"$(GCC_TARGET_ABI)\"\n endif\n",
    "prefixes": [
        "02/11"
    ]
}