]> git.droids-corp.org - dpdk.git/commitdiff
mk: sort headers before wildcard inclusion
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 12 Oct 2017 13:15:51 +0000 (14:15 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 12 Oct 2017 20:31:33 +0000 (22:31 +0200)
In order to achieve fully reproducible builds, always use the same
inclusion order for headers in the Makefiles.

Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
examples/ip_pipeline/Makefile
examples/multi_process/client_server_mp/mp_server/Makefile
examples/server_node_efd/server/Makefile
lib/librte_eal/common/Makefile

index dc7e0ddd7929934ae9fd918e7ebd4297426d065c..12ce0a1d53e1d381de2542984be5a9788d24282c 100644 (file)
@@ -43,7 +43,7 @@ APP = ip_pipeline
 
 VPATH += $(SRCDIR)/pipeline
 
-INC += $(wildcard *.h) $(wildcard pipeline/*.h)
+INC += $(sort $(wildcard *.h)) $(sort $(wildcard pipeline/*.h))
 
 # all source are stored in SRCS-y
 SRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) := main.c
index 5552999b5d93f92d774c82b6fc199858882b40a5..160c17b68446b0cf9ae8b2c0b8ab9791333bf489 100644 (file)
@@ -49,7 +49,7 @@ APP = mp_server
 # all source are stored in SRCS-y
 SRCS-y := main.c init.c args.c
 
-INC := $(wildcard *.h)
+INC := $(sort $(wildcard *.h))
 
 CFLAGS += $(WERROR_FLAGS) -O3
 CFLAGS += -I$(SRCDIR)/../shared
index a2f2f361b337e651558771d88e84882943a38a77..9f1fe2894923da5a16fb981045b310e93358c183 100644 (file)
@@ -49,7 +49,7 @@ APP = server
 # all source are stored in SRCS-y
 SRCS-y := main.c init.c args.c
 
-INC := $(wildcard *.h)
+INC := $(sort $(wildcard *.h))
 
 CFLAGS += $(WERROR_FLAGS) -O3
 CFLAGS += -I$(SRCDIR)/../shared
index e8fd67a27d6503c1f3c775f34c633f045b50b255..4e6baaa7238a0c8082efd5be382f1c70bce42eb9 100644 (file)
@@ -49,7 +49,7 @@ GENERIC_INC += rte_vect.h rte_pause.h rte_io.h
 
 # defined in mk/arch/$(RTE_ARCH)/rte.vars.mk
 ARCH_DIR ?= $(RTE_ARCH)
-ARCH_INC := $(notdir $(wildcard $(RTE_SDK)/lib/librte_eal/common/include/arch/$(ARCH_DIR)/*.h))
+ARCH_INC := $(sort $(notdir $(wildcard $(RTE_SDK)/lib/librte_eal/common/include/arch/$(ARCH_DIR)/*.h)))
 
 SYMLINK-$(CONFIG_RTE_LIBRTE_EAL)-include := $(addprefix include/,$(INC))
 SYMLINK-$(CONFIG_RTE_LIBRTE_EAL)-include += \