From efce2ae892d0a1016d2d57cc5c9b33c54cb8b473 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Sun, 19 Apr 2020 17:36:44 +0200 Subject: [PATCH] Do not compile jtagtap and swdptap when not needed. --- src/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 35ec8f2..ecb6c19 100644 --- a/src/Makefile +++ b/src/Makefile @@ -33,7 +33,6 @@ SRC = \ hex_utils.c \ jtag_devs.c \ jtag_scan.c \ - jtagtap.c \ lmi.c \ lpc_common.c \ lpc11xx.c \ @@ -57,7 +56,6 @@ SRC = \ stm32h7.c \ stm32l0.c \ stm32l4.c \ - swdptap.c \ target.c \ include $(PLATFORM_DIR)/Makefile.inc @@ -81,6 +79,7 @@ endif ifdef PC_HOSTED CFLAGS += -DPC_HOSTED=1 else +SRC += swdptap.c jtagtap.c CFLAGS += -DPC_HOSTED=0 VPATH += platforms/common CFLAGS += -Iplatforms/common