linux: Make dtc install step more reliable
authorAndreas Naumann <anaumann@ultratronik.de>
Tue, 13 Nov 2018 15:50:16 +0000 (16:50 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 23 Nov 2018 21:18:57 +0000 (22:18 +0100)
commit860906ee05fad3fe503786ec7c656ea0f25851fc
tree15a15d2b5ce967d65626a57aebc8a6305777d3d7
parent1dcea42403cd1c574c4cbabece6fd9eb2fd933e5
linux: Make dtc install step more reliable

Checking for the existence of the dtc binary built by the
non-dependent dtc package may cause instable behaviour when giving more
freedom on the order of how the packages are built (parallelization).

In addidion, when moving to per-package host/target method, the check
would always trigger in the isolated host, leading to linux-dtc always
being installed as dtc.
This in turn may lead to undesired overwriting of the real host-dtc binary
when finally assembling the global host dir.

Thus rework the linux-dtc install condition to be defined by configuration
rather than compile time order.

Signed-off-by: Andreas Naumann <anaumann@ultratronik.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
linux/linux.mk