kumquat-buildroot/linux
Thomas De Schampheleire 690ed04845 linux: provide symlink dtc->linux-dtc is there is no dtc yet
Commit ab74e09eb4 renamed the dtc host tool
provided by linux to linux-dtc to avoid clashes with the dtc host tool
provided by host-dtc.

However, external scripting may well rely on the existence of a device tree
compiler as $(HOST_DIR)/usr/bin/dtc, regardless of its source. Changing
these external scripts to use linux-dtc means that the scripts need to be
aware of the buildroot release they are working with, which is not very
nice.

Add a symlink dtc->linux-dtc when no $(HOST_DIR)/usr/bin/dtc is present.
When host-dtc is not enabled, the end result will be dtc and
linux-dtc representing the same thing.
When host-dtc is enabled, either it is build before linux and no symlink
is created at any time, or it is build after linux, and the 'install'
command in host-dtc will overwrite the symlink with a proper dtc. In both
cases, the end result will be dtc and linux-dtc representing a different
thing.

Cc: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-05-31 22:40:34 +02:00
..
0001-timeconst.pl-Eliminate-Perl-warning.patch.conditional linux: add conditional patch for timeconst.pl 2016-02-10 08:12:57 +01:00
Config.ext.in linux-ext: add fbtft hint for linux kernel >= v4.0 2015-09-27 23:19:37 +02:00
Config.in linux: bump default to version 4.6 2016-05-16 21:19:29 +02:00
Config.tools.in linux: build and install kernel selftests 2016-03-20 22:04:47 +01:00
linux-ext-fbtft.mk linux: fix fbtft kernel extension 2015-04-09 23:26:16 +02:00
linux-ext-rtai.mk rtai: remove option BR2_LINUX_KERNEL_EXT_RTAI_PATCH 2015-04-22 22:12:15 +02:00
linux-ext-xenomai.mk linux: migrate extensions to use the new infrastructure 2015-04-09 23:00:01 +02:00
linux-tool-cpupower.mk linux-tools: add cpupower 2015-07-14 23:22:58 +02:00
linux-tool-perf.mk linux/perf: conditionally enable support for gz/xz compression 2016-03-19 14:38:14 +01:00
linux-tool-selftests.mk linux: build and install kernel selftests 2016-03-20 22:04:47 +01:00
linux.mk linux: provide symlink dtc->linux-dtc is there is no dtc yet 2016-05-31 22:40:34 +02:00