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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A32C4C433EF for ; Fri, 15 Oct 2021 00:53:52 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0C57061040 for ; Fri, 15 Oct 2021 00:53:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0C57061040 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 25EF2836CB; Fri, 15 Oct 2021 02:53:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="iWiw77OM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BB6F583774; Fri, 15 Oct 2021 02:53:47 +0200 (CEST) Received: from mail-ua1-x92a.google.com (mail-ua1-x92a.google.com [IPv6:2607:f8b0:4864:20::92a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6218883434 for ; Fri, 15 Oct 2021 02:53:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-ua1-x92a.google.com with SMTP id q13so14941942uaq.2 for ; Thu, 14 Oct 2021 17:53:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=7EU1yKh4ukXJzbONSqUWED7cfWVmJzA774vziD956Vo=; b=iWiw77OM+cKhv/G2SiutlivVvvKx2PTMqqNcLompa6UsWWt35j26JptGFK3vMlnGxL EXiY8Bfx+9pQI0KX9H+eY1OXHHnWv032IgtTAzV7Sr7ddp1kVpJ77bbV7OSiqRG8H+dh 4xkO/dRdNucSScrtFY7WBNWhJ6BEe7WryXnYs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=7EU1yKh4ukXJzbONSqUWED7cfWVmJzA774vziD956Vo=; b=VbZ5+w0TT+dM8fIL1eEi8RHPc5q28/YD7hCsJRhYblmdf9Ga9iVxuUp/cZMz/RsS+R M5lFgADUbMmOe0itM1zYlkQnB1VA3yy3W8GXfA/jWM985mITWWHNeZE1I1w1ik2tEqxx sYTB+026b8hh71uINUvd6ATP2I3LRbb3FUHQf0tTb13KSIlJtJUL2JrkakLJ1q/sKKYp vdisLBbthQOGoy2IfHOHOG8tSgzsSAKuD9K3fZcpzuL03RdBJj9NrmZldMFPicCtmdIb 41gNKap4QycwjcesssiIDsvnvoTCEPqfLo11jtukEvzfnfbkczicZALBBDj8h1mZvGBK l4NQ== X-Gm-Message-State: AOAM533t6dIfvbtQrcVqwMeo9bNB1jwPL8kRdAQhEIWXQNMaXjlqR/xr M9zUcVhgh0E6orTPInW5KTPlQJYsmrpBURPN9sbOoMN2QSCuFg== X-Google-Smtp-Source: ABdhPJxw/r6sax7slegVtiKdoWdpTLq0w1RVlR3/sadJAgne4DQ1ZgEuv8vJIXIjGLnSKTvp6iKVV2OVQ3AwBsuVsnw= X-Received: by 2002:a67:c30b:: with SMTP id r11mr11796579vsj.20.1634259221826; Thu, 14 Oct 2021 17:53:41 -0700 (PDT) MIME-Version: 1.0 References: <33C786A9-51ED-4820-ABAF-5A33AA6651B3@benettiengineering.com> In-Reply-To: <33C786A9-51ED-4820-ABAF-5A33AA6651B3@benettiengineering.com> From: Simon Glass Date: Thu, 14 Oct 2021 18:53:30 -0600 Message-ID: Subject: Re: External dts building To: Giulio Benetti Cc: Tom Rini , U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi Giulio, On Thu, 14 Oct 2021 at 15:12, Giulio Benetti wrote: > > Hi Simon, > > Il giorno 14 ott 2021, alle ore 22:43, Simon Glass ha = scritto: > > =EF=BB=BFHi Giulio, > > On Thu, 14 Oct 2021 at 13:23, Giulio Benetti > wrote: > > > Hi Simon, > > > Il giorno 14 ott 2021, alle ore 20:24, Simon Glass ha = scritto: > > > =EF=BB=BFHi, > > > On Thu, 14 Oct 2021 at 07:46, Tom Rini wrote: > > > On Thu, Oct 14, 2021 at 02:53:30AM +0200, Giulio Benetti wrote: > > > Hello All, > > > is there a way to pass a dts file without touching the arch/arm/boot/dts/= Makefile? > > > On Buildroot we support the possibility to pass an external dts by copyin= g it to the uboot sources to > > be built but since uboot version 2020.01 it doesn=E2=80=99t work anymore. > > > So I=E2=80=99ve proposed a patch to prepend the dts file in the Makefile = above, but this has drawbacks, like we reconfigure(it keeps adding files ev= ery time). > > > So I ask you, is there a more canonical way already to achieve this? > > > Not exactly, and it's something we're very much actively discussing > > right now. > > > Are you using 'make DEVICE_TREE=3Dxxx' ? > > > Yes but it doesn=E2=80=99t work if you don=E2=80=99t add an entry into ar= ch/arm/dts/Makefile > > Before version 2020.01 worked, but not after it. > > > What board are you building? > > > A20-OLinuXino-Lime_defconfig for but without CONFIG_DEFAULT_DEVICE_TREE u= ndefined, > so if you try to pass DEVICE_TREE=3D pointing to an external .dts file co= pied to arch/arm/dts/ make doesn=E2=80=99t find the entry in Makefile and i= t can=E2=80=99t build it. > > This is useful in build systems like Buildroot where you can provide an e= xternal defconfig as well as an external .dts file. > > So here the solution I see is to create an entry in arch/arm/dts/Makefile= on the top of the file afte copying the .dts file we want to build. > But on Buildroot they=E2=80=99ve pointed me to ask upstream(here) if ther= e=E2=80=99s a more canonical way or to work together to achieve the goal: > > https://patchwork.ozlabs.org/project/buildroot/patch/20210209201303.19509= 3-1-giulio.benetti@benettiengineering.com/ How about not disabling CONFIG_DEFAULT_DEVICE_TREE ? That should work OK. Regards, Simon > > Sorry if this e-mail is html but I=E2=80=99m on mobile :-/ > > Best regards > Giulio Benetti > > > Regards, > Simon