Browse Source

stm32f7: drop toolchain check for m7 support.

the 2014q3 or later toolchains are now readily available, and we should
now just consider this a user problem.  This gets us out of trying to
parse compiler help output and chasing our own tail.

Fixes https://github.com/libopencm3/libopencm3/issues/965
pull/979/head
Karl Palsson 6 years ago
parent
commit
cccc1267c5
  1. 24
      lib/stm32/f7/Makefile

24
lib/stm32/f7/Makefile

@ -56,26 +56,4 @@ OBJS += usart_common_all.o usart_common_v2.o
VPATH += ../../usb:../:../../cm3:../common
VPATH += ../../ethernet
###############################################################################
# Checking CPU support in the toolchain
###############################################################################
# TODO: This check and silent skip of build should be removed, when it will be
# sure that first compatible toolchain (g-a-e 4.8 2014q3) will be sufficiently
# penetrated in majority of user stations.
define MISSING_CPU
Your toolchain doesn't support -mcpu=cortex-m7.
Please use gcc-arm-embedded 4.8 2014q3 or newer. Skipping this sub-library.
endef
ifneq ($(shell $(CC) --help=target | grep -q '\<cortex-m7\>'; echo $$?),0)
$(warning $(MISSING_CPU))
all clean:
@true
$(SRCLIBDIR)/$(LIBNAME).a:
@true
else
include ../../Makefile.include
endif
include ../../Makefile.include

Loading…
Cancel
Save