From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 08 Feb 2024 17:03:26 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rY6s1-008smb-0x for lore@lore.pengutronix.de; Thu, 08 Feb 2024 17:03:26 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rY6s2-0001ai-AB; Thu, 08 Feb 2024 17:03:26 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rY6ra-0001DT-EC; Thu, 08 Feb 2024 17:02:58 +0100 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rY6rZ-005FDX-VQ; Thu, 08 Feb 2024 17:02:57 +0100 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rY6rZ-00Dce6-30; Thu, 08 Feb 2024 17:02:57 +0100 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Thu, 8 Feb 2024 17:02:57 +0100 Message-Id: <20240208160257.3246811-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240122183341.4113189-1-christian.melki@t2data.com> References: <20240122183341.4113189-1-christian.melki@t2data.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] host-dtc: Move devicetree compiler from platform to hosttools_noprompt. X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Christian Melki Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 26c748066384b0641f6964d53704f3ccc24811a9. Michael [sent from post-receive hook] On Thu, 08 Feb 2024 17:02:57 +0100, Christian Melki wrote: > The dtc has traditionally been a part of the platform side. > It was selected with a specific version to compile various kernel dts:es. > Nowdays, target programs has started to require the libfdt in runtime. > Ie, programs like QEMU. Beside the runtime, QEMU also have a > host-variant which need host tools. > > This work preps for the QEMU upgrade by using the previous work > of target DTC to provide HOST_DTC as a normal ptxconf hosttool. > > The end result is that HOST_DTC is reachable for HOST_QEMU. > This also removes the specific version for the platform side. > > Signed-off-by: Christian Melki > Message-Id: <20240122183341.4113189-1-christian.melki@t2data.com> > Acked-by: Denis Osterland-Heim > Signed-off-by: Michael Olbrich > > diff --git a/platforms/Kconfig b/platforms/Kconfig > index d9adc4931cdd..93a36bcfe41f 100644 > --- a/platforms/Kconfig > +++ b/platforms/Kconfig > @@ -14,7 +14,6 @@ menu "architecture " > source "generated/architecture_options.in" > endmenu > source "generated/base_kernel.in" > -source "generated/devicetree.in" > source "platforms/console.in" > > menu "extra kernel " > diff --git a/platforms/host-dtc.in b/platforms/host-dtc.in > deleted file mode 100644 > index 00a2c7ffb71f..000000000000 > --- a/platforms/host-dtc.in > +++ /dev/null > @@ -1,23 +0,0 @@ > -## SECTION=devicetree > - > -menuconfig HOST_DTC > - tristate "dtc " > - select HOST_FLEX > - help > - Select this if the HOST_DTC tool is required without > - building a device tree. (It is also used for building > - U-boot FIT images) > - > -if HOST_DTC > - > -config HOST_DTC_VERSION > - string "Device tree compiler version" > - default "1.6.1" > - help > - Specify the DTC version number to be used > - > -config HOST_DTC_MD5 > - string "dtc source md5sum" > - default "380e536cdad51ec0e90c9a8c28df5aac" > - > -endif > diff --git a/rules/host-dtc.in b/rules/host-dtc.in > new file mode 100644 > index 000000000000..10c70643bdd4 > --- /dev/null > +++ b/rules/host-dtc.in > @@ -0,0 +1,6 @@ > +## SECTION=hosttools_noprompt > + > +config HOST_DTC > + tristate > + select HOST_FLEX > + default y if ALLYES > diff --git a/rules/host-dtc.make b/rules/host-dtc.make > index e1625ef9121c..130dc79a9f9f 100644 > --- a/rules/host-dtc.make > +++ b/rules/host-dtc.make > @@ -2,6 +2,7 @@ > # > # Copyright (C) 2007 by Sascha Hauer > # (C) 2010 by Michael Olbrich > +# (C) 2024 by Christian Melki > # > # For further information about the PTXdist project and license conditions > # see the README file. > @@ -12,35 +13,23 @@ > # > HOST_PACKAGES-$(PTXCONF_HOST_DTC) += host-dtc > > -# > -# Paths and names > -# > -HOST_DTC_VERSION := $(call ptx/config-version, PTXCONF_HOST_DTC) > -HOST_DTC_MD5 := $(call ptx/config-md5, PTXCONF_HOST_DTC) > -HOST_DTC := dtc-v$(HOST_DTC_VERSION) > -HOST_DTC_SUFFIX := tar.gz > -HOST_DTC_URL := https://git.kernel.org/pub/scm/utils/dtc/dtc.git/snapshot/$(HOST_DTC).$(HOST_DTC_SUFFIX) > -HOST_DTC_SOURCE := $(SRCDIR)/$(HOST_DTC).$(HOST_DTC_SUFFIX) > -HOST_DTC_DIR := $(HOST_BUILDDIR)/$(HOST_DTC) > -HOST_DTC_LICENSE := GPL-2.0-only > - > # ---------------------------------------------------------------------------- > # Prepare > # ---------------------------------------------------------------------------- > > -HOST_DTC_CONF_TOOL := NO > +HOST_DTC_CONF_TOOL := NO > > -HOST_DTC_MAKE_ENV := $(HOST_ENV) > +HOST_DTC_MAKE_ENV := \ > + $(HOST_ENV) > > -HOST_DTC_MAKE_OPT := \ > +HOST_DTC_MAKE_OPT := \ > PREFIX=/usr \ > NO_PYTHON=1 \ > NO_VALGRIND=1 \ > NO_YAML=1 > > -HOST_DTC_INSTALL_OPT := \ > +HOST_DTC_INSTALL_OPT := \ > $(HOST_DTC_MAKE_OPT) \ > - install-bin \ > - install-lib > + install > > # vim: syntax=make