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