* [Buildroot] [PATCH v4-resend] linux: install dtc (device tree compiler) as host tool if selected
@ 2012-05-15 18:18 Thomas De Schampheleire
2012-05-15 18:29 ` Thomas Petazzoni
2012-05-15 21:00 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Thomas De Schampheleire @ 2012-05-15 18:18 UTC (permalink / raw)
To: buildroot
Having dtc as a host tool can be useful for users that have a custom
boot scenario where the device tree is not embedded in the kernel.
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
---
v2: remove old parameters to GENTARGETS call, sorry.
v3: rename Config.in.host and depend on Linux (comments Arnout)
v4: no need for a separate package, just put the logic in linux.mk
(suggestion of Alexandre Pereira da Silva, thanks!)
linux/linux.mk | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/linux/linux.mk b/linux/linux.mk
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -183,6 +183,15 @@ define LINUX_INSTALL_KERNEL_IMAGE_TO_TAR
endef
endif
+
+define LINUX_INSTALL_HOST_TOOLS
+ # Installing dtc (device tree compiler) as host tool, if selected
+ if grep -q "CONFIG_DTC=y" $(@D)/.config; then \
+ $(INSTALL) -D -m 0755 $(@D)/scripts/dtc/dtc $(HOST_DIR)/usr/bin/dtc ; \
+ fi
+endef
+
+
define LINUX_INSTALL_IMAGES_CMDS
cp $(LINUX_IMAGE_PATH) $(BINARIES_DIR)
endef
@@ -197,6 +206,7 @@ define LINUX_INSTALL_TARGET_CMDS
rm -f $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)/build ; \
rm -f $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)/source ; \
fi
+ $(LINUX_INSTALL_HOST_TOOLS)
endef
include linux/linux-ext-*.mk
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v4-resend] linux: install dtc (device tree compiler) as host tool if selected
2012-05-15 18:18 [Buildroot] [PATCH v4-resend] linux: install dtc (device tree compiler) as host tool if selected Thomas De Schampheleire
@ 2012-05-15 18:29 ` Thomas Petazzoni
2012-05-15 21:00 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2012-05-15 18:29 UTC (permalink / raw)
To: buildroot
Le Tue, 15 May 2012 20:18:25 +0200,
Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> a ?crit :
> Having dtc as a host tool can be useful for users that have a custom
> boot scenario where the device tree is not embedded in the kernel.
>
> Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v4-resend] linux: install dtc (device tree compiler) as host tool if selected
2012-05-15 18:18 [Buildroot] [PATCH v4-resend] linux: install dtc (device tree compiler) as host tool if selected Thomas De Schampheleire
2012-05-15 18:29 ` Thomas Petazzoni
@ 2012-05-15 21:00 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2012-05-15 21:00 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> writes:
Thomas> Having dtc as a host tool can be useful for users that have a custom
Thomas> boot scenario where the device tree is not embedded in the kernel.
Thomas> Signed-off-by: Thomas De Schampheleire
Thomas> <thomas.de.schampheleire@gmail.com>
Committed to next, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-15 21:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-15 18:18 [Buildroot] [PATCH v4-resend] linux: install dtc (device tree compiler) as host tool if selected Thomas De Schampheleire
2012-05-15 18:29 ` Thomas Petazzoni
2012-05-15 21:00 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.