Skip to content

Commit

Permalink
sw: Prevent CAR_SW_LIBS overwrite a previous definition
Browse files Browse the repository at this point in the history
  • Loading branch information
alex96295 committed Nov 1, 2023
1 parent 605c5ed commit 7a9db7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/sw.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@ $^
Expand Down

0 comments on commit 7a9db7d

Please sign in to comment.