|
@@ -446,9 +446,7 @@ define LINUX_INSTALL_HOST_TOOLS
|
|
# Installing dtc (device tree compiler) as host tool, if selected
|
|
# Installing dtc (device tree compiler) as host tool, if selected
|
|
if grep -q "CONFIG_DTC=y" $(@D)/.config; then \
|
|
if grep -q "CONFIG_DTC=y" $(@D)/.config; then \
|
|
$(INSTALL) -D -m 0755 $(@D)/scripts/dtc/dtc $(HOST_DIR)/bin/linux-dtc ; \
|
|
$(INSTALL) -D -m 0755 $(@D)/scripts/dtc/dtc $(HOST_DIR)/bin/linux-dtc ; \
|
|
- if [ ! -e $(HOST_DIR)/bin/dtc ]; then \
|
|
|
|
- ln -sf linux-dtc $(HOST_DIR)/bin/dtc ; \
|
|
|
|
- fi \
|
|
|
|
|
|
+ $(if $(BR2_PACKAGE_HOST_DTC),,ln -sf linux-dtc $(HOST_DIR)/bin/dtc;) \
|
|
fi
|
|
fi
|
|
endef
|
|
endef
|
|
|
|
|