package/dtc: fix build without libyaml
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 13 Aug 2019 18:02:25 +0000 (20:02 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 13 Aug 2019 19:39:00 +0000 (21:39 +0200)
commite43d9072aa9c2c2d69969502da2919e58809da39
tree5804bb53ed94840317a146b6d766b8f5da77df91
parent9741de846678a795a7558affeb817e37f50b8750
package/dtc: fix build without libyaml

- Pass NO_YAML=1 to make when libyaml is disabled
- Move BR2_PACKAGE_LIBYAML block outside
  BR2_PACKAGE_DTC_PROGRAMS block to avoid duplicating NO_YAML=1 even if
  libyaml is only used / needed with dtc program

Fixes:
 - http://autobuild.buildroot.org/results/68a1ba8d615951931567bc8a409c1d16624c902b

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/dtc/dtc.mk