|
@ -43,19 +43,28 @@ bashcheck: |
|
|
{ $(call WARNING,"Warning",": /bin/sh is not linked to bash"); false; } |
|
|
{ $(call WARNING,"Warning",": /bin/sh is not linked to bash"); false; } |
|
|
|
|
|
|
|
|
toolcheck: bashcheck $(TOOLCHECK) |
|
|
toolcheck: bashcheck $(TOOLCHECK) |
|
|
@$(call SUCCESS,"All required tools seem to be installed.") |
|
|
@$(call SUCCESS,"toolcheck",": All required tools seem to be installed.") |
|
|
|
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
CROSSCHECK = |
|
|
|
|
|
CROSSCHECK += $(TARGET_CC) |
|
|
|
|
|
CROSSCHECK += $(TARGET_CPP) |
|
|
|
|
|
CROSSCHECK += $(TARGET_CXX) |
|
|
|
|
|
|
|
|
crosscheck: |
|
|
crosscheck: |
|
|
@if test -e $(TARGET_CC); then \
|
|
|
@for c in $(CROSSCHECK); do \
|
|
|
$(call SUCCESS,"$(TARGET_CC)",": found."); \
|
|
|
if test -e $$c; then \
|
|
|
elif test -e $(CROSS_DIR)/bin/$(TARGET_CC); then \
|
|
|
$(call SUCCESS,"$$c",": found."); \
|
|
|
$(call SUCCESS,"$(TARGET_CC)",": found in \$$(CROSS_DIR)/bin"); \
|
|
|
elif test -e $(CROSS_DIR)/bin/$$c; then \
|
|
|
elif PATH=$(PATH) type -p $(TARGET_CC) >/dev/null 2>&1; then \
|
|
|
$(call SUCCESS,"$$c",": found in \$$(CROSS_DIR)/bin"); \
|
|
|
$(call SUCCESS,"$(TARGET_CC)",": found PATH"); \
|
|
|
elif PATH=$(PATH) type -p $$c >/dev/null 2>&1; then \
|
|
|
|
|
|
$(call SUCCESS,"$$c",": found PATH"); \
|
|
|
else \
|
|
|
else \
|
|
|
$(call WARNING,"$(TARGET_CC)",": not found in \$$(CROSS_DIR)/bin or PATH"); \
|
|
|
$(call WARNING,"$$c",": not found in \$$(CROSS_DIR)/bin or PATH"); \
|
|
|
$(call WARNING,"=> please check your setup. Maybe you need to 'make crosstool'."); \
|
|
|
$(call WARNING,"=> please check your setup. Maybe you need to 'make crosstool'."); \
|
|
|
fi |
|
|
fi; \
|
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|