[{"id":3669206,"web_url":"http://patchwork.ozlabs.org/comment/3669206/","msgid":"<20260325165420.GT502704@bill-the-cat>","list_archive_url":null,"date":"2026-03-25T16:54:20","subject":"Re: [PATCH] kbuild: Use relative paths in generated .incbin\n directives","submitter":{"id":65875,"url":"http://patchwork.ozlabs.org/api/people/65875/","name":"Tom Rini","email":"trini@konsulko.com"},"content":"On Wed, Mar 25, 2026 at 07:08:09AM -0600, Simon Glass wrote:\n> The generated .S files for fonts, splash screens and EFI apps use\n> .incbin with the full prerequisite path. When building with O= this\n> bakes an absolute path into the .S file. If the build directory is\n> later used on a different machine (e.g. in a container), the assembler\n> cannot find the source file.\n> \n> Use $(src)/$(notdir $<) instead of $< so the .incbin directive contains\n> a source-relative path like drivers/video/fonts/nimbus_sans_l_regular.ttf\n> rather than an absolute one. Add -Wa,-I$(srctree) to the assembler\n> flags so the assembler can resolve these paths.\n> \n> The DTB and DTBO rules are left unchanged since their prerequisites are\n> generated files in the build directory.\n> \n> Signed-off-by: Simon Glass <sjg@chromium.org>\n> ---\n> \n>  scripts/Makefile.lib | 7 ++++---\n>  1 file changed, 4 insertions(+), 3 deletions(-)\n\nThis is generic kbuild infrastructure now. Is there a fix we're missing\nfrom upstream, a change we haven't pulled in yet (as we need to keep\nsyncing upwards) or a problem upstream too? Thanks!","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=konsulko.com header.i=@konsulko.com header.a=rsa-sha256\n header.s=google header.b=MxbVqRE4;\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=konsulko.com","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=konsulko.com header.i=@konsulko.com\n header.b=\"MxbVqRE4\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=konsulko.com","phobos.denx.de;\n spf=pass smtp.mailfrom=trini@konsulko.com"],"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 4fgtL331jdz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 03:54:35 +1100 (AEDT)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 87830838BB;\n\tWed, 25 Mar 2026 17:54:27 +0100 (CET)","by phobos.denx.de (Postfix, from userid 109)\n id 071FE83A91; Wed, 25 Mar 2026 17:54:27 +0100 (CET)","from mail-oa1-x33.google.com (mail-oa1-x33.google.com\n [IPv6:2001:4860:4864:20::33])\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 DA71881E18\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 17:54:24 +0100 (CET)","by mail-oa1-x33.google.com with SMTP id\n 586e51a60fabf-4094b31a037so59637fac.1\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 09:54:24 -0700 (PDT)","from bill-the-cat (fixed-189-203-97-235.totalplay.net.\n [189.203.97.235]) by smtp.gmail.com with ESMTPSA id\n 586e51a60fabf-41cc7b6312csm56309fac.15.2026.03.25.09.54.22\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 25 Mar 2026 09:54: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,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=konsulko.com; s=google; t=1774457663; x=1775062463; darn=lists.denx.de;\n h=in-reply-to:content-disposition:mime-version:references:message-id\n :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to;\n bh=Lger8soUN0DkzqUK3ISYHnmhj1vt3o4EaG5spU1kipA=;\n b=MxbVqRE45mDGIQddVrksZnqevCyzgf5CWyxGzhNjs/I4lSdxlJaZn87dEr9ye06dBW\n 8SeU1UhihCAA4F21foJvWGxQfFBSmu1WY4EAhhjmzWDpEbk8lOPwJ7PQhKRpkjkLblqH\n MLSQ1lb1O9ztjG8meTDv01/gUiUTBfnU7PTbg=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774457663; x=1775062463;\n h=in-reply-to:content-disposition:mime-version:references:message-id\n :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=Lger8soUN0DkzqUK3ISYHnmhj1vt3o4EaG5spU1kipA=;\n b=KyUHubnNjPXHbqQ9Sx9Q87paEfDwiSiMAMzpNDtRkcIcl75S6pFiGMsGgxE8vUneh9\n IXs3Tg/f/Y5zclevN9JuO7rybWRFw1meo2rDUaO54Ss3zwk5djkmuva5rfDhLGmHSlXQ\n VkM/k85H3uY3aEo0g54B1MoKeGvPWToSKY87g3mVGHoRAU5aKghsFHPeuH98z5dAfDZr\n luqw4CR81yN6PpNpAHId1DV4lWoeK7OhQbmyuPg8bjsYogOxn5b+f1WO63STW/8sOmRq\n O1EiilRitfnIq+CoYgDJkLUGEnSqSQn/GCBbXTwAfwXzn1WRaZHGUb/g7i7CjLVaG2Yj\n rn6w==","X-Gm-Message-State":"AOJu0YwASFJk94lOncRVtCCT9FOhKB2G8A23CYzgFnEdpdpRrGsC4WZx\n YSIYtWXKGc4xvjVo2y9w95AEdxeskCB/vHv5QKx+7aEplpbrQ+SpfYyyNf/qF0E3DLA=","X-Gm-Gg":"ATEYQzyEPs70DchSsYBMqBxI2Fb45gnhhhLyhcL2jBeKusyoRMplD/84PPe9hW7b584\n nSLXOMmEgaqHtTxdVp6dwDCU6OE0s2KtshSy0uzshJ3QgBA9LQBA/Jtu5pNioYkznyFWGRHxNCR\n p/mfvkLj1EtcLydlInVKpzkUV3VUazVNml3AHlHasmQySrzcdFdp9Ik4MsIrrqnA3g8L994QQX7\n jk9yIPCyBgB40r53LfU0AsBbZTjNmEDxFl7tltEmSfY7uY+IGPrirFfz8rUodmBijZAVhsLm3r9\n 2pWayQvxwzaP1UgOuq28fzj2KEIv/0Nvl55OM1PcjjaKtznf2h4Gty9JuU+Uf0jklYrrTk/Yds0\n rckty4ASKOtGK1jSsInNOVptAtBKTcfSsreY1xr+xoQiH06S83IE/MV4FqX2PSseceLZavVVsdR\n wCKMJWAhz+/ej3hIjlgi7VUuabpQO+OKO81dSv3GlCDzE7PkgL6fqnAu/zeTaLoyU1ITpl8Fk7L\n Cw/9O/OhKvecaBX+J6z7EnVhNEhaVSUAt6/zmvrZw/VcW/g","X-Received":"by 2002:a05:6870:458c:b0:416:32c1:4276 with SMTP id\n 586e51a60fabf-41ca7005de9mr2344187fac.28.1774457663608;\n Wed, 25 Mar 2026 09:54:23 -0700 (PDT)","Date":"Wed, 25 Mar 2026 10:54:20 -0600","From":"Tom Rini <trini@konsulko.com>","To":"Simon Glass <sjg@chromium.org>","Cc":"u-boot@lists.denx.de, 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>","Subject":"Re: [PATCH] kbuild: Use relative paths in generated .incbin\n directives","Message-ID":"<20260325165420.GT502704@bill-the-cat>","References":"<20260325130811.447377-1-sjg@chromium.org>","MIME-Version":"1.0","Content-Type":"multipart/signed; micalg=pgp-sha512;\n protocol=\"application/pgp-signature\"; boundary=\"8iyf4/4mPO/q5dlm\"","Content-Disposition":"inline","In-Reply-To":"<20260325130811.447377-1-sjg@chromium.org>","X-Clacks-Overhead":"GNU Terry Pratchett","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"}},{"id":3669221,"web_url":"http://patchwork.ozlabs.org/comment/3669221/","msgid":"<CAFLszTgZpg-anG1J5kyiYk2JJ3dDiiyvuk5AV_PO+ri_b552tA@mail.gmail.com>","list_archive_url":null,"date":"2026-03-25T17:12:00","subject":"Re: [PATCH] kbuild: Use relative paths in generated .incbin\n directives","submitter":{"id":6170,"url":"http://patchwork.ozlabs.org/api/people/6170/","name":"Simon Glass","email":"sjg@chromium.org"},"content":"Hi Tom,\n\nOn Wed, 25 Mar 2026 at 10:54, Tom Rini <trini@konsulko.com> wrote:\n>\n> On Wed, Mar 25, 2026 at 07:08:09AM -0600, Simon Glass wrote:\n> > The generated .S files for fonts, splash screens and EFI apps use\n> > .incbin with the full prerequisite path. When building with O= this\n> > bakes an absolute path into the .S file. If the build directory is\n> > later used on a different machine (e.g. in a container), the assembler\n> > cannot find the source file.\n> >\n> > Use $(src)/$(notdir $<) instead of $< so the .incbin directive contains\n> > a source-relative path like drivers/video/fonts/nimbus_sans_l_regular.ttf\n> > rather than an absolute one. Add -Wa,-I$(srctree) to the assembler\n> > flags so the assembler can resolve these paths.\n> >\n> > The DTB and DTBO rules are left unchanged since their prerequisites are\n> > generated files in the build directory.\n> >\n> > Signed-off-by: Simon Glass <sjg@chromium.org>\n> > ---\n> >\n> >  scripts/Makefile.lib | 7 ++++---\n> >  1 file changed, 4 insertions(+), 3 deletions(-)\n>\n> This is generic kbuild infrastructure now. Is there a fix we're missing\n> from upstream, a change we haven't pulled in yet (as we need to keep\n> syncing upwards) or a problem upstream too? Thanks!\n\nLinux does this with DTB files in quiet_cmd_wrap_S_dtb:\n\necho '.incbin \"$<\" ';\n\nBut Linux only uses generated files in the build directory, never\nactual source files. The font/splash/EFI .incbin rules are U-Boot\nadditions that aren't in the upstream kbuild. So Linux doesn't have\nthis problem.\n\nRegards,\nSimon","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=OqkVUuTs;\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=\"OqkVUuTs\";\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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fgtkZ1yFXz1y1K\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 04:12:22 +1100 (AEDT)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 3E8EF83AAB;\n\tWed, 25 Mar 2026 18:12:19 +0100 (CET)","by phobos.denx.de (Postfix, from userid 109)\n id 5842783CD3; Wed, 25 Mar 2026 18:12:18 +0100 (CET)","from mail-ej1-x634.google.com (mail-ej1-x634.google.com\n [IPv6:2a00:1450:4864:20::634])\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 55BCB83A41\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 18:12:16 +0100 (CET)","by mail-ej1-x634.google.com with SMTP id\n a640c23a62f3a-b9358bc9c50so8488066b.1\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 10:12:16 -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","ARC-Seal":"i=1; a=rsa-sha256; t=1774458735; cv=none;\n d=google.com; s=arc-20240605;\n b=lgohFhOXFSVRHzIaahmStOu8zE2WJq18v1HbsQw1uPWJ4B2MKTUGSz6K7uu3I3QJuX\n 7On/fzoQQmevE6jTsyBjonyA+6MgBK0A8gzYAp7rZTSxFXKC1Wy3OLA6mh5athrhEtZO\n 6a2r0uWyhkzuBvVmETH5lIrtEGnevogngRQ8D71fQ9ROIAzr1aJgvcjuvfKf5CQzvBnA\n FcUDQnzfP1beAt8dybb6luETogiM3/b4f/gFnJVoBVVOTUuEsmHxt0zW0t0N93ute9ex\n z3rhLzyEsBdPcCOgzWE5q24d3qd/Avk7iscRkoPFTYvCpDmSoz8JgmYHxzgDiVHzJWaL\n QtBQ==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:dkim-signature;\n bh=o+/BNoINvYLTGSfhMXhOKhgxJr/KRaweO0u/TT819Dw=;\n fh=2w8mYF4LuweTY133cjdJkKBJK54+rTD/AxCP+o9GCM8=;\n b=RpGWNYldEgQbx/hac30xR1DmBErG9cREItJuvFCYviHvLFj5A2tLc529U8ltYhbUp5\n 8vkIUpboyU4As3eJTaNI9/h6AsBABVfyZLWicww91Vyw7uyMqG0aO0iupfQoIEPO8b5r\n Y8XvptPJ00F42nrpVctb7Zb8aG68/A5wib/khMe5pJlfUkRTctbdK42iUp3fKsnyLYP1\n kC26zAf/e20DzUwY03wQamrIa2mnmPktrcbQUX+nGAQB6MMVZKKSBRPYTgNXx64JWLUH\n Ydqkhsvrpg4xXAcUw8OhFmBsuK1N6ToMzNku9WWUHVqc37JyEGzFwHqp04pplNM4CJWm\n JseA==; darn=lists.denx.de","ARC-Authentication-Results":"i=1; mx.google.com; arc=none","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=chromium.org; s=google; t=1774458735; x=1775063535; darn=lists.denx.de;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:from:to:cc:subject:date:message-id:reply-to;\n bh=o+/BNoINvYLTGSfhMXhOKhgxJr/KRaweO0u/TT819Dw=;\n b=OqkVUuTs7d4JLo4zcUSfeVs0o25APCHFT0vmTbTtSuAMgTjkEWjwUHjD6aq9EUlOY+\n IXJLM2gs72x6os2AE8bm5+aELNxL/JroUyLL4o3SHqJqDX4lSFtZYPQPekMk7bPloBOU\n UihbDgG/3QCjH5oyHBJSI+8Z3U0CzLSmOoT1A=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774458735; x=1775063535;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=o+/BNoINvYLTGSfhMXhOKhgxJr/KRaweO0u/TT819Dw=;\n b=sEwPlKyDK2t/MhZ8Im8J9/n4FmeVrkXGmAD0FmAof0/oUxOT2nCWEV1JMM/dD2uxZm\n xv3x1jIz1avn6RViuIR8z6eMZijHr3ONUtqT8vuog9OCMxSTazPRmKGT/HQFjfyY5446\n NyffNayWpL8e9k9x9Q5X7XfjB8Wwu43AW3c08n9F29iiCfhswQxpvaaxGDBtw5nU3HzE\n IWBBIA/DOQ1QpgrmyIR5xU4nJa07jBomHDoxWwo8kHQsfbEIpIgZYsRkiLwiYuMWk4YC\n 1sXCQxnYgBokXxBR5bb2o9qUUe3Wq9mGLj/HtPjVXny2K84JHfiHj/GD2trb1g/uXdAk\n lMoQ==","X-Gm-Message-State":"AOJu0YyOGAQMow6iwYdNdlLAra8mZK6t1yH5d/J71aXGkScHMEG7lN94\n MZQZHc3LHKGkhSHqxR6VJDO9CgcxkQ+/1ScaEzWC5//lFcHlW85AV/8QXaqGV7dM3wEQ3N73dC8\n 9ryCdivh0CB1qm0uRRxg492dD+6v2kAsPn5YQBur5Ur1E/Dc1JHpilEuS","X-Gm-Gg":"ATEYQzwAUmT5FBIsjqnmFyPk12ubgehPnvttxpADlJL/rA3HPWiOVuuK/1W87tutQt9\n c5VkhNmNrI/feJIX8oX3szwFpdvF90qeWdUr77o+JL0bK0+oDRNXrzjr3GYoIQvXEuOfABR2g9o\n 2hmEcWzxGazyj9tuUrOjLJj6ZNPDa8StiMQ81ipSn/WKEtQTgQ/QcRlOf8+ymujne89aQVDtHn5\n 6vR44S93xooJNCI5yKJ9JOoM1V0ESiT+4VJH8bvwF9GWfcbMZJZ4xhyM0xGje12Zs6QFWRK6KF6\n 7RFjIkg=","X-Received":"by 2002:a17:907:3ea5:b0:b98:e4:6d1f with SMTP id\n a640c23a62f3a-b9a542833a1mr277009266b.40.1774458735173; Wed, 25 Mar 2026\n 10:12:15 -0700 (PDT)","MIME-Version":"1.0","References":"<20260325130811.447377-1-sjg@chromium.org>\n <20260325165420.GT502704@bill-the-cat>","In-Reply-To":"<20260325165420.GT502704@bill-the-cat>","From":"Simon Glass <sjg@chromium.org>","Date":"Wed, 25 Mar 2026 11:12:00 -0600","X-Gm-Features":"AQROBzCO-ejDFuoRm6ruaiuqqmCDZrN3apcRxRaejGuVLkBSdLg4Fq9TX1VEYbY","Message-ID":"\n <CAFLszTgZpg-anG1J5kyiYk2JJ3dDiiyvuk5AV_PO+ri_b552tA@mail.gmail.com>","Subject":"Re: [PATCH] kbuild: Use relative paths in generated .incbin\n directives","To":"Tom Rini <trini@konsulko.com>","Cc":"u-boot@lists.denx.de, 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>","Content-Type":"text/plain; charset=\"UTF-8\"","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"}},{"id":3669222,"web_url":"http://patchwork.ozlabs.org/comment/3669222/","msgid":"<20260325171540.GU502704@bill-the-cat>","list_archive_url":null,"date":"2026-03-25T17:15:40","subject":"Re: [PATCH] kbuild: Use relative paths in generated .incbin\n directives","submitter":{"id":65875,"url":"http://patchwork.ozlabs.org/api/people/65875/","name":"Tom Rini","email":"trini@konsulko.com"},"content":"On Wed, Mar 25, 2026 at 11:12:00AM -0600, Simon Glass wrote:\n> Hi Tom,\n> \n> On Wed, 25 Mar 2026 at 10:54, Tom Rini <trini@konsulko.com> wrote:\n> >\n> > On Wed, Mar 25, 2026 at 07:08:09AM -0600, Simon Glass wrote:\n> > > The generated .S files for fonts, splash screens and EFI apps use\n> > > .incbin with the full prerequisite path. When building with O= this\n> > > bakes an absolute path into the .S file. If the build directory is\n> > > later used on a different machine (e.g. in a container), the assembler\n> > > cannot find the source file.\n> > >\n> > > Use $(src)/$(notdir $<) instead of $< so the .incbin directive contains\n> > > a source-relative path like drivers/video/fonts/nimbus_sans_l_regular.ttf\n> > > rather than an absolute one. Add -Wa,-I$(srctree) to the assembler\n> > > flags so the assembler can resolve these paths.\n> > >\n> > > The DTB and DTBO rules are left unchanged since their prerequisites are\n> > > generated files in the build directory.\n> > >\n> > > Signed-off-by: Simon Glass <sjg@chromium.org>\n> > > ---\n> > >\n> > >  scripts/Makefile.lib | 7 ++++---\n> > >  1 file changed, 4 insertions(+), 3 deletions(-)\n> >\n> > This is generic kbuild infrastructure now. Is there a fix we're missing\n> > from upstream, a change we haven't pulled in yet (as we need to keep\n> > syncing upwards) or a problem upstream too? Thanks!\n> \n> Linux does this with DTB files in quiet_cmd_wrap_S_dtb:\n> \n> echo '.incbin \"$<\" ';\n> \n> But Linux only uses generated files in the build directory, never\n> actual source files. The font/splash/EFI .incbin rules are U-Boot\n> additions that aren't in the upstream kbuild. So Linux doesn't have\n> this problem.\n\nShouldn't we be generating these files in to the build directory too?","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=konsulko.com header.i=@konsulko.com header.a=rsa-sha256\n header.s=google header.b=uu1MKh0z;\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=konsulko.com","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=konsulko.com header.i=@konsulko.com\n header.b=\"uu1MKh0z\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=konsulko.com","phobos.denx.de;\n spf=pass smtp.mailfrom=trini@konsulko.com"],"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 4fgtpb2sHVz1xy3\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 04:15:51 +1100 (AEDT)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 1BD5E83AAB;\n\tWed, 25 Mar 2026 18:15:48 +0100 (CET)","by phobos.denx.de (Postfix, from userid 109)\n id DC5D483DA6; Wed, 25 Mar 2026 18:15:46 +0100 (CET)","from mail-oa1-x30.google.com (mail-oa1-x30.google.com\n [IPv6:2001:4860:4864:20::30])\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 AD26C83A41\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 18:15:44 +0100 (CET)","by mail-oa1-x30.google.com with SMTP id\n 586e51a60fabf-4138136f02eso67005fac.2\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 10:15:44 -0700 (PDT)","from bill-the-cat (fixed-189-203-97-235.totalplay.net.\n [189.203.97.235]) by smtp.gmail.com with ESMTPSA id\n 586e51a60fabf-41cc7bbf59fsm99346fac.18.2026.03.25.10.15.41\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 25 Mar 2026 10:15:42 -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,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=konsulko.com; s=google; t=1774458943; x=1775063743; darn=lists.denx.de;\n h=in-reply-to:content-disposition:mime-version:references:message-id\n :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to;\n bh=ph3kag+rDSbsj+10+WviIo2UhZ4LZgrfc5bylYgEBMo=;\n b=uu1MKh0zpdhs9C6pHaJFvAgUNYUiyNm0l0jsf92LXTUm6PK2OHBTR/pYZds3mCaUsI\n pWaUDP2K33d/Js3A6fCxRksaw0KNnUfbZKjrVcdmF0tWy+WtpkWTVd5+vRCUYV6Rfjwm\n YwGELFCFlN78aTJe8Wlq9GYalI2OlPwrXreD0=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774458943; x=1775063743;\n h=in-reply-to:content-disposition:mime-version:references:message-id\n :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=ph3kag+rDSbsj+10+WviIo2UhZ4LZgrfc5bylYgEBMo=;\n b=j78gLotiJBDHv02HeijeOkpiYQSmx23bsIq5nZDmRxnVhJnMzZDd1LFU58q9pbnMZN\n trhvb2Ke/B/8tKiZifD2hPPTJQosSK2JAurrrvb/dgtZWk7OlZS4C1yHMjXfwY4Ri7yC\n fzekeK1FVFrg7wXGPBihpvNmLBHnjx4FxlvBiHk/gGVInNT+qI9Fzx/0Cxk5wqCyt4m0\n r0dX3A0fulvHdqaoYBNMLA8hnLE8fw1DemKR+KUz4bVncAwnC58iEzsdNZH46kUPIVVp\n 4jCJiDuh8f5c3F0MVwjf5h5ri9vn0b3+szTK0F1rmVz1hq7vENTmq36HsNCmo2JqUTyY\n 9xoQ==","X-Gm-Message-State":"AOJu0Yym/xDAjPdrwdxgd0HiY86YIJbrRpcy9Ev78qVrLKdO19BF6dnQ\n IksdfwLPv4gYGZzsy+bB0N2YwM8v64rNSa6N80s716g9vYbHI/m1oFqMpfwHLPSlEbv+q4a71TD\n dhxIl","X-Gm-Gg":"ATEYQzwBxLNgmodQW/fOa2RwdvElLlcOzxV8aF4XjOLbA6jlXFWPWwV/1WlauJobYaj\n Q6R9+W6tyuW1ZfsHWLg/WWKGsDAoIV9I9Q1vviIKcqLixNoC1OuZKyOJqEdDLvNtnc+3NtBwa5m\n eQ+KwlJRXNlxLcWVO+ztm00BMMT5VYw2QKbhldwK2vrN3gbNQq0JXsLsOoZVuor2pOO+FDhTtHG\n VSfalEIWykjXr36mdJ+Rsjh82HvmqYNXCLr1fJXkywNWQ8zUPFXZtlAvXz5rWruSa1axtOq2UVc\n X5OGc00RfmIl2EAUOXIGUzyuaIsuG8YF0EXGTkTClN8LG/8LdgmbGkA809ZChjGsPurkAiuzsI2\n xUeS/Pdq7aIZSD3JGuIfGmPFt/E91iNzklPB1SeYpm08PQVIIJHew7p6O6WKba6QGxlwzCijKUc\n V1xA4iW6o7QiwynqbAVWcGIl73IUlhakzsQwAJblyc+6x6dGjLvxQnyucNLzSXO0sqyFwI/hQIf\n wPs6zqp2KeGu/kJ174OiHpACDD9a8KAOhynkwiMwk+Pg3di","X-Received":"by 2002:a05:6871:3845:b0:41c:f37:ede1 with SMTP id\n 586e51a60fabf-41ca6dadf17mr2546166fac.14.1774458943227;\n Wed, 25 Mar 2026 10:15:43 -0700 (PDT)","Date":"Wed, 25 Mar 2026 11:15:40 -0600","From":"Tom Rini <trini@konsulko.com>","To":"Simon Glass <sjg@chromium.org>","Cc":"u-boot@lists.denx.de, 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>","Subject":"Re: [PATCH] kbuild: Use relative paths in generated .incbin\n directives","Message-ID":"<20260325171540.GU502704@bill-the-cat>","References":"<20260325130811.447377-1-sjg@chromium.org>\n <20260325165420.GT502704@bill-the-cat>\n <CAFLszTgZpg-anG1J5kyiYk2JJ3dDiiyvuk5AV_PO+ri_b552tA@mail.gmail.com>","MIME-Version":"1.0","Content-Type":"multipart/signed; micalg=pgp-sha512;\n protocol=\"application/pgp-signature\"; boundary=\"yWw2aQ8Gko36hKcc\"","Content-Disposition":"inline","In-Reply-To":"\n <CAFLszTgZpg-anG1J5kyiYk2JJ3dDiiyvuk5AV_PO+ri_b552tA@mail.gmail.com>","X-Clacks-Overhead":"GNU Terry Pratchett","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"}},{"id":3669256,"web_url":"http://patchwork.ozlabs.org/comment/3669256/","msgid":"<CAFLszTh3NgpY1VQer2wN9-feOvM8khXaFyp+ePhTpqowGK_qrQ@mail.gmail.com>","list_archive_url":null,"date":"2026-03-25T17:57:17","subject":"Re: [PATCH] kbuild: Use relative paths in generated .incbin\n directives","submitter":{"id":6170,"url":"http://patchwork.ozlabs.org/api/people/6170/","name":"Simon Glass","email":"sjg@chromium.org"},"content":"Hi Tom,\n\nOn Wed, 25 Mar 2026 at 11:15, Tom Rini <trini@konsulko.com> wrote:\n>\n> On Wed, Mar 25, 2026 at 11:12:00AM -0600, Simon Glass wrote:\n> > Hi Tom,\n> >\n> > On Wed, 25 Mar 2026 at 10:54, Tom Rini <trini@konsulko.com> wrote:\n> > >\n> > > On Wed, Mar 25, 2026 at 07:08:09AM -0600, Simon Glass wrote:\n> > > > The generated .S files for fonts, splash screens and EFI apps use\n> > > > .incbin with the full prerequisite path. When building with O= this\n> > > > bakes an absolute path into the .S file. If the build directory is\n> > > > later used on a different machine (e.g. in a container), the assembler\n> > > > cannot find the source file.\n> > > >\n> > > > Use $(src)/$(notdir $<) instead of $< so the .incbin directive contains\n> > > > a source-relative path like drivers/video/fonts/nimbus_sans_l_regular.ttf\n> > > > rather than an absolute one. Add -Wa,-I$(srctree) to the assembler\n> > > > flags so the assembler can resolve these paths.\n> > > >\n> > > > The DTB and DTBO rules are left unchanged since their prerequisites are\n> > > > generated files in the build directory.\n> > > >\n> > > > Signed-off-by: Simon Glass <sjg@chromium.org>\n> > > > ---\n> > > >\n> > > >  scripts/Makefile.lib | 7 ++++---\n> > > >  1 file changed, 4 insertions(+), 3 deletions(-)\n> > >\n> > > This is generic kbuild infrastructure now. Is there a fix we're missing\n> > > from upstream, a change we haven't pulled in yet (as we need to keep\n> > > syncing upwards) or a problem upstream too? Thanks!\n> >\n> > Linux does this with DTB files in quiet_cmd_wrap_S_dtb:\n> >\n> > echo '.incbin \"$<\" ';\n> >\n> > But Linux only uses generated files in the build directory, never\n> > actual source files. The font/splash/EFI .incbin rules are U-Boot\n> > additions that aren't in the upstream kbuild. So Linux doesn't have\n> > this problem.\n>\n> Shouldn't we be generating these files in to the build directory too?\n\nThese are actually source files, e.g.\ndrivers/video/fonts/nimbus_sans_l_regular.ttf\n\nRegards,\nSimon","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=JZVL/+bq;\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=\"JZVL/+bq\";\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 4fgvkn0d7Lz1y1K\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 04:57:37 +1100 (AEDT)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id B3208838BB;\n\tWed, 25 Mar 2026 18:57:34 +0100 (CET)","by phobos.denx.de (Postfix, from userid 109)\n id D806083DA7; Wed, 25 Mar 2026 18:57:33 +0100 (CET)","from mail-ej1-x633.google.com (mail-ej1-x633.google.com\n [IPv6:2a00:1450:4864:20::633])\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 E442680077\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 18:57:31 +0100 (CET)","by mail-ej1-x633.google.com with SMTP id\n a640c23a62f3a-b97a9f4b4dcso11286966b.3\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 10:57:31 -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","ARC-Seal":"i=1; a=rsa-sha256; t=1774461451; cv=none;\n d=google.com; s=arc-20240605;\n b=lQNradHkumi5ZfRgKdVGNWYBYbL9P2JHCL9g/TsxCIzubCVZGbmX+bfLHcNz6Zsl/z\n pvkcyJKZPHXQFLMWv92QgeVUK5bcJ/8kPDXWqg4Y8sK5hTf9a0r91mpVJK02fElDxjp3\n PXS05gqx/weNyzw9rn/2C+CbfNvkjUub87LsWJdJcktG7X6cSeJCgbQFnzxftYLnBsH4\n cN6MaGxbY+WhK5jaiMxZjiaWNUcHW2/7HoWDsF8dIk6zTledc7Rb2et3P3IGabxO41dO\n /pliGu96EE3O15S5COYTR3i0XwBc1Ramx6xzG5wT3psLcWrZ8JA+t41h0qSoxcdeIcRI\n siMA==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:dkim-signature;\n bh=jMH/3LuUkMAf1hXUDChbjBc2T9xYD/O2G8JI0YneVjU=;\n fh=2w8mYF4LuweTY133cjdJkKBJK54+rTD/AxCP+o9GCM8=;\n b=bKWfsNHFpe8Kg259boMbFDuZhahL1QiwfLP6/FQZouBOEd+IJFK+KpxrXB0X0W+fyF\n FnyqvYNzSdzBRFRy2Q4gx5sT9yHoqNy8Zm08rFxjEMPbWkj0Plj6bs4H4KGoxaQZbmr1\n CBETho9WcW9dYSpIpM32ON8JMIFEAyaneHJayjfo9kMTedGIVQpQMgVLpDTieKZtfJXx\n cngidzMOtG3tmHJmFc4mXWNal3XnOX+U6g/+tMln64Od/tzn2SRxNfgKkL+UgTB869VO\n EBxgGDvhSA+fyPlxCyyBQboDjh0rSjfl+E11HbY4+2XFYmR5iglhSOYoyR95onqjYiLE\n 9vqw==; darn=lists.denx.de","ARC-Authentication-Results":"i=1; mx.google.com; arc=none","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=chromium.org; s=google; t=1774461451; x=1775066251; darn=lists.denx.de;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:from:to:cc:subject:date:message-id:reply-to;\n bh=jMH/3LuUkMAf1hXUDChbjBc2T9xYD/O2G8JI0YneVjU=;\n b=JZVL/+bqpD6Spdr4XUGhalGQWLaMbq1MOfFhe9+wK3vijEKzIZQi7pGRk0xt8HEa+P\n m9XkGRMJHHUUyi8Q6PuQEnLoReROr4JdXSLPjvSKufkcKXfJg6nMLYXOdThEXLwq5QPv\n 5eSayYIjd9/E7esnu3RCm8UOVTGZ/V4K+K/FY=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774461451; x=1775066251;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=jMH/3LuUkMAf1hXUDChbjBc2T9xYD/O2G8JI0YneVjU=;\n b=SZ1cqAGulz9sChDdtPGTBWOqJtn4Ib0aqB4DLzAG4rxG7n7sWqGMVnV+7Uq1P9XVmM\n h8npq6jrp+A9HrJpFQ//Bd4WefD9fpIlmgIwuMiIT1LCRq05ugoSaIay+vcMmZt6m3To\n GMuwUQzcKBIXeT3W9uNVeWn2PqTlCJDIK2OfN+iTOXUaVW3a9uyBGjdpe48HJ+3HGKua\n GlxND08snEVR33DXfiMWZMvANjZo4mof8t8OxQzfch9ICXccYNfBpMGdClo4avCpvAMJ\n db5mjJkgDNdoTq40FPcKXQMhhLS0+UnwesJFwvjdbKexAJt8yLcgi0duaLibpElrkwOA\n DK+A==","X-Gm-Message-State":"AOJu0Yz0wuPfSbLk7V6DV/LStEaHJeRVyy9iPz8V6+GxHdHlOcfHExJl\n wiXbD6NaC+g7zLqyXNg6PNS/69hFjcsIW8WfRNpIZ/4LQAwSFP5sVqmsh8oM3kTqm8GgT91oDPD\n bQS19YT8fWfUt21SSVu7sjlR3CRUfQ1hlk9Fih75d","X-Gm-Gg":"ATEYQzyMxJnbMknQq7W1oHtB4orIGsgDAdIA22EKdU4gVtxTaotlVCu6VXjJ1m6IQOB\n wccr1+KPwrAT3mQFb9lKu0IK7BYmH35yJ2rt4tQn8bjFzIJlySHXR8cdc8HQ4nmC7EYe0uko909\n AIQdY+oRUlTosh8D+PqoC47YVFNwtUQeuHD6gxdq7iSFihZNjsdTJlM067T8ogGZ2EyDgmlhWnt\n EfykMYst49VyHgfK9dTi6cl5EVB2DQvGCE5MHrWTCHSTtJiSHavO03eh86fsxFJhEoM0S5Hp/Ia\n S8lMI1E=","X-Received":"by 2002:a17:907:6b8e:b0:b98:235b:4dfa with SMTP id\n a640c23a62f3a-b9a542bcccfmr287593966b.47.1774461451315; Wed, 25 Mar 2026\n 10:57:31 -0700 (PDT)","MIME-Version":"1.0","References":"<20260325130811.447377-1-sjg@chromium.org>\n <20260325165420.GT502704@bill-the-cat>\n <CAFLszTgZpg-anG1J5kyiYk2JJ3dDiiyvuk5AV_PO+ri_b552tA@mail.gmail.com>\n <20260325171540.GU502704@bill-the-cat>","In-Reply-To":"<20260325171540.GU502704@bill-the-cat>","From":"Simon Glass <sjg@chromium.org>","Date":"Wed, 25 Mar 2026 11:57:17 -0600","X-Gm-Features":"AQROBzCKjupKV3dbGe5xhWwMLIn42kt9VQd2mzcVwyMgrfS8y1dN4CNE9jMeoGY","Message-ID":"\n <CAFLszTh3NgpY1VQer2wN9-feOvM8khXaFyp+ePhTpqowGK_qrQ@mail.gmail.com>","Subject":"Re: [PATCH] kbuild: Use relative paths in generated .incbin\n directives","To":"Tom Rini <trini@konsulko.com>","Cc":"u-boot@lists.denx.de, 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>","Content-Type":"text/plain; charset=\"UTF-8\"","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"}},{"id":3669265,"web_url":"http://patchwork.ozlabs.org/comment/3669265/","msgid":"<20260325182619.GV502704@bill-the-cat>","list_archive_url":null,"date":"2026-03-25T18:26:19","subject":"Re: [PATCH] kbuild: Use relative paths in generated .incbin\n directives","submitter":{"id":65875,"url":"http://patchwork.ozlabs.org/api/people/65875/","name":"Tom Rini","email":"trini@konsulko.com"},"content":"On Wed, Mar 25, 2026 at 11:57:17AM -0600, Simon Glass wrote:\n> Hi Tom,\n> \n> On Wed, 25 Mar 2026 at 11:15, Tom Rini <trini@konsulko.com> wrote:\n> >\n> > On Wed, Mar 25, 2026 at 11:12:00AM -0600, Simon Glass wrote:\n> > > Hi Tom,\n> > >\n> > > On Wed, 25 Mar 2026 at 10:54, Tom Rini <trini@konsulko.com> wrote:\n> > > >\n> > > > On Wed, Mar 25, 2026 at 07:08:09AM -0600, Simon Glass wrote:\n> > > > > The generated .S files for fonts, splash screens and EFI apps use\n> > > > > .incbin with the full prerequisite path. When building with O= this\n> > > > > bakes an absolute path into the .S file. If the build directory is\n> > > > > later used on a different machine (e.g. in a container), the assembler\n> > > > > cannot find the source file.\n> > > > >\n> > > > > Use $(src)/$(notdir $<) instead of $< so the .incbin directive contains\n> > > > > a source-relative path like drivers/video/fonts/nimbus_sans_l_regular.ttf\n> > > > > rather than an absolute one. Add -Wa,-I$(srctree) to the assembler\n> > > > > flags so the assembler can resolve these paths.\n> > > > >\n> > > > > The DTB and DTBO rules are left unchanged since their prerequisites are\n> > > > > generated files in the build directory.\n> > > > >\n> > > > > Signed-off-by: Simon Glass <sjg@chromium.org>\n> > > > > ---\n> > > > >\n> > > > >  scripts/Makefile.lib | 7 ++++---\n> > > > >  1 file changed, 4 insertions(+), 3 deletions(-)\n> > > >\n> > > > This is generic kbuild infrastructure now. Is there a fix we're missing\n> > > > from upstream, a change we haven't pulled in yet (as we need to keep\n> > > > syncing upwards) or a problem upstream too? Thanks!\n> > >\n> > > Linux does this with DTB files in quiet_cmd_wrap_S_dtb:\n> > >\n> > > echo '.incbin \"$<\" ';\n> > >\n> > > But Linux only uses generated files in the build directory, never\n> > > actual source files. The font/splash/EFI .incbin rules are U-Boot\n> > > additions that aren't in the upstream kbuild. So Linux doesn't have\n> > > this problem.\n> >\n> > Shouldn't we be generating these files in to the build directory too?\n> \n> These are actually source files, e.g.\n> drivers/video/fonts/nimbus_sans_l_regular.ttf\n\nSo, the first thing then is that S_ttf is a local U-Boot rule. Lets\nstart by moving this out of scripts/Makefile.lib to\nscripts/Makefile.lib-u-boot as that will make future re-sync work easier\n(and is something we've talked about in the re-sync threads, splitting\nU-Boot specific stuff out to new files). Then 2/2 of that series can be\nthis change, thanks.","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=konsulko.com header.i=@konsulko.com header.a=rsa-sha256\n header.s=google header.b=QBsxOJXt;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; 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=konsulko.com","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=konsulko.com header.i=@konsulko.com\n header.b=\"QBsxOJXt\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=konsulko.com","phobos.denx.de;\n spf=pass smtp.mailfrom=trini@konsulko.com"],"Received":["from phobos.denx.de (phobos.denx.de [85.214.62.61])\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 4fgwN64ZZGz1y1K\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 05:26:30 +1100 (AEDT)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 5889683DA7;\n\tWed, 25 Mar 2026 19:26:27 +0100 (CET)","by phobos.denx.de (Postfix, from userid 109)\n id 8B29583F14; Wed, 25 Mar 2026 19:26:25 +0100 (CET)","from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com\n [IPv6:2607:f8b0:4864:20::32b])\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 5871380077\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 19:26:23 +0100 (CET)","by mail-ot1-x32b.google.com with SMTP id\n 46e09a7af769-7d1872504cbso73863a34.0\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 11:26:23 -0700 (PDT)","from bill-the-cat (fixed-189-203-97-235.totalplay.net.\n [189.203.97.235]) by smtp.gmail.com with ESMTPSA id\n 46e09a7af769-7d9e6fde23esm375471a34.9.2026.03.25.11.26.20\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 25 Mar 2026 11:26:21 -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,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=konsulko.com; s=google; t=1774463182; x=1775067982; darn=lists.denx.de;\n h=in-reply-to:content-disposition:mime-version:references:message-id\n :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to;\n bh=d3vt0plxIOlJxMdKRhIHHoH5wxnMbZYRcq9oQ5la1As=;\n b=QBsxOJXteB03v/hXO0Dbu0dyB+trvjVbLbPVSfEZdSmozhedOaWV8ycWpjv64kNAsE\n kqml6AaAAS/PrJg2Bonl//dWzo96muXJXDrYRq9GBfL1zLibCYZIbOmojY3RwQaohSSe\n JBzWK7n/TMmruwv9p86qt0CYAjWtwCa3LdXE4=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774463182; x=1775067982;\n h=in-reply-to:content-disposition:mime-version:references:message-id\n :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=d3vt0plxIOlJxMdKRhIHHoH5wxnMbZYRcq9oQ5la1As=;\n b=brx8jJDEwFaDj3uDE8l5n9zrhuNpY5V/vnBtp+e8wkXy++6TlFWju7qQ0AlIUePCzd\n 7zWy++6R6V3wNwG+IqAQCDWFILJD5Evto86Bk2UROby6jgBfIZa+q+yAYRb9e6yRq4ih\n ndH019psPdi0QZV4e5dghynb3zRh9Jaqk69OW/HyP53UsLjWhc4CL98VcbjD6aEbmZXd\n Axzs6+JHRsyzznEUtxKuNsMiqILfj817jonT0rsp21UrWKK23DplJ8oeiEY3jw4Sy2FC\n nSvUnNI5/5YBjFtZFSaEkDEU3t139JWgwkSY6Zw/dy4wiG33vnrZFde1VZWYhdIZGMZd\n FOHw==","X-Gm-Message-State":"AOJu0YwkgQaI15pZRo6jBhgcZV9pBOPomM00vBZvXoZR2H3uR4dVkhHh\n /BtRcxhwTlmVGD42v0f728jPGRT76RnLHNLGsNitlmnFgXDGfe9pksPJb3PMiMGkRlI=","X-Gm-Gg":"ATEYQzxMzruPQAfG+lPeKQdEW3+lpCk9PO2AVT0o1pC5qLEhH16kuKc3wkaG/VbVqOY\n TU245NfrveQ5oYyQGdJ+kvr+kJovmRbLsdCQrHi2spKu+1PTnQzElu0k/bmW5NJ9rl25+fqMJxE\n Jlkkad/J5zxgr7za+//FlZpNKCw66CPUiPh1//CSthNNEwzcV9VRdW5g37LAWUJWdLmmnSZZHFU\n lFkhV04i0kejssFnA0mMWK8gBUynumqTFzSqFzThBYvgdqCFTNVoqixPwUiAT8oFCYbFlM+599L\n qquktO3Y9rcgj5I3k0p6jhjEyQBKPti7WwlkbIcrWltHvcdHrlucHhjDKjWWtJvwGuEe1slg6bw\n DxMAE5+j525An6312i4hPYQU+Zs6/zraV1+JClWxHNsfkfgFwMICxjXDUg+OvMPHW9KwY2MaIum\n JfxXjJjUmGhg76hIRTtcODbEwpwd0hASPWyQnYvjers7nfyVHG2aJp1ZUziHenuv/0+YTWJfLCw\n ErAjCBrFRjfDWWKrWJdnb0KKCOTc0iHkpm5lMHtupGhkF2U","X-Received":"by 2002:a05:6830:6a12:b0:7d7:bf59:2238 with SMTP id\n 46e09a7af769-7d9d4df422fmr2650870a34.4.1774463181966;\n Wed, 25 Mar 2026 11:26:21 -0700 (PDT)","Date":"Wed, 25 Mar 2026 12:26:19 -0600","From":"Tom Rini <trini@konsulko.com>","To":"Simon Glass <sjg@chromium.org>","Cc":"u-boot@lists.denx.de, 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>","Subject":"Re: [PATCH] kbuild: Use relative paths in generated .incbin\n directives","Message-ID":"<20260325182619.GV502704@bill-the-cat>","References":"<20260325130811.447377-1-sjg@chromium.org>\n <20260325165420.GT502704@bill-the-cat>\n <CAFLszTgZpg-anG1J5kyiYk2JJ3dDiiyvuk5AV_PO+ri_b552tA@mail.gmail.com>\n <20260325171540.GU502704@bill-the-cat>\n <CAFLszTh3NgpY1VQer2wN9-feOvM8khXaFyp+ePhTpqowGK_qrQ@mail.gmail.com>","MIME-Version":"1.0","Content-Type":"multipart/signed; micalg=pgp-sha512;\n protocol=\"application/pgp-signature\"; boundary=\"u0QaSU2tmctKcN4/\"","Content-Disposition":"inline","In-Reply-To":"\n <CAFLszTh3NgpY1VQer2wN9-feOvM8khXaFyp+ePhTpqowGK_qrQ@mail.gmail.com>","X-Clacks-Overhead":"GNU Terry Pratchett","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"}},{"id":3669282,"web_url":"http://patchwork.ozlabs.org/comment/3669282/","msgid":"<CAFLszThCO2a1COB8kBwYfTXM65AGJEugo9MWZAjphQNuX16Y-Q@mail.gmail.com>","list_archive_url":null,"date":"2026-03-25T19:21:54","subject":"Re: [PATCH] kbuild: Use relative paths in generated .incbin\n directives","submitter":{"id":6170,"url":"http://patchwork.ozlabs.org/api/people/6170/","name":"Simon Glass","email":"sjg@chromium.org"},"content":"Hi Tom,\n\nOn Wed, 25 Mar 2026 at 12:26, Tom Rini <trini@konsulko.com> wrote:\n>\n> On Wed, Mar 25, 2026 at 11:57:17AM -0600, Simon Glass wrote:\n> > Hi Tom,\n> >\n> > On Wed, 25 Mar 2026 at 11:15, Tom Rini <trini@konsulko.com> wrote:\n> > >\n> > > On Wed, Mar 25, 2026 at 11:12:00AM -0600, Simon Glass wrote:\n> > > > Hi Tom,\n> > > >\n> > > > On Wed, 25 Mar 2026 at 10:54, Tom Rini <trini@konsulko.com> wrote:\n> > > > >\n> > > > > On Wed, Mar 25, 2026 at 07:08:09AM -0600, Simon Glass wrote:\n> > > > > > The generated .S files for fonts, splash screens and EFI apps use\n> > > > > > .incbin with the full prerequisite path. When building with O= this\n> > > > > > bakes an absolute path into the .S file. If the build directory is\n> > > > > > later used on a different machine (e.g. in a container), the assembler\n> > > > > > cannot find the source file.\n> > > > > >\n> > > > > > Use $(src)/$(notdir $<) instead of $< so the .incbin directive contains\n> > > > > > a source-relative path like drivers/video/fonts/nimbus_sans_l_regular.ttf\n> > > > > > rather than an absolute one. Add -Wa,-I$(srctree) to the assembler\n> > > > > > flags so the assembler can resolve these paths.\n> > > > > >\n> > > > > > The DTB and DTBO rules are left unchanged since their prerequisites are\n> > > > > > generated files in the build directory.\n> > > > > >\n> > > > > > Signed-off-by: Simon Glass <sjg@chromium.org>\n> > > > > > ---\n> > > > > >\n> > > > > >  scripts/Makefile.lib | 7 ++++---\n> > > > > >  1 file changed, 4 insertions(+), 3 deletions(-)\n> > > > >\n> > > > > This is generic kbuild infrastructure now. Is there a fix we're missing\n> > > > > from upstream, a change we haven't pulled in yet (as we need to keep\n> > > > > syncing upwards) or a problem upstream too? Thanks!\n> > > >\n> > > > Linux does this with DTB files in quiet_cmd_wrap_S_dtb:\n> > > >\n> > > > echo '.incbin \"$<\" ';\n> > > >\n> > > > But Linux only uses generated files in the build directory, never\n> > > > actual source files. The font/splash/EFI .incbin rules are U-Boot\n> > > > additions that aren't in the upstream kbuild. So Linux doesn't have\n> > > > this problem.\n> > >\n> > > Shouldn't we be generating these files in to the build directory too?\n> >\n> > These are actually source files, e.g.\n> > drivers/video/fonts/nimbus_sans_l_regular.ttf\n>\n> So, the first thing then is that S_ttf is a local U-Boot rule. Lets\n> start by moving this out of scripts/Makefile.lib to\n> scripts/Makefile.lib-u-boot as that will make future re-sync work easier\n> (and is something we've talked about in the re-sync threads, splitting\n> U-Boot specific stuff out to new files). Then 2/2 of that series can be\n> this change, thanks.\n\nAlmost, but I still need the a_flags change.\n\nRegards,\nSimon","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=dsuW99Ey;\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=\"dsuW99Ey\";\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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fgxcP3jySz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 06:22:13 +1100 (AEDT)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 6BC8283F14;\n\tWed, 25 Mar 2026 20:22:10 +0100 (CET)","by phobos.denx.de (Postfix, from userid 109)\n id 4420683FAF; Wed, 25 Mar 2026 20:22:09 +0100 (CET)","from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com\n [IPv6:2a00:1450:4864:20::62b])\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 3D58183DA6\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 20:22:07 +0100 (CET)","by mail-ej1-x62b.google.com with SMTP id\n a640c23a62f3a-b8d7f22d405so29317666b.0\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 12:22:07 -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","ARC-Seal":"i=1; a=rsa-sha256; t=1774466527; cv=none;\n d=google.com; s=arc-20240605;\n b=BvOi6yqIAwjDjQJ4fR0x1TBB4Oy2bMURoH5hnKt/UjlxzFXfrKHXXebcq6AsoHM05S\n i45bF4z1zEyvOJEoLWxjwjXolfc9wHdT2azYYA2JC8k9uW+P8jEsVcpevz4WDxzHVPf4\n ev3wuZcN9x068M/5K5UaFT/Te1xHRbSslhj8tp5DUZhq7TjCwARYg33RisU8f3FyOvx7\n OP1PaLfYn8w5pd/6wZ1nMYa1iggfU+lWwNE4xVSD07zrZ00Rmt0ymtkAdmRIS4DANlPR\n N5q/TgvLL3cAtiAiAIEcRcbxZU43L3lRMlD9fQUwy3Uhe7XnC+nha3KXGatMqtke1Fie\n 1pYw==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:dkim-signature;\n bh=3ZFXvt1LZVkjZn6Sc194QaiH3N+0VlAnM0sIBLFpHxA=;\n fh=2w8mYF4LuweTY133cjdJkKBJK54+rTD/AxCP+o9GCM8=;\n b=M2fiiRvBJNF4Wmqob4x4lHMbv7UqK5FzL2J6Pdu1SCb8qeu0M2N2c5njcLFVquOXfT\n +wYWMyROFGHtEkUjZcTYRCOvea1iawsNN1Xy8NkmzqKmDOOn//M9KjZTxogLe+1inA5J\n rr2OiIKxoVBmacXGI+6+ameegsTuO1MkMmCYitU4nOHrZrOkfItXoPJfyQPvV9nrOQrS\n F9sKX0/d0htsSGl7nwkKvLGxiLe0LlC6vuJp49pVfmwLmDnjn/XQ6t4HmcQPYYbRvaKg\n iY9qkNrDj9lW8NXGOXnpE0w86gT463TZ8DVw21pU1kymTM82wI63UZNftzMxYgSxQQg3\n aq+w==; darn=lists.denx.de","ARC-Authentication-Results":"i=1; mx.google.com; arc=none","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=chromium.org; s=google; t=1774466527; x=1775071327; darn=lists.denx.de;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:from:to:cc:subject:date:message-id:reply-to;\n bh=3ZFXvt1LZVkjZn6Sc194QaiH3N+0VlAnM0sIBLFpHxA=;\n b=dsuW99Ey/SdhrBo/ImuoTX7Rhd/uKSbdSMl51EsE7Tctr1zninxJprnjKvijHTvHLt\n we6k5xLOuQoyCBCFWinZ3YutiMjVWxzuTN2Rx0xer4GtGUxGYgjq3mP+9nSBN1koCFg1\n i9PZ7By0ueQCpw4g8/15Y1i03tZ2rBzIanQb8=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774466527; x=1775071327;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=3ZFXvt1LZVkjZn6Sc194QaiH3N+0VlAnM0sIBLFpHxA=;\n b=qBPIhcEthihDuySD2CCmYq5g+dVKEdP5E3xY3pMMVuGtoRjf3AlCXgBPPA0HW9DCt2\n VxNVWRMfbOG3ziuot9WryvSOnXQ+IzI/ANV4H2gU2xuNeAIUkFaQhzfWNzg6C8ztD0hY\n wU38w7AYkQLiygAAjskAqPluvK6h4d2XQ+Rb/NKMNvJ4h79wrnIgRX8d5xZldBI1j0uv\n KMfd2TwIHrUlT/AfllUKQquh3sQe5fVbHH2qUj2cJBcdgx1Zl5TWriFpY9hlsnXJecdG\n yST0x2Yw+SuBBI5nU1aRhquC7jnGm1kJAHbilLyWwvQFC50tolAZqxkiB8z6TOyukVA/\n VYVQ==","X-Gm-Message-State":"AOJu0YxQ3QnCqBg8nvpfQoIuPIGMfGEAoEEFqnHuo6Pr9LJ/AGZmp6gX\n O7PKW0brf78fCqchr/arbn3S2R/tz2zKObkJsaLaB7+xNFykIsCjyh4H43oMjcDTKIHBqu+qlMt\n 945yWnKd6p0enlfBU6N3f6OIAwJShU67sbPNIt1o3","X-Gm-Gg":"ATEYQzwOieEOa8873No5M3kbBi5jjFzzxfNh4PPbEWTI2wfILIWeXOWCa8kzM1/5976\n l61ggCbm6HXiYRsS/Zq+cKbs5H5aVSY7Q70Oe6VBYXTPIsly5ZrLOKK7Adfdh62pqfWpzNynKSg\n H7lMeaNg5sGyQFI74CkftftbFUpT9e5F1g6RyisAfU9Yasl44/XHyAXaaOiEB567RRXKB9ptU4e\n /MzNBQXvqmxAVvEFzj7MMgqaQKC9qt05b3ws7GQI+4HCJROKAlsSnywyQUJwc9PKPtf/uVP8kHf\n Y6ebh1A=","X-Received":"by 2002:a17:906:f59c:b0:b99:6133:aceb with SMTP id\n a640c23a62f3a-b9a3f1a5514mr350284966b.24.1774466526444; Wed, 25 Mar 2026\n 12:22:06 -0700 (PDT)","MIME-Version":"1.0","References":"<20260325130811.447377-1-sjg@chromium.org>\n <20260325165420.GT502704@bill-the-cat>\n <CAFLszTgZpg-anG1J5kyiYk2JJ3dDiiyvuk5AV_PO+ri_b552tA@mail.gmail.com>\n <20260325171540.GU502704@bill-the-cat>\n <CAFLszTh3NgpY1VQer2wN9-feOvM8khXaFyp+ePhTpqowGK_qrQ@mail.gmail.com>\n <20260325182619.GV502704@bill-the-cat>","In-Reply-To":"<20260325182619.GV502704@bill-the-cat>","From":"Simon Glass <sjg@chromium.org>","Date":"Wed, 25 Mar 2026 13:21:54 -0600","X-Gm-Features":"AQROBzClyivcecOYQ30gZ_vZjpjbUvz69Gepq01ii6JZozy3iPyWlzR5Ul6p0wM","Message-ID":"\n <CAFLszThCO2a1COB8kBwYfTXM65AGJEugo9MWZAjphQNuX16Y-Q@mail.gmail.com>","Subject":"Re: [PATCH] kbuild: Use relative paths in generated .incbin\n directives","To":"Tom Rini <trini@konsulko.com>","Cc":"u-boot@lists.denx.de, 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>","Content-Type":"text/plain; charset=\"UTF-8\"","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"}},{"id":3669300,"web_url":"http://patchwork.ozlabs.org/comment/3669300/","msgid":"<20260325195337.GY502704@bill-the-cat>","list_archive_url":null,"date":"2026-03-25T19:53:37","subject":"Re: [PATCH] kbuild: Use relative paths in generated .incbin\n directives","submitter":{"id":65875,"url":"http://patchwork.ozlabs.org/api/people/65875/","name":"Tom Rini","email":"trini@konsulko.com"},"content":"On Wed, Mar 25, 2026 at 01:21:54PM -0600, Simon Glass wrote:\n> Hi Tom,\n> \n> On Wed, 25 Mar 2026 at 12:26, Tom Rini <trini@konsulko.com> wrote:\n> >\n> > On Wed, Mar 25, 2026 at 11:57:17AM -0600, Simon Glass wrote:\n> > > Hi Tom,\n> > >\n> > > On Wed, 25 Mar 2026 at 11:15, Tom Rini <trini@konsulko.com> wrote:\n> > > >\n> > > > On Wed, Mar 25, 2026 at 11:12:00AM -0600, Simon Glass wrote:\n> > > > > Hi Tom,\n> > > > >\n> > > > > On Wed, 25 Mar 2026 at 10:54, Tom Rini <trini@konsulko.com> wrote:\n> > > > > >\n> > > > > > On Wed, Mar 25, 2026 at 07:08:09AM -0600, Simon Glass wrote:\n> > > > > > > The generated .S files for fonts, splash screens and EFI apps use\n> > > > > > > .incbin with the full prerequisite path. When building with O= this\n> > > > > > > bakes an absolute path into the .S file. If the build directory is\n> > > > > > > later used on a different machine (e.g. in a container), the assembler\n> > > > > > > cannot find the source file.\n> > > > > > >\n> > > > > > > Use $(src)/$(notdir $<) instead of $< so the .incbin directive contains\n> > > > > > > a source-relative path like drivers/video/fonts/nimbus_sans_l_regular.ttf\n> > > > > > > rather than an absolute one. Add -Wa,-I$(srctree) to the assembler\n> > > > > > > flags so the assembler can resolve these paths.\n> > > > > > >\n> > > > > > > The DTB and DTBO rules are left unchanged since their prerequisites are\n> > > > > > > generated files in the build directory.\n> > > > > > >\n> > > > > > > Signed-off-by: Simon Glass <sjg@chromium.org>\n> > > > > > > ---\n> > > > > > >\n> > > > > > >  scripts/Makefile.lib | 7 ++++---\n> > > > > > >  1 file changed, 4 insertions(+), 3 deletions(-)\n> > > > > >\n> > > > > > This is generic kbuild infrastructure now. Is there a fix we're missing\n> > > > > > from upstream, a change we haven't pulled in yet (as we need to keep\n> > > > > > syncing upwards) or a problem upstream too? Thanks!\n> > > > >\n> > > > > Linux does this with DTB files in quiet_cmd_wrap_S_dtb:\n> > > > >\n> > > > > echo '.incbin \"$<\" ';\n> > > > >\n> > > > > But Linux only uses generated files in the build directory, never\n> > > > > actual source files. The font/splash/EFI .incbin rules are U-Boot\n> > > > > additions that aren't in the upstream kbuild. So Linux doesn't have\n> > > > > this problem.\n> > > >\n> > > > Shouldn't we be generating these files in to the build directory too?\n> > >\n> > > These are actually source files, e.g.\n> > > drivers/video/fonts/nimbus_sans_l_regular.ttf\n> >\n> > So, the first thing then is that S_ttf is a local U-Boot rule. Lets\n> > start by moving this out of scripts/Makefile.lib to\n> > scripts/Makefile.lib-u-boot as that will make future re-sync work easier\n> > (and is something we've talked about in the re-sync threads, splitting\n> > U-Boot specific stuff out to new files). Then 2/2 of that series can be\n> > this change, thanks.\n> \n> Almost, but I still need the a_flags change.\n\nThink a bit on how to solve that without touching the files that we\nreally want to have no delta with upstream on please. It's 5 files,\nadding AFLAGS_foo.o += ... to the fonts Makefile and a note doesn't seem\nbad and reduces the chances of the a_flags part being lost in a future\nresync to zero.","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=konsulko.com header.i=@konsulko.com header.a=rsa-sha256\n header.s=google header.b=gDU43POS;\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=konsulko.com","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=konsulko.com header.i=@konsulko.com\n header.b=\"gDU43POS\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=konsulko.com","phobos.denx.de;\n spf=pass smtp.mailfrom=trini@konsulko.com"],"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 4fgyJr6Wj1z1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 06:53:48 +1100 (AEDT)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id C376F83DA6;\n\tWed, 25 Mar 2026 20:53:45 +0100 (CET)","by phobos.denx.de (Postfix, from userid 109)\n id 15BA283F6D; Wed, 25 Mar 2026 20:53:44 +0100 (CET)","from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com\n [IPv6:2607:f8b0:4864:20::32a])\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 D531283A91\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 20:53:41 +0100 (CET)","by mail-ot1-x32a.google.com with SMTP id\n 46e09a7af769-7d8b2703f37so166583a34.1\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 12:53:41 -0700 (PDT)","from bill-the-cat (fixed-189-203-97-235.totalplay.net.\n [189.203.97.235]) by smtp.gmail.com with ESMTPSA id\n 46e09a7af769-7d9e71f5ab2sm480687a34.18.2026.03.25.12.53.39\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 25 Mar 2026 12:53:39 -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,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=konsulko.com; s=google; t=1774468420; x=1775073220; darn=lists.denx.de;\n h=in-reply-to:content-disposition:mime-version:references:message-id\n :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to;\n bh=JUhfvVooYjZR+hDYLYGquvPoI3t7JF3lJVJwOQYZFKs=;\n b=gDU43POSlZgAKk3nKUaiJv+gpOspSWOKKtowBMGFszgnQf0jSIuZ6I+8L4zZk97vEZ\n ysvQ+/+mvu34keP3mVeQpQSqBZJBomABO7BPTkzvis5Nl/UQjzITiaRHObNeNaGT5jeQ\n K9IU+8KcP4GZZ1Zwv+sJhdO3RvTHXLIVkmUrQ=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774468420; x=1775073220;\n h=in-reply-to:content-disposition:mime-version:references:message-id\n :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=JUhfvVooYjZR+hDYLYGquvPoI3t7JF3lJVJwOQYZFKs=;\n b=n1SDAX4cDxDaTEtoa8RXQS6qeEtkwoE3YyJrqqo27df2YziScF4u+y3jv1ju/pcf8X\n TRDF0x0IEmuQR2uksRgPhOUy82KuXcqSPgf2+6++BbEL/LIn2zGgMd4t+4RiEeheqMzo\n LNMrQiV9ICezPNbDQv+AsdjtptQ8KK1546l8UgWTrpdRAU8jUqn31+KQwWToBNQOYJnv\n KYATQ5+XsOwJiq2Rkmv99R/cpAHKxE+2grgYT/qU4+3opUY0dUeHErtP4l7w8SrbHz7y\n 4rZhgoZqU2RYtix1LvXxXdasU9cSpH2LtqHS4CiM9KtmYoiK7rYnADsPK9K9IL/u0p8l\n 1QAA==","X-Gm-Message-State":"AOJu0YzRwm7SVK35GpgkM8gE497H4j5sZrqv64fcrD967tafAuHdXVVl\n k3oZcxN4bUZaL1gK/VthArjGlQn4bhucoHPv/jgE/sv189Oo6pHsTG4ebyQ4z3SrI/M=","X-Gm-Gg":"ATEYQzyQZLftFPEj8pMMItdft+KgK2f6Ve7Epz3SH7GIzAxU1c7/G+6Q3KJS4cuRhqt\n ZADhot3u7wuhBrkuW0A+ITbXxHbjxrgPpD/jzf0FYLqwZtgahLoq/LUOgOv07QN+GT0qAXnNojf\n 1s0u8FioYXAzwyi0UUPLmnwEf+R4TugBTSuLN5v71ki9btcY5f5wK3QKECX9aeVzeCmJe2bA7Mi\n EH7fCEjKkvdZ+aBmWtzuamflzbfVAGDsQrg2sUeIHjBsBGYFRkhl5fz6ZjjPi3F07ohdc1oCdsu\n z/VgkR7xa6US/y+HcWw62mRiQvBQqlx7LOqtOP9cCEQfQqhuKratb0Q5sKTNY5wG10g8gmCK64S\n o97LCL6J/fbtUxo2ApXJtHVkUe51imi1H6aoC08ZKNptQClJP0WCxCDqtlls85H8hqWam58HE4d\n D6lb0p+PxUx3Gztu8AGEkNzos/2/HqWf/8IUjG3b49qLFibMBMH8rbewRXgtf6ANxs6wMms5ZUP\n 7adDZGaK600ANiPB7STwHyguNY6snQdvuSt5/OGCkZjUaYi","X-Received":"by 2002:a05:6830:380f:b0:7d7:f90c:5833 with SMTP id\n 46e09a7af769-7d9d69d0c5cmr2384609a34.27.1774468420515;\n Wed, 25 Mar 2026 12:53:40 -0700 (PDT)","Date":"Wed, 25 Mar 2026 13:53:37 -0600","From":"Tom Rini <trini@konsulko.com>","To":"Simon Glass <sjg@chromium.org>","Cc":"u-boot@lists.denx.de, 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>","Subject":"Re: [PATCH] kbuild: Use relative paths in generated .incbin\n directives","Message-ID":"<20260325195337.GY502704@bill-the-cat>","References":"<20260325130811.447377-1-sjg@chromium.org>\n <20260325165420.GT502704@bill-the-cat>\n <CAFLszTgZpg-anG1J5kyiYk2JJ3dDiiyvuk5AV_PO+ri_b552tA@mail.gmail.com>\n <20260325171540.GU502704@bill-the-cat>\n <CAFLszTh3NgpY1VQer2wN9-feOvM8khXaFyp+ePhTpqowGK_qrQ@mail.gmail.com>\n <20260325182619.GV502704@bill-the-cat>\n <CAFLszThCO2a1COB8kBwYfTXM65AGJEugo9MWZAjphQNuX16Y-Q@mail.gmail.com>","MIME-Version":"1.0","Content-Type":"multipart/signed; micalg=pgp-sha512;\n protocol=\"application/pgp-signature\"; boundary=\"F+jMOzaAK/fmICJV\"","Content-Disposition":"inline","In-Reply-To":"\n <CAFLszThCO2a1COB8kBwYfTXM65AGJEugo9MWZAjphQNuX16Y-Q@mail.gmail.com>","X-Clacks-Overhead":"GNU Terry Pratchett","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"}},{"id":3669664,"web_url":"http://patchwork.ozlabs.org/comment/3669664/","msgid":"<CAFLszTimy0pLBYd=my+uDafTyS9_AmhOonhSo9TBcnzJMzM_yQ@mail.gmail.com>","list_archive_url":null,"date":"2026-03-26T11:52:36","subject":"Re: [PATCH] kbuild: Use relative paths in generated .incbin\n directives","submitter":{"id":6170,"url":"http://patchwork.ozlabs.org/api/people/6170/","name":"Simon Glass","email":"sjg@chromium.org"},"content":"Hi Tom,\n\nOn Wed, 25 Mar 2026 at 13:53, Tom Rini <trini@konsulko.com> wrote:\n>\n> On Wed, Mar 25, 2026 at 01:21:54PM -0600, Simon Glass wrote:\n> > Hi Tom,\n> >\n> > On Wed, 25 Mar 2026 at 12:26, Tom Rini <trini@konsulko.com> wrote:\n> > >\n> > > On Wed, Mar 25, 2026 at 11:57:17AM -0600, Simon Glass wrote:\n> > > > Hi Tom,\n> > > >\n> > > > On Wed, 25 Mar 2026 at 11:15, Tom Rini <trini@konsulko.com> wrote:\n> > > > >\n> > > > > On Wed, Mar 25, 2026 at 11:12:00AM -0600, Simon Glass wrote:\n> > > > > > Hi Tom,\n> > > > > >\n> > > > > > On Wed, 25 Mar 2026 at 10:54, Tom Rini <trini@konsulko.com> wrote:\n> > > > > > >\n> > > > > > > On Wed, Mar 25, 2026 at 07:08:09AM -0600, Simon Glass wrote:\n> > > > > > > > The generated .S files for fonts, splash screens and EFI apps use\n> > > > > > > > .incbin with the full prerequisite path. When building with O= this\n> > > > > > > > bakes an absolute path into the .S file. If the build directory is\n> > > > > > > > later used on a different machine (e.g. in a container), the assembler\n> > > > > > > > cannot find the source file.\n> > > > > > > >\n> > > > > > > > Use $(src)/$(notdir $<) instead of $< so the .incbin directive contains\n> > > > > > > > a source-relative path like drivers/video/fonts/nimbus_sans_l_regular.ttf\n> > > > > > > > rather than an absolute one. Add -Wa,-I$(srctree) to the assembler\n> > > > > > > > flags so the assembler can resolve these paths.\n> > > > > > > >\n> > > > > > > > The DTB and DTBO rules are left unchanged since their prerequisites are\n> > > > > > > > generated files in the build directory.\n> > > > > > > >\n> > > > > > > > Signed-off-by: Simon Glass <sjg@chromium.org>\n> > > > > > > > ---\n> > > > > > > >\n> > > > > > > >  scripts/Makefile.lib | 7 ++++---\n> > > > > > > >  1 file changed, 4 insertions(+), 3 deletions(-)\n> > > > > > >\n> > > > > > > This is generic kbuild infrastructure now. Is there a fix we're missing\n> > > > > > > from upstream, a change we haven't pulled in yet (as we need to keep\n> > > > > > > syncing upwards) or a problem upstream too? Thanks!\n> > > > > >\n> > > > > > Linux does this with DTB files in quiet_cmd_wrap_S_dtb:\n> > > > > >\n> > > > > > echo '.incbin \"$<\" ';\n> > > > > >\n> > > > > > But Linux only uses generated files in the build directory, never\n> > > > > > actual source files. The font/splash/EFI .incbin rules are U-Boot\n> > > > > > additions that aren't in the upstream kbuild. So Linux doesn't have\n> > > > > > this problem.\n> > > > >\n> > > > > Shouldn't we be generating these files in to the build directory too?\n> > > >\n> > > > These are actually source files, e.g.\n> > > > drivers/video/fonts/nimbus_sans_l_regular.ttf\n> > >\n> > > So, the first thing then is that S_ttf is a local U-Boot rule. Lets\n> > > start by moving this out of scripts/Makefile.lib to\n> > > scripts/Makefile.lib-u-boot as that will make future re-sync work easier\n> > > (and is something we've talked about in the re-sync threads, splitting\n> > > U-Boot specific stuff out to new files). Then 2/2 of that series can be\n> > > this change, thanks.\n> >\n> > Almost, but I still need the a_flags change.\n>\n> Think a bit on how to solve that without touching the files that we\n> really want to have no delta with upstream on please. It's 5 files,\n> adding AFLAGS_foo.o += ... to the fonts Makefile and a note doesn't seem\n> bad and reduces the chances of the a_flags part being lost in a future\n> resync to zero.\n\nI don't like it very much, but I'll send a v2 along these lines.\n\nRegards,\nSimon","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=hRxTXlWk;\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=\"hRxTXlWk\";\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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fhMbV0Fqlz1y1x\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 22:52:54 +1100 (AEDT)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 7EB3B83E76;\n\tThu, 26 Mar 2026 12:52:51 +0100 (CET)","by phobos.denx.de (Postfix, from userid 109)\n id 79EEC83EAC; Thu, 26 Mar 2026 12:52:50 +0100 (CET)","from mail-ej1-x629.google.com (mail-ej1-x629.google.com\n [IPv6:2a00:1450:4864:20::629])\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 6940581E18\n for <u-boot@lists.denx.de>; Thu, 26 Mar 2026 12:52:48 +0100 (CET)","by mail-ej1-x629.google.com with SMTP id\n a640c23a62f3a-b982b0889d8so98275766b.2\n for <u-boot@lists.denx.de>; Thu, 26 Mar 2026 04:52:48 -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","ARC-Seal":"i=1; a=rsa-sha256; t=1774525968; cv=none;\n d=google.com; s=arc-20240605;\n b=Q5Qrnu4TJ72BV8zboFeNz/qtOv2oSpRIF48D7x0vX64+kW9oVnnKLyxGgSQkrtGiup\n mUSohLX7qyy6gT3m7GKnBIDEfBEzNzxlk+hUiApYfKMQgbqDJqEHSyrXoE5M11ezYAYi\n OsahJYfIpjmQ9ynMRYAp17QMCVbdd9UIZ0M0x4q3EUAStqVmnKohMghzGFbtG/dr2hsz\n Sthrx48ibxKOqXTRk4jTjK9E/YegaU1UMjLh1itPzrLE7sehGSHk3tPAMgg4Q3siGIFb\n qNUy80NHyCWFVbkSPznFqCbaI+03EhKYje2H2pIKN4mKiRFkxiSlt1PCnEO03SblMru0\n znMQ==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:dkim-signature;\n bh=uQTjkRn6bAiHqBdbOK7XQS/kLvhT4v67B4Jk+TeM4Co=;\n fh=2w8mYF4LuweTY133cjdJkKBJK54+rTD/AxCP+o9GCM8=;\n b=CRNlpya8T9FU3JB0m+ZX3quWIbSLGkfg8di3G7lxtyx2t9axnkPzr/kLRLaQEpoysZ\n JSB3Ybe+RT5WXwz1x/emgewxpMOtgHzNOXgEAB7pLwcf9qV3D5SqC3U9+ZHXtZgvqTQy\n sien2f1oqhHJeKHtHL/fH9gJbbPC98ABERTCuXPFbQI6RGX6Kh3QNso72Eu8syus5EKT\n mhqbRqH82EplyZndFAxt6CJihPv3891X7I8A05ueLbX5VxgcQiWB7sXzlgNgLESY0+YS\n 2316nY609zYGBWRtQ6+eNynsVFy9qhITE7haZBJk3Xx/fgm5dM2DRGruS6g5ahCmqOHm\n liWw==; darn=lists.denx.de","ARC-Authentication-Results":"i=1; mx.google.com; arc=none","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=chromium.org; s=google; t=1774525968; x=1775130768; darn=lists.denx.de;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:from:to:cc:subject:date:message-id:reply-to;\n bh=uQTjkRn6bAiHqBdbOK7XQS/kLvhT4v67B4Jk+TeM4Co=;\n b=hRxTXlWkWTlODUkPmLH9aYnR4Ov77gaSx/07XDBp0cqtuyY78M8fi4jXIEtZjjpP5L\n lKbr3ViVNOz+b4gXxGYrvJlIxcODdt5KUr7dr/KnB8ZAprGqR2AVQ/mY+kCTroWOD6lT\n lpCxQSX+FkD64q1FXNB20BDxCqveB/cY/eOVI=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774525968; x=1775130768;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=uQTjkRn6bAiHqBdbOK7XQS/kLvhT4v67B4Jk+TeM4Co=;\n b=l9W9IPsYrPsVkbQkVzABxKYkOJ1v5YSfTpqZjmSIzSYvjeUEhGz/NyxnF5TnrmLV2g\n LwuZ7wRcKTTeBosMy6m1DBcPxcdU10v8BEYS84YNNOnwGvJBbbW8vuiMliYZp4rQ28RM\n Hmhm4Nf310NUzleSq/tFIfQd1kcfW4GZTyotMfo9qD3LLQb/HyX6gbMGl9P1u22XxEpR\n lWPueqmrS/l6ul4B6C3E+SoHCwPUlyebxuVlw+R9NlwX9i7LANDAGll3JCiS7jU/w5X/\n MKx9ul6aDm3htieHc5/pgNgFKmw10W3N8WP3b5tDkxscd7nVAujxTeno3jPAzIyQH3Jw\n Ou0g==","X-Gm-Message-State":"AOJu0Yx7iAJ/LRpwWT/JlmLjTDWDPr8ryWEnyTKiYQJYCTXusaBn09EA\n J+YDxG3j13/AVqKY2k5haW2k9zidmvhNLF+Hv8fPnIdI/OjpDxgIqjKL1FsBmkRUrz3bxvgzJ5O\n RLsXvvPVLF5XjSeB+dYMjBll0nv7AS6cWQ4EC2M9S","X-Gm-Gg":"ATEYQzwa7WxYf66xKxmcZ5D/nY0QqrFLcpNBcn6hdV/BwT8qV59mItY7wuYyW6/oX4Q\n cOKrmk3nDodQF7/RyhzYzApsJ4CbDiu8nAt3Hu0S90fFa5q1ivWfi502MnWBvKkoj+Db358UOgW\n Z3MLLfFwCJw6883VtiuslikOx8NXZa4sa35Eau1e2I1eHZj0tadhEKjD/H0r4ldPmWgnizCv1pR\n Rs1pF3o+5aqA2dtSSBaUzR1BmxHv4+HDUw7us/cjFJuGjntyeeFvfp0/AeSoAf5iMfnvxgcGsPj\n nBhYP9A=","X-Received":"by 2002:a17:907:cbc5:b0:b98:82c9:d1ba with SMTP id\n a640c23a62f3a-b9a3f161d53mr499151966b.1.1774525967865; Thu, 26 Mar 2026\n 04:52:47 -0700 (PDT)","MIME-Version":"1.0","References":"<20260325130811.447377-1-sjg@chromium.org>\n <20260325165420.GT502704@bill-the-cat>\n <CAFLszTgZpg-anG1J5kyiYk2JJ3dDiiyvuk5AV_PO+ri_b552tA@mail.gmail.com>\n <20260325171540.GU502704@bill-the-cat>\n <CAFLszTh3NgpY1VQer2wN9-feOvM8khXaFyp+ePhTpqowGK_qrQ@mail.gmail.com>\n <20260325182619.GV502704@bill-the-cat>\n <CAFLszThCO2a1COB8kBwYfTXM65AGJEugo9MWZAjphQNuX16Y-Q@mail.gmail.com>\n <20260325195337.GY502704@bill-the-cat>","In-Reply-To":"<20260325195337.GY502704@bill-the-cat>","From":"Simon Glass <sjg@chromium.org>","Date":"Thu, 26 Mar 2026 05:52:36 -0600","X-Gm-Features":"AQROBzArWZSfkefDwD7-5JAEIv8CXH47Ou8Uj3nKgnH4Kqj7nC3igso1M1JJdgo","Message-ID":"\n <CAFLszTimy0pLBYd=my+uDafTyS9_AmhOonhSo9TBcnzJMzM_yQ@mail.gmail.com>","Subject":"Re: [PATCH] kbuild: Use relative paths in generated .incbin\n directives","To":"Tom Rini <trini@konsulko.com>","Cc":"u-boot@lists.denx.de, 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>","Content-Type":"text/plain; charset=\"UTF-8\"","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"}}]