mk: sort source files before compilation
In order to achieve reproducible builds, always use the same order when listing files for compilation. Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
This commit is contained in:
parent
f642036f3a
commit
62bc760dea
@ -67,7 +67,7 @@ endif
|
||||
# Add extra flags for base driver files (also known as shared code)
|
||||
# to disable warnings in them
|
||||
#
|
||||
BASE_DRIVER_OBJS=$(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c)))
|
||||
BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
|
||||
$(foreach obj, $(BASE_DRIVER_OBJS), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
|
||||
|
||||
VPATH += $(SRCDIR)/base
|
||||
|
@ -68,7 +68,7 @@ endif
|
||||
# Add extra flags for base driver files (also known as shared code)
|
||||
# to disable warnings in them
|
||||
#
|
||||
BASE_DRIVER_OBJS=$(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c)))
|
||||
BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
|
||||
$(foreach obj, $(BASE_DRIVER_OBJS), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
|
||||
|
||||
VPATH += $(SRCDIR)/base
|
||||
|
@ -80,7 +80,7 @@ endif
|
||||
#
|
||||
# Add extra flags for base driver source files to disable warnings in them
|
||||
#
|
||||
BASE_DRIVER_OBJS=$(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c)))
|
||||
BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
|
||||
$(foreach obj, $(BASE_DRIVER_OBJS), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
|
||||
|
||||
VPATH += $(SRCDIR)/base
|
||||
|
@ -78,7 +78,7 @@ endif
|
||||
|
||||
CFLAGS_i40e_lan_hmc.o += -Wno-error
|
||||
endif
|
||||
OBJS_BASE_DRIVER=$(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c)))
|
||||
OBJS_BASE_DRIVER=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
|
||||
$(foreach obj, $(OBJS_BASE_DRIVER), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
|
||||
|
||||
VPATH += $(SRCDIR)/base
|
||||
|
@ -87,7 +87,7 @@ endif
|
||||
# Add extra flags for base driver files (also known as shared code)
|
||||
# to disable warnings in them
|
||||
#
|
||||
BASE_DRIVER_OBJS=$(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c)))
|
||||
BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
|
||||
$(foreach obj, $(BASE_DRIVER_OBJS), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
|
||||
|
||||
VPATH += $(SRCDIR)/base
|
||||
|
@ -78,7 +78,7 @@ endif
|
||||
# to disable warnings in them
|
||||
#
|
||||
#
|
||||
BASE_DRIVER_OBJS=$(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c)))
|
||||
BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
|
||||
$(foreach obj, $(BASE_DRIVER_OBJS), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
|
||||
|
||||
VPATH += $(SRCDIR)/base
|
||||
|
@ -74,7 +74,7 @@ endif
|
||||
# List of base driver object files for which
|
||||
# special CFLAGS above should be applied
|
||||
#
|
||||
BASE_DRIVER_OBJS=$(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c)))
|
||||
BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
|
||||
$(foreach obj, $(BASE_DRIVER_OBJS), \
|
||||
$(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
|
||||
|
||||
|
@ -45,7 +45,7 @@ EXPORT_MAP := rte_pmd_thunderx_nicvf_version.map
|
||||
|
||||
LIBABIVER := 1
|
||||
|
||||
OBJS_BASE_DRIVER=$(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c)))
|
||||
OBJS_BASE_DRIVER=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
|
||||
$(foreach obj, $(OBJS_BASE_DRIVER), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
|
||||
|
||||
VPATH += $(SRCDIR)/base
|
||||
|
Loading…
Reference in New Issue
Block a user