1 LIB1ASMSRC = arm/lib1funcs.S 2 LIB1ASMFUNCS = _thumb1_case_sqi _thumb1_case_uqi _thumb1_case_shi \ 3 _thumb1_case_uhi _thumb1_case_si _speculation_barrier 4 5 HAVE_CMSE:=$(findstring __ARM_FEATURE_CMSE,$(shell $(gcc_compile_bare) -dM -E - </dev/null)) 6 HAVE_V81M:=$(findstring armv8.1-m.main,$(gcc_compile_bare)) 7 ifeq ($(shell $(gcc_compile_bare) -E -mcmse - </dev/null >/dev/null 2>/dev/null; echo $$?),0) 8 CMSE_OPTS:=-mcmse 9 endif 10 11 ifdef HAVE_CMSE 12 ifndef HAVE_V81M 13 libgcc-objects += cmse.o cmse_nonsecure_call.o 14 15 cmse.o: $(srcdir)/config/arm/cmse.c 16 $(gcc_compile) -c $(CMSE_OPTS) $< 17 cmse_nonsecure_call.o: $(srcdir)/config/arm/cmse_nonsecure_call.S 18 $(gcc_compile) -c $< 19 endif 20 endif 21