From 7a9db7d19ba9f2efe34464c2eb6d3fb8f235df7a Mon Sep 17 00:00:00 2001 From: aottaviano Date: Thu, 5 Oct 2023 18:00:03 +0200 Subject: [PATCH] sw: Prevent CAR_SW_LIBS overwrite a previous definition --- sw/sw.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/sw.mk b/sw/sw.mk index d8b9eb76..e001e686 100644 --- a/sw/sw.mk +++ b/sw/sw.mk @@ -26,7 +26,7 @@ CAR_SW_LIB_SRCS_S = $(wildcard $(CAR_SW_DIR)/lib/*.S $(CAR_SW_DIR)/lib/**/*.S) CAR_SW_LIB_SRCS_C = $(wildcard $(CAR_SW_DIR)/lib/*.c $(CAR_SW_DIR)/lib/**/*.c) CAR_SW_LIB_SRCS_O = $(CAR_SW_DEPS_SRCS:.c=.o) $(CAR_SW_LIB_SRCS_S:.S=.o) $(CAR_SW_LIB_SRCS_C:.c=.o) -CAR_SW_LIBS = $(CAR_SW_DIR)/lib/libcarfield.a +CAR_SW_LIBS += $(CAR_SW_DIR)/lib/libcarfield.a $(CAR_SW_DIR)/lib/libcarfield.a: $(CAR_SW_LIB_SRCS_O) $(CHS_SW_AR) $(CHS_SW_ARFLAGS) -rcsv $@ $^