From 10f1a2482e60a436c72576cdd12d9e9a0b8529cb Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 20 Jun 2024 18:17:55 +0200 Subject: [PATCH] Ignore and clean generated assembly Signed-off-by: Gilles Peskine --- .gitignore | 1 + library/Makefile | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 6068cbca76..2917cfbef9 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,7 @@ massif-* # Unix-like build artifacts: *.o +*.s # MSVC build artifacts: *.exe diff --git a/library/Makefile b/library/Makefile index c2e4a2cab7..304eeb657b 100644 --- a/library/Makefile +++ b/library/Makefile @@ -400,10 +400,11 @@ $(TF_PSA_CRYPTO_CORE_PATH)/psa_crypto.o:$(TF_PSA_CRYPTO_CORE_PATH)/psa_crypto_dr clean: ifndef WINDOWS - rm -f *.o libmbed* - rm -f $(OBJS_CRYPTO) + rm -f *.o *.s libmbed* + rm -f $(OBJS_CRYPTO) $(OBJS_CRYPTO:.o=.s) else if exist *.o del /Q /F *.o + if exist *.s del /Q /F *.s if exist libmbed* del /Q /F libmbed* del /Q /F del_errors_out_if_the_file_list_is_empty_but_not_if_a_file_does_not_exist $(subst /,\,$(OBJS_CRYPTO)) endif