From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by dpdk.org (Postfix) with ESMTP id B58842C02 for ; Tue, 5 Sep 2017 22:52:53 +0200 (CEST) Received: by mail-wm0-f68.google.com with SMTP id f4so1383387wmh.4 for ; Tue, 05 Sep 2017 13:52:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5zZtDtD+4nONhgfdGb9Zy3lqjfxofQJTLxgt9Z37c+Y=; b=vIBVxjJ3gxyMJj6wHbZ25DlEhE6s8HyAQb2VA1y/Y+vhWkQDnEyp+zAa2qlCz/BcOQ /fhUQ++pdQn6J12e0AH0hrX14rcdAjp6pBVxI+TMeI6Seozs4ESn0qI//2B5vMvkLNJm E9fmQDUNFyatIuCfB/EZi3hH0eF9Vh1nRuvmiDtapE5ngqajyYYRTrPj0eQwSxKZx9yE kTxqZ+KGC2GYUcEnxv+tWnUO6tN27+Dxj3bzMOKLcf6UN1tvp3Vi7zhcN/DcAnMIOPuA SbJTiWBfWBuRL9/PsOwsgs+U+T9QoC0SbomMQ9HKPahZCmZmD3PedmQ1nGE5c8tasvWk Gsdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5zZtDtD+4nONhgfdGb9Zy3lqjfxofQJTLxgt9Z37c+Y=; b=tyHx+gIgCvNwQcHu7WyJVFvkKs6wseGhBd/d/63ndt1dF0dIcKh50XY65SpDaxFEYe XipX7xXQAphmGO33pDINtgCE0U7RROSXnkpp1wnx2fbw+VoGitPQ8ysYsRg5Ut8ctQQa nXNfCZi99W5ek2fMhaEbLwAmsf2KUhGJD5ZxkdyhXgMPUXKOXCbUS7QLHStgkruyhpuJ qgIYWXVFmE1GKHoCP1vagFgI0w1oKG0TUj5fLGVU1fvwG58APPrtKaNZKkbukaLK/w3s 6DedSwlIfC8w9M6aihyOJPGAstk1RaiDvMBz4JikcZozYrl+XfdjfCUuDSuUqW1YFhwl lScg== X-Gm-Message-State: AHPjjUgKzPyDYqbwjCwItKHfq8XIEvcWJXU5OYh9VCBFB4z19QfKbLx/ lPEXDplxZS/DC5p6Ktk= X-Google-Smtp-Source: ADKCNb4NhIvCwJQYBXAMi+iR4KdFpHzLZLssHqn1TNH7unawbl+NN/aWM11iM9aVhXMiylEYMYbiyQ== X-Received: by 10.28.234.136 with SMTP id g8mr161510wmi.76.1504644773140; Tue, 05 Sep 2017 13:52:53 -0700 (PDT) Received: from localhost ([2a00:23c5:bef3:400:4a51:b7ff:fe0b:4749]) by smtp.gmail.com with ESMTPSA id f188sm1820623wme.21.2017.09.05.13.52.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Sep 2017 13:52:52 -0700 (PDT) From: luca.boccassi@gmail.com To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Luca Boccassi Date: Tue, 5 Sep 2017 21:51:57 +0100 Message-Id: <20170905205159.8606-5-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170905205159.8606-1-luca.boccassi@gmail.com> References: <20170905205159.8606-1-luca.boccassi@gmail.com> Subject: [dpdk-dev] [PATCH v7 4/6] mk: sort source files before passing them to the compiler X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Sep 2017 20:52:53 -0000 From: Luca Boccassi In order to achieve reproducible builds, always use the same order when listing files for compilation. Signed-off-by: Luca Boccassi --- drivers/net/cxgbe/Makefile | 2 +- drivers/net/e1000/Makefile | 2 +- drivers/net/fm10k/Makefile | 2 +- drivers/net/i40e/Makefile | 2 +- drivers/net/ixgbe/Makefile | 2 +- drivers/net/qede/Makefile | 2 +- drivers/net/sfc/Makefile | 2 +- drivers/net/thunderx/Makefile | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/cxgbe/Makefile b/drivers/net/cxgbe/Makefile index 7cef6279c..b4666b5af 100644 --- a/drivers/net/cxgbe/Makefile +++ b/drivers/net/cxgbe/Makefile @@ -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 diff --git a/drivers/net/e1000/Makefile b/drivers/net/e1000/Makefile index ffdf36d37..59d96bca1 100644 --- a/drivers/net/e1000/Makefile +++ b/drivers/net/e1000/Makefile @@ -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 diff --git a/drivers/net/fm10k/Makefile b/drivers/net/fm10k/Makefile index e0024f052..0bc124eb1 100644 --- a/drivers/net/fm10k/Makefile +++ b/drivers/net/fm10k/Makefile @@ -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 diff --git a/drivers/net/i40e/Makefile b/drivers/net/i40e/Makefile index 55c79a60a..8040a890e 100644 --- a/drivers/net/i40e/Makefile +++ b/drivers/net/i40e/Makefile @@ -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 diff --git a/drivers/net/ixgbe/Makefile b/drivers/net/ixgbe/Makefile index 5e57cb353..d47ce24aa 100644 --- a/drivers/net/ixgbe/Makefile +++ b/drivers/net/ixgbe/Makefile @@ -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 diff --git a/drivers/net/qede/Makefile b/drivers/net/qede/Makefile index f03441d9a..83ff95474 100644 --- a/drivers/net/qede/Makefile +++ b/drivers/net/qede/Makefile @@ -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 diff --git a/drivers/net/sfc/Makefile b/drivers/net/sfc/Makefile index 57aa963ba..8cfd14d45 100644 --- a/drivers/net/sfc/Makefile +++ b/drivers/net/sfc/Makefile @@ -71,7 +71,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))) diff --git a/drivers/net/thunderx/Makefile b/drivers/net/thunderx/Makefile index 915ae945a..a2b6caae2 100644 --- a/drivers/net/thunderx/Makefile +++ b/drivers/net/thunderx/Makefile @@ -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 -- 2.11.0