uboot: fix build for older uboot source trees
authorStefan Becker <chemobejk@gmail.com>
Mon, 12 Mar 2018 12:34:09 +0000 (14:34 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 12 Mar 2018 22:50:17 +0000 (23:50 +0100)
commitf437bf547ca44849db4578c31707afdd96b85018
tree0895dc027ee96e1a626ec93ebf35315bf44ae6ed
parent03b5b444f155ead9c73c2ed2596948de671c5fb9
uboot: fix build for older uboot source trees

The change in commit bf733342324b414a1142b57781504111f81c97ea only works
for newer uboot source trees. Add a check that scripts/dtc/libfdt
directory exists before making this change.

[Peter: add comment explaining why]
Signed-off-by: Stefan Becker <chemobejk@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
boot/uboot/uboot.mk