Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2215839/?format=api
{ "id": 2215839, "url": "http://patchwork.ozlabs.org/api/patches/2215839/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260325130811.447377-1-sjg@chromium.org/", "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": "<20260325130811.447377-1-sjg@chromium.org>", "list_archive_url": null, "date": "2026-03-25T13:08:09", "name": "kbuild: Use relative paths in generated .incbin directives", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "e15850f569a95e3f778df6820b1ac17a20e986c0", "submitter": { "id": 6170, "url": "http://patchwork.ozlabs.org/api/people/6170/?format=api", "name": "Simon Glass", "email": "sjg@chromium.org" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260325130811.447377-1-sjg@chromium.org/mbox/", "series": [ { "id": 497437, "url": "http://patchwork.ozlabs.org/api/series/497437/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=497437", "date": "2026-03-25T13:08:09", "name": "kbuild: Use relative paths in generated .incbin directives", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497437/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2215839/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2215839/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 (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256\n header.s=google header.b=ZNhgcu+m;\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=chromium.org", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org\n header.b=\"ZNhgcu+m\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=chromium.org", "phobos.denx.de;\n spf=pass smtp.mailfrom=sjg@chromium.org" ], "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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fgnKL1rxpz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 00:08:38 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 5E7B583AAB;\n\tWed, 25 Mar 2026 14:08:28 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id 9E6F883CD3; Wed, 25 Mar 2026 14:08:27 +0100 (CET)", "from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com\n [IPv6:2607:f8b0:4864:20::32f])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 051FA81E18\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 14:08:24 +0100 (CET)", "by mail-ot1-x32f.google.com with SMTP id\n 46e09a7af769-7d7ebe11bffso4508652a34.0\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 06:08:24 -0700 (PDT)", "from chromium.org ([73.34.74.121]) by smtp.gmail.com with ESMTPSA id\n 46e09a7af769-7d7eadc8a12sm14466116a34.16.2026.03.25.06.08.21\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 25 Mar 2026 06:08:22 -0700 (PDT)" ], "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,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\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;\n d=chromium.org; s=google; t=1774444103; x=1775048903; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=pbOrn84Xkzv5lhQUHdQURoeaywa+UgT6vYgTS83rhUo=;\n b=ZNhgcu+mw7m7y+TGb9aMkx/cF84yr7LlycK+57zrz2In+SYBOf7I4rQtmCbG+oJi9x\n T62unZFaPEhXsp7eGxP00I5V1Bybw5yNfGKes7ivjS/yT8V2rAQBFU/94tr5kGt/9wyh\n uHHamrYqt1Uxd3Kq1LogmPu1ohVmESbfSeuT8=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774444103; x=1775048903;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id: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:6830:6ae5:b0:7d9:b58e:55f2 with SMTP id\n 46e09a7af769-7d9d6966d65mr1929451a34.24.1774444103040;\n Wed, 25 Mar 2026 06:08:23 -0700 (PDT)", "From": "Simon Glass <sjg@chromium.org>", "To": "u-boot@lists.denx.de", "Cc": "Simon Glass <sjg@chromium.org>, Adriano Cordova <adrianox@gmail.com>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Peter Robinson <pbrobinson@gmail.com>, Sam Edwards <cfsworks@gmail.com>,\n Sughosh Ganu <sughosh.ganu@arm.com>, Tom Rini <trini@konsulko.com>", "Subject": "[PATCH] kbuild: Use relative paths in generated .incbin directives", "Date": "Wed, 25 Mar 2026 07:08:09 -0600", "Message-ID": "<20260325130811.447377-1-sjg@chromium.org>", "X-Mailer": "git-send-email 2.43.0", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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": "The generated .S files for fonts, splash screens and EFI apps use\n.incbin with the full prerequisite path. When building with O= this\nbakes an absolute path into the .S file. If the build directory is\nlater used on a different machine (e.g. in a container), the assembler\ncannot find the source file.\n\nUse $(src)/$(notdir $<) instead of $< so the .incbin directive contains\na source-relative path like drivers/video/fonts/nimbus_sans_l_regular.ttf\nrather than an absolute one. Add -Wa,-I$(srctree) to the assembler\nflags so the assembler can resolve these paths.\n\nThe DTB and DTBO rules are left unchanged since their prerequisites are\ngenerated files in the build directory.\n\nSigned-off-by: Simon Glass <sjg@chromium.org>\n---\n\n scripts/Makefile.lib | 7 ++++---\n 1 file changed, 4 insertions(+), 3 deletions(-)", "diff": "diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib\nindex 7386353e0cc..e44120ea0c0 100644\n--- a/scripts/Makefile.lib\n+++ b/scripts/Makefile.lib\n@@ -219,6 +219,7 @@ c_flags = -Wp,-MMD,$(depfile) $(NOSTDINC_FLAGS) $(UBOOTINCLUDE) \\\n \t\t $(basename_flags) $(modname_flags)\n \n a_flags = -Wp,-MMD,$(depfile) $(NOSTDINC_FLAGS) $(UBOOTINCLUDE) \\\n+\t\t -Wa,-I$(srctree) \\\n \t\t $(_a_flags) $(modkern_aflags)\n \n cpp_flags = -Wp,-MMD,$(depfile) $(NOSTDINC_FLAGS) $(UBOOTINCLUDE) \\\n@@ -520,7 +521,7 @@ cmd_S_ttf=\t\t\t\t\t\t\\\n \techo '.balign 16';\t\t\t\t\\\n \techo '.global __ttf_$(*F)_begin';\t\t\\\n \techo '__ttf_$(*F)_begin:';\t\t\t\\\n-\techo '.incbin \"$<\" ';\t\t\t\t\\\n+\techo '.incbin \"$(src)/$(notdir $<)\" ';\t\t\t\t\\\n \techo '__ttf_$(*F)_end:';\t\t\t\\\n \techo '.global __ttf_$(*F)_end';\t\t\t\\\n \techo '.balign 16';\t\t\t\t\\\n@@ -541,7 +542,7 @@ cmd_S_splash=\t\t\t\t\t\t\\\n \techo '.balign 16';\t\t\t\t\\\n \techo '.global __splash_$(*F)_begin';\t\t\\\n \techo '__splash_$(*F)_begin:';\t\t\t\\\n-\techo '.incbin \"$<\" ';\t\t\t\t\\\n+\techo '.incbin \"$(src)/$(notdir $<)\" ';\t\t\t\t\\\n \techo '__splash_$(*F)_end:';\t\t\t\\\n \techo '.global __splash_$(*F)_end';\t\t\t\\\n \techo '.balign 16';\t\t\t\t\\\n@@ -562,7 +563,7 @@ cmd_S_efi=\t\t\t\t\t\\\n \techo '.balign 16';\t\t\t\\\n \techo '.global __efi_$*_begin';\t\t\\\n \techo '__efi_$*_begin:';\t\t\t\\\n-\techo '.incbin \"$<\" ';\t\t\t\\\n+\techo '.incbin \"$(src)/$(notdir $<)\" ';\t\t\t\\\n \techo '__efi_$*_end:';\t\t\t\\\n \techo '.global __efi_$*_end';\t\t\\\n \techo '.balign 16';\t\t\t\\\n", "prefixes": [] }