{"id":2224950,"url":"http://patchwork.ozlabs.org/api/patches/2224950/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20260420012348.400492-1-marek.vasut+renesas@mailbox.org/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","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":"<20260420012348.400492-1-marek.vasut+renesas@mailbox.org>","list_archive_url":null,"date":"2026-04-20T01:23:26","name":"kbuild: Respect CONFIG_SYS_DTC_PAD_BYTES after fdtgrep","commit_ref":null,"pull_url":null,"state":"changes-requested","archived":false,"hash":"9fdfed1bf80015de12d9fe1ed7f6e4d604326eec","submitter":{"id":85650,"url":"http://patchwork.ozlabs.org/api/people/85650/?format=json","name":"Marek Vasut","email":"marek.vasut+renesas@mailbox.org"},"delegate":{"id":1699,"url":"http://patchwork.ozlabs.org/api/users/1699/?format=json","username":"marex","first_name":"Marek","last_name":"Vasut","email":"marek.vasut@gmail.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20260420012348.400492-1-marek.vasut+renesas@mailbox.org/mbox/","series":[{"id":500538,"url":"http://patchwork.ozlabs.org/api/series/500538/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=500538","date":"2026-04-20T01:23:26","name":"kbuild: Respect CONFIG_SYS_DTC_PAD_BYTES after fdtgrep","version":1,"mbox":"http://patchwork.ozlabs.org/series/500538/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2224950/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2224950/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=mailbox.org header.i=@mailbox.org header.a=rsa-sha256\n header.s=mail20150812 header.b=JHVbr7Lt;\n\tdkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org\n header.a=rsa-sha256 header.s=mail20150812 header.b=S9wsuu4k;\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=reject dis=none) header.from=mailbox.org","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (2048-bit key;\n secure) header.d=mailbox.org header.i=@mailbox.org header.b=\"JHVbr7Lt\";\n\tdkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org\n header.b=\"S9wsuu4k\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=mailbox.org","phobos.denx.de;\n spf=pass smtp.mailfrom=marek.vasut+renesas@mailbox.org"],"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 4fzSSJ53Qpz1yGt\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 20 Apr 2026 11:24:00 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 9B9CC84286;\n\tMon, 20 Apr 2026 03:23:58 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id C5692842B7; Mon, 20 Apr 2026 03:23:57 +0200 (CEST)","from mout-p-202.mailbox.org (mout-p-202.mailbox.org\n [IPv6:2001:67c:2050:0:465::202])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id E180D80433\n for <u-boot@lists.denx.de>; Mon, 20 Apr 2026 03:23:55 +0200 (CEST)","from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4fzSSC3YGdz9tlP;\n Mon, 20 Apr 2026 03:23:55 +0200 (CEST)"],"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_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2","DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;\n s=mail20150812; t=1776648235;\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 bh=/jZbCz8pkzYe8pvgBOQePmBJbCGJhIDXaMxzibPdXGo=;\n b=JHVbr7LtxEG//Erase3iz+Hv1zPuC9jDcSNGi1MWUBLbRgXB4xmduQ9Ux8hHC/Ps87b/Vx\n KSskr7t4NrOxvuLmFt7cr/v0BPSY6JEmjTHKvp8LRGbdgZQj9Ug+7K7vaf5c96zv7rwS2t\n BuNeyKhGIn+95MJO7AvT6qBCJWL2km3n62FeTYm0a5OAD+2+dWBNe8tg3cqHeeFDrcrnXP\n uIQlKeiS1ZhcQPFk4LbAdbw0S7Nwm2f/2nXSgovnqW/A4QhMeqsjajOmP5LFaT0xnts5Qf\n sxDkxkaMl/y1PERjTDxZUN8KIfegGkk6NZQIgUlobgly7FVf3LYnMhcNLK++Kg==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;\n s=mail20150812; t=1776648234;\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 bh=/jZbCz8pkzYe8pvgBOQePmBJbCGJhIDXaMxzibPdXGo=;\n b=S9wsuu4ksg3y8XjXYJutCyAp5CHpBBqGddXwUMd3ErrL794NOeaWTfXkzjbizgTdxwX5hp\n ryjOe/7aIy/zMF19nFnSrfMwdASJE3zbR5BmHTsqBmyX989zHWyR6A5fAUezqaM/P23LbN\n ZEHHaXY26QQ2GrFBuEzdN2B8mrgNJF+GM5CTgf/NMDuRCugfWzXkhGkARM1N+pFADXAZc5\n PWgJvaYS7XricuULM21FCNWMJlKU6eoNIYe7K63bikNu9lHcPudAlWmAwKtfYt9HSSWj1h\n bQ7ZTwPKoRHKKJBr283OvvcHd/LftLrCQs3rEmN8Q3fmCeQFcFwLVy7qG3/R4w=="],"From":"Marek Vasut <marek.vasut+renesas@mailbox.org>","To":"u-boot@lists.denx.de","Cc":"Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Adriano Cordova <adrianox@gmail.com>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Peter Robinson <pbrobinson@gmail.com>,\n Quentin Schulz <quentin.schulz@cherry.de>,\n Sughosh Ganu <sughosh.ganu@arm.com>, Tom Rini <trini@konsulko.com>","Subject":"[PATCH] kbuild: Respect CONFIG_SYS_DTC_PAD_BYTES after fdtgrep","Date":"Mon, 20 Apr 2026 03:23:26 +0200","Message-ID":"<20260420012348.400492-1-marek.vasut+renesas@mailbox.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-MBO-RS-META":"xturz89g1fg77yqr45zqog6riqfez9nx","X-MBO-RS-ID":"b3c85ea9681649db3c5","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 fdtgrep command will reduce the DT to minimum size, thus eliminating\nthe extra padding configured via CONFIG_SYS_DTC_PAD_BYTES. Reinstate the\nextra padding by running the output DTB from fdtgrep through DTC with the\n-p CONFIG_SYS_DTC_PAD_BYTES flag again in case CONFIG_SYS_DTC_PAD_BYTES\nis not zero.\n\nSigned-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>\n---\nCc: Adriano Cordova <adrianox@gmail.com>\nCc: Ilias Apalodimas <ilias.apalodimas@linaro.org>\nCc: Peter Robinson <pbrobinson@gmail.com>\nCc: Quentin Schulz <quentin.schulz@cherry.de>\nCc: Sughosh Ganu <sughosh.ganu@arm.com>\nCc: Tom Rini <trini@konsulko.com>\nCc: u-boot@lists.denx.de\n---\n scripts/Makefile.lib | 7 +++++++\n 1 file changed, 7 insertions(+)","diff":"diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib\nindex 7386353e0cc..443d6cd09cf 100644\n--- a/scripts/Makefile.lib\n+++ b/scripts/Makefile.lib\n@@ -806,9 +806,16 @@ quiet_cmd_fdtgrep = FDTGREP $@\n # ---------------------------------------------------------------------------\n # Pass the original device tree file through fdtgrep. This removes various\n # unused properties. The output is typically a smaller device tree file.\n+ifeq ($(CONFIG_SYS_DTC_PAD_BYTES),0)\n quiet_cmd_fdt_rm_props = FDTGREP $@\n \tcmd_fdt_rm_props = cat $< | $(objtree)/tools/fdtgrep -r -O dtb - -o $@ \\\n \t\t\t$(addprefix -P ,$(subst $\\\",,$(CONFIG_OF_REMOVE_PROPS)))\n+else\n+quiet_cmd_fdt_rm_props = FDTGREP $@\n+\tcmd_fdt_rm_props = cat $< | $(objtree)/tools/fdtgrep -r -O dtb - \\\n+\t\t\t$(addprefix -P ,$(subst $\\\",,$(CONFIG_OF_REMOVE_PROPS))) | \\\n+\t\t\t$(DTC) -I dtb -O dtb $(DTC_FLAGS) -p $(CONFIG_SYS_DTC_PAD_BYTES) -o $@\n+endif\n \n # ASM offsets\n # ---------------------------------------------------------------------------\n","prefixes":[]}