From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ABA35C38A2D for ; Mon, 24 Oct 2022 22:02:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=D01873w7mXn3mSfK16GMF/XiLFaqywFs0eStI1rV8w0=; b=4J2af2A+Secz4i 8l5kTwtxr+zy9LTQymPeTbT8Jw07lww6CSlu28FGaJnN6VhX5aF10R1A8Ra4MHPg5oUveDQD8M8c/ +723CzGLnNJ9cxO3gkK/c3VXHoZ4whUkickxqkppL2f1l0MSc8YWCTNSX8UvTi/fKTRl59UK3Bybj tsuN5/LSWqzI0C3jG/IAhN75p63aTiOm4bguHsQ8zzGIm7RaNdsP0K5kvDs33/oh+6SLVfMndzPKB mXo2ioBqzpgkvo954qg11s1Aoibrs24jpUvjMafZTtZqMW2JBDH1EcvNItGPWLKw2wEroLbzYXUdm dxSwyOcM5uysgUrWVk9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1on5W6-003BKy-Tb; Mon, 24 Oct 2022 22:01:55 +0000 Received: from mail-io1-xd2b.google.com ([2607:f8b0:4864:20::d2b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1on5Vx-003BIt-B1 for linux-arm-kernel@lists.infradead.org; Mon, 24 Oct 2022 22:01:46 +0000 Received: by mail-io1-xd2b.google.com with SMTP id i65so8949461ioa.0 for ; Mon, 24 Oct 2022 15:01:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=iyIbdz/gaZrm+seGxWNfxkvgBVd5EwDcZBrPGxEZk0c=; b=fZryfZMEuHbvYz4STXBnSHbm//E5vQKBReeGURV369WyiHDicOMaYtaHcZWZU5uc+a 9O1A3sTGiAn+hCn5MxlDcYpG0HbYDR0au5+j/IIF7DH8kF0aJqcE76V/i0x5cAvht9tU 33u8D77Ty5TVaWQjC01L1zFqcfqDJryGOYFwlg0Dur9XwJXF8cxzFB6XcqLgDDGBsSD7 hxMPyzH2tE0Hzm5X9hYFnM2TmOM5jRLzO748ug48MNk0TOfFyBfEUxlTb9VLMP8GhnJ+ VJDK3KUHxzjCypDLHHFzMz1fLnNOneKnsQUAzJTEuGIIXHQWwVAuxb5w2LWhYcpH5Df+ ppAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iyIbdz/gaZrm+seGxWNfxkvgBVd5EwDcZBrPGxEZk0c=; b=oOXXRyNSkJocXbbYSfqScNx1tf4LvAq32wySPFDTQl4CWWiz7OfKq6w4Zk1viCfCS0 ycsSL3en2FFbwqlZxFPvmX4rvokLhLbXRgGwb2dJmll6JQnoV5K5pIZlTLoHc0i9Xw7F IgBt3/p2gyoOalMwic+bwavmC9iCAItqqU/oZ+gMnt1GazrKu7Hij/mS2+TWNbPf+V2Y lRbbOuVCwSr/5qvQb8wxH3owjd80Vbg4C3Hk/EYox3wox5T044p9DFCNegHXaqxAHESD /JS9MxKDpI/VVJAHJ5Y7LHjRwIrNzSPcKn3WrDpEsAm/zrSph9nq2rm37PJ1d5XETzBW CYWQ== X-Gm-Message-State: ACrzQf15/yOO/YxQ7a2eEy182vIcxuDQC7b0wdJsjQqpIp6lX+rLkBjt ynHsp0Ok1j3anN29w0yHkG8= X-Google-Smtp-Source: AMsMyM7RtBZPsjWxjk3w/MHlBxr9zvDfMgvG6pApiBy1jZhaP4bdcUktdaO2BMuAzUmhLjvV4sHFjg== X-Received: by 2002:a02:85ae:0:b0:363:84f7:566d with SMTP id d43-20020a0285ae000000b0036384f7566dmr23267382jai.125.1666648903952; Mon, 24 Oct 2022 15:01:43 -0700 (PDT) Received: from ?IPV6:2600:1700:2442:6db0:b8cc:2162:7a0f:fd4b? ([2600:1700:2442:6db0:b8cc:2162:7a0f:fd4b]) by smtp.gmail.com with ESMTPSA id y8-20020a056638038800b00363c1d1ac05sm250787jap.27.2022.10.24.15.01.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Oct 2022 15:01:43 -0700 (PDT) Message-ID: Date: Mon, 24 Oct 2022 17:01:41 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2 2/7] kbuild: Allow DTB overlays to built into .dtso.S files Content-Language: en-US To: Andrew Davis , Shawn Guo , Li Yang , Sascha Hauer , Rob Herring , Krzysztof Kozlowski , Nishanth Menon , Vignesh Raghavendra , Masahiro Yamada , Michal Marek , Nick Desaulniers , Geert Uytterhoeven Cc: devicetree@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20221024173434.32518-1-afd@ti.com> <20221024173434.32518-3-afd@ti.com> From: Frank Rowand In-Reply-To: <20221024173434.32518-3-afd@ti.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221024_150145_409713_0D7B337D X-CRM114-Status: GOOD ( 19.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 10/24/22 12:34, Andrew Davis wrote: > DTB files can be built into the kernel by converting them to assembly > files then assembling them into object files. We extend this here > for DTB overlays with the .dtso extensions. > > We change the start and end delimiting tag prefix to make it clear that > this data came from overlay files. > > [Based on patch by Frank Rowand ] > Signed-off-by: Andrew Davis > Reviewed-by: Geert Uytterhoeven > Tested-by: Geert Uytterhoeven > --- Reviewed-by: Frank Rowand Tested-by: Frank Rowand -Frank > scripts/Makefile.lib | 20 +++++++++++++++++++- > 1 file changed, 19 insertions(+), 1 deletion(-) > > diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib > index 0376a6f18bfb1..250b9fd73f6d2 100644 > --- a/scripts/Makefile.lib > +++ b/scripts/Makefile.lib > @@ -358,7 +358,7 @@ DTC_FLAGS += $(DTC_FLAGS_$(basetarget)) > DTC_FLAGS += $(if $(filter $(patsubst $(obj)/%,%,$@), $(base-dtb-y)), -@) > > # Generate an assembly file to wrap the output of the device tree compiler > -quiet_cmd_dt_S_dtb= DTB $@ > +quiet_cmd_dt_S_dtb= DTBS $@ > cmd_dt_S_dtb= \ > { \ > echo '\#include '; \ > @@ -375,6 +375,24 @@ cmd_dt_S_dtb= \ > $(obj)/%.dtb.S: $(obj)/%.dtb FORCE > $(call if_changed,dt_S_dtb) > > +# Generate an assembly file to wrap the output of the device tree compiler > +quiet_cmd_dt_S_dtbo= DTBOS $@ > +cmd_dt_S_dtbo= \ > +{ \ > + echo '\#include '; \ > + echo '.section .dtb.init.rodata,"a"'; \ > + echo '.balign STRUCT_ALIGNMENT'; \ > + echo '.global __dtbo_$(subst -,_,$(*F))_begin'; \ > + echo '__dtbo_$(subst -,_,$(*F))_begin:'; \ > + echo '.incbin "$<" '; \ > + echo '__dtbo_$(subst -,_,$(*F))_end:'; \ > + echo '.global __dtbo_$(subst -,_,$(*F))_end'; \ > + echo '.balign STRUCT_ALIGNMENT'; \ > +} > $@ > + > +$(obj)/%.dtbo.S: $(obj)/%.dtbo FORCE > + $(call if_changed,dt_S_dtbo) > + > quiet_cmd_dtc = DTC $@ > cmd_dtc = $(HOSTCC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \ > $(DTC) -o $@ -b 0 \ _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel