1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

LP-2 move ARM SDK install to proper place (out of the middle of the Qt stuff)

This commit is contained in:
Philippe Renon 2015-11-21 15:05:43 +01:00
parent 11f851cdcf
commit 69ee68ddfe

View File

@ -395,6 +395,33 @@ $(1)_distclean:
endef
##############################
#
# ARM SDK
#
##############################
export ARM_SDK_PREFIX := arm-none-eabi-
ARM_SDK_TOOL := gcc-arm-none-eabi
.PHONY: arm_sdk_install
arm_sdk_install: $(ARM_SDK_TOOL)_install
.PHONY: arm_sdk_clean
arm_sdk_clean: $(ARM_SDK_TOOL)_remove
.PHONY: arm_sdk_version
arm_sdk_version:
-$(V1) $(ARM_SDK_PREFIX)gcc --version | head -n1
# Template to check ARM toolchain version before building targets
define ARM_GCC_VERSION_CHECK_TEMPLATE
if ! $(ARM_SDK_PREFIX)gcc --version --specs=nano.specs >/dev/null 2>&1; then \
$(ECHO) $(MSG_NOTICE) Please install ARM toolchain 4.8 2014q1 using \'make arm_sdk_install\' && \
$(ECHO) $(MSG_NOTICE) Older ARM SDKs do not support new \'--specs=nano.specs\' option && \
exit 1; \
fi
endef
##############################
#
# Qt install template
@ -473,33 +500,6 @@ qt_sdk_clean:
endef
##############################
#
# ARM SDK
#
##############################
export ARM_SDK_PREFIX := arm-none-eabi-
ARM_SDK_TOOL := gcc-arm-none-eabi
.PHONY: arm_sdk_install
arm_sdk_install: $(ARM_SDK_TOOL)_install
.PHONY: arm_sdk_clean
arm_sdk_clean: $(ARM_SDK_TOOL)_remove
.PHONY: arm_sdk_version
arm_sdk_version:
-$(V1) $(ARM_SDK_PREFIX)gcc --version | head -n1
# Template to check ARM toolchain version before building targets
define ARM_GCC_VERSION_CHECK_TEMPLATE
if ! $(ARM_SDK_PREFIX)gcc --version --specs=nano.specs >/dev/null 2>&1; then \
$(ECHO) $(MSG_NOTICE) Please install ARM toolchain 4.8 2014q1 using \'make arm_sdk_install\' && \
$(ECHO) $(MSG_NOTICE) Older ARM SDKs do not support new \'--specs=nano.specs\' option && \
exit 1; \
fi
endef
##############################
#
# Qt SDK