Rebase of #1917: Update SDK to 6.2.1 2016q4 (thanks to @TheAngularity).

This commit is contained in:
Michael Keller 2017-01-26 08:56:22 +13:00
parent f2b79cde0c
commit 2070246314
3 changed files with 7 additions and 7 deletions

View File

@ -82,7 +82,7 @@ install:
- make arm_sdk_install - make arm_sdk_install
before_script: before_script:
- tools/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-gcc --version - tools/gcc-arm-none-eabi-6_2-2016q4/bin/arm-none-eabi-gcc --version
- clang --version - clang --version
- clang++ --version - clang++ --version

View File

@ -14,16 +14,16 @@
############################## ##############################
# Set up ARM (STM32) SDK # Set up ARM (STM32) SDK
ARM_SDK_DIR := $(TOOLS_DIR)/gcc-arm-none-eabi-5_4-2016q3 ARM_SDK_DIR := $(TOOLS_DIR)/gcc-arm-none-eabi-6_2-2016q4
# Checked below, Should match the output of $(shell arm-none-eabi-gcc -dumpversion) # Checked below, Should match the output of $(shell arm-none-eabi-gcc -dumpversion)
GCC_REQUIRED_VERSION ?= 5.4.1 GCC_REQUIRED_VERSION ?= 6.2.1
## arm_sdk_install : Install Arm SDK ## arm_sdk_install : Install Arm SDK
.PHONY: arm_sdk_install .PHONY: arm_sdk_install
ARM_SDK_URL_BASE := https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q3-update/+download/gcc-arm-none-eabi-5_4-2016q3-20160926 ARM_SDK_URL_BASE := https://developer.arm.com/-/media/Files/downloads/gnu-rm/6-2016q4/gcc-arm-none-eabi-6_2-2016q4-20161216
# source: https://launchpad.net/gcc-arm-embedded/5.0/ # source: https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
ifdef LINUX ifdef LINUX
ARM_SDK_URL := $(ARM_SDK_URL_BASE)-linux.tar.bz2 ARM_SDK_URL := $(ARM_SDK_URL_BASE)-linux.tar.bz2
endif endif
@ -33,7 +33,7 @@ ifdef MACOSX
endif endif
ifdef WINDOWS ifdef WINDOWS
ARM_SDK_URL := $(ARM_SDK_URL_BASE)-win32.zip ARM_SDK_URL := $(ARM_SDK_URL_BASE)-win32-zip.zip
endif endif
ARM_SDK_FILE := $(notdir $(ARM_SDK_URL)) ARM_SDK_FILE := $(notdir $(ARM_SDK_URL))

View File

@ -85,7 +85,7 @@ static inline uint8_t __basepriSetRetVal(uint8_t prio)
// ideally this would only protect memory passed as parameter (any type should work), but gcc is curently creating almost full barrier // ideally this would only protect memory passed as parameter (any type should work), but gcc is curently creating almost full barrier
// this macro can be used only ONCE PER LINE, but multiple uses per block are fine // this macro can be used only ONCE PER LINE, but multiple uses per block are fine
#if (__GNUC__ > 5) #if (__GNUC__ > 6)
#warning "Please verify that ATOMIC_BARRIER works as intended" #warning "Please verify that ATOMIC_BARRIER works as intended"
// increment version number is BARRIER works // increment version number is BARRIER works
// TODO - use flag to disable ATOMIC_BARRIER and use full barrier instead // TODO - use flag to disable ATOMIC_BARRIER and use full barrier instead