From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id E4BF52BA6 for ; Fri, 10 Jun 2016 17:09:43 +0200 (CEST) Received: by mail-wm0-f51.google.com with SMTP id n184so270847206wmn.1 for ; Fri, 10 Jun 2016 08:09:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Gt3cMRClEq4YsN7B5cCucFkSuLKLfH8SqnVZreqL5m8=; b=AdBPrYDbCrbSYK03Uhp1Toke+nyzQqeMTa2HlME11b0iFkIMS3YOPcumxfNusUx3DK jDpaJ32ItQ4LvUbZ9WbCz76LD6YtvjNEHz1k3mEUA1fvrHLBFFdlaa9Fq16II+UjbruR ZM1rG9MUf70gyncUU9Y/7/3CMUyo4iNHWKw6cWdzi4JtSZlUTeBWjFggIon6MfGS3bcs S6kSPWYG6HTKLk8oqzhTNKe1iOGRDDO5np5NQ/DwN/4EPGa9UEtRZPKgqOVKfB502NFR hmFJHxGkc7Nqnfw5uuJnDE6GYaHza45VOfYzlcg3Cn8o3al6jSZ5SUVm4NST4YgY/RKr Mfzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Gt3cMRClEq4YsN7B5cCucFkSuLKLfH8SqnVZreqL5m8=; b=Z30l/xLkAn1hbv01tM5N0l9YJdyCGlJ2ER/IjogMq6ExVyNvTpbMpvZMuvH4xVH+Ib j5kuF0BeDI6XbZpinsnafPkqbLiOGIXN5Gxc/9z/F0X+ZEjBP5N8LhLv6aV//vEBijtd NjemXoAKhNG5BoH8uFTeI1KqjF6bmClEwxzdFafhL+Cp7lJ/exNww3xuTyVpjT43r69p HWM5eK4V+znf+ON/Dug1fxh4ITBD9VtyD1+jmxU9iHSXmTnhtdsV+bi1ufXugaI33Tyl 6DCLv42iafsateu4ZkDF2QQ0cwsqLvvZP1PlMjpnJabLdk2AJvC1xBvqZnzaIeFQkBnj HlbQ== X-Gm-Message-State: ALyK8tJN4muCnTN/PhWli/WJ7RE6G5nOsp9B1/CklSJxe3HcicnSdq5S0cOpMTzCInUrLOgm X-Received: by 10.28.155.196 with SMTP id d187mr3383580wme.30.1465571383714; Fri, 10 Jun 2016 08:09:43 -0700 (PDT) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id p9sm12821560wjv.21.2016.06.10.08.09.42 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Jun 2016 08:09:43 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Cc: Bruce Richardson Date: Fri, 10 Jun 2016 17:09:32 +0200 Message-Id: <1465571372-28254-2-git-send-email-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1465571372-28254-1-git-send-email-adrien.mazarguil@6wind.com> References: <1465571372-28254-1-git-send-email-adrien.mazarguil@6wind.com> Subject: [dpdk-dev] [PATCH 2/2] mlx: regenerate autoconf file automatically X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2016 15:09:44 -0000 Mellanox PMDs must be rebuilt if a Verbs update would cause the autoconf file to differ. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/Makefile | 13 +++++++++++-- drivers/net/mlx5/Makefile | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/drivers/net/mlx4/Makefile b/drivers/net/mlx4/Makefile index 6ec33a6..ca6e483 100644 --- a/drivers/net/mlx4/Makefile +++ b/drivers/net/mlx4/Makefile @@ -99,7 +99,9 @@ ifndef V AUTOCONF_OUTPUT := >/dev/null endif -mlx4_autoconf.h: $(RTE_SDK)/scripts/auto-config-h.sh +mlx4_autoconf.h.new: FORCE + +mlx4_autoconf.h.new: $(RTE_SDK)/scripts/auto-config-h.sh $Q $(RM) -f -- '$@' $Q sh -- '$<' '$@' \ RSS_SUPPORT \ @@ -119,9 +121,16 @@ mlx4_autoconf.h: $(RTE_SDK)/scripts/auto-config-h.sh enum IBV_EXP_QP_BURST_CREATE_DISABLE_ETH_LOOPBACK \ $(AUTOCONF_OUTPUT) +# Create mlx4_autoconf.h or update it in case it differs from the new one. + +mlx4_autoconf.h: mlx4_autoconf.h.new + $Q [ -f '$@' ] && \ + cmp '$<' '$@' $(AUTOCONF_OUTPUT) || \ + mv '$<' '$@' + mlx4.o: mlx4_autoconf.h clean_mlx4: FORCE - $Q rm -f -- mlx4_autoconf.h + $Q rm -f -- mlx4_autoconf.h mlx4_autoconf.h.new clean: clean_mlx4 diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile index a25649b..81061fe 100644 --- a/drivers/net/mlx5/Makefile +++ b/drivers/net/mlx5/Makefile @@ -107,7 +107,9 @@ ifndef V AUTOCONF_OUTPUT := >/dev/null endif -mlx5_autoconf.h: $(RTE_SDK)/scripts/auto-config-h.sh +mlx5_autoconf.h.new: FORCE + +mlx5_autoconf.h.new: $(RTE_SDK)/scripts/auto-config-h.sh $Q $(RM) -f -- '$@' $Q sh -- '$<' '$@' \ HAVE_EXP_QUERY_DEVICE \ @@ -148,9 +150,16 @@ mlx5_autoconf.h: $(RTE_SDK)/scripts/auto-config-h.sh enum IBV_EXP_RECEIVE_WQ_CVLAN_INSERTION \ $(AUTOCONF_OUTPUT) +# Create mlx5_autoconf.h or update it in case it differs from the new one. + +mlx5_autoconf.h: mlx5_autoconf.h.new + $Q [ -f '$@' ] && \ + cmp '$<' '$@' $(AUTOCONF_OUTPUT) || \ + mv '$<' '$@' + $(SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD):.c=.o): mlx5_autoconf.h clean_mlx5: FORCE - $Q rm -f -- mlx5_autoconf.h + $Q rm -f -- mlx5_autoconf.h mlx5_autoconf.h.new clean: clean_mlx5 -- 2.1.4