From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wj0-f178.google.com (mail-wj0-f178.google.com [209.85.210.178]) by dpdk.org (Postfix) with ESMTP id 550C32C0A for ; Thu, 15 Dec 2016 22:59:29 +0100 (CET) Received: by mail-wj0-f178.google.com with SMTP id tk12so78498348wjb.3 for ; Thu, 15 Dec 2016 13:59:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=+4HPwNhObV2+BCWQcMYo/xOLndQ7C5fdxEk3n7R2+KY=; b=D5Et2criwiKXeznyErWsdLc4EDPwT4EUY1BvPMJyTZciQBQfJpO8MVlrR8/P0MQvns d0vuEqBICLOVIhT3/T1Hn+562kf9oh4NP4tK0i1UpDb2pmB3f7KhDCWSPH9geO6Ys2Mi 8w2Wg+8ZAky4S5IC9sXAiu9OMKnVkK2PWte002J4osKkDre51WptR3IxSJScqfU9gQlA rT/90RZMUzY4N807Ufcl8KXdIN3+jMtsxGcFbKCMl0/5u0XIpguU9Xf44skez/y87FAh 4tXiQT1dueX2qJuyxJOlmW9F2PicSjwQSyPlGPrXKtuz9rmwV/JZfIsQOhzaEvfdwtW1 0Qzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=+4HPwNhObV2+BCWQcMYo/xOLndQ7C5fdxEk3n7R2+KY=; b=ZJp/icWTE9i0LRewK1/ZUQgqUgvlJ89XvGZWo0911dwyhp2HF4DJS3W88u/7Ds5IfI MaMhwwz+8doXOBIqDLUl2Hn7RREVlRD1XaxYw0BTABaP7qMJhiSyWG+0UZ5y514i2N+z 0WstLt7KikguCy+6aHDS/FK4uWyHDVxEo99K39cl7RijF/JhRQDewCO9eRRRGwac2e1n LE5CDyVedPRuZ5XsUYZyy5YreutnL/JH5LZ/zM6F6byH+gA43j5KQOVaVvBypOnXeIn5 IO7Tg6va6zwF3DWYWR4FW8Lj8G7yF2B+V0pfUA2qPdwysbsD8/E/cmlt5YbfI4B3OIio ozEA== X-Gm-Message-State: AKaTC01yyhfQjoXvN+6+B8RAb9zNejt8EvDS/7tW+5SERTTumFBS806sSaTSM8/dOGDslnBb X-Received: by 10.194.85.165 with SMTP id i5mr3410584wjz.147.1481839168580; Thu, 15 Dec 2016 13:59:28 -0800 (PST) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id w8sm440819wmw.4.2016.12.15.13.59.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Dec 2016 13:59:27 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Thu, 15 Dec 2016 22:59:07 +0100 Message-Id: <1481839149-26684-2-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1481839149-26684-1-git-send-email-thomas.monjalon@6wind.com> References: <1481839149-26684-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH 1/3] scripts: move to buildtools 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: Thu, 15 Dec 2016 21:59:29 -0000 There is already a directory buildtools for pmdinfogen used by the build system. The scripts used in makefiles are moved here. Signed-off-by: Thomas Monjalon --- MAINTAINERS | 10 +++++----- {scripts => buildtools}/auto-config-h.sh | 0 {scripts => buildtools}/depdirs-rule.sh | 0 {scripts => buildtools}/gen-build-mk.sh | 0 {scripts => buildtools}/gen-config-h.sh | 0 {scripts => buildtools}/relpath.sh | 0 doc/guides/freebsd_gsg/build_dpdk.rst | 2 +- drivers/net/mlx4/Makefile | 2 +- drivers/net/mlx5/Makefile | 2 +- mk/internal/rte.depdirs-post.mk | 2 +- mk/internal/rte.install-post.mk | 2 +- mk/rte.sdkbuild.mk | 2 +- mk/rte.sdkconfig.mk | 8 ++++---- mk/rte.sdkinstall.mk | 4 ++-- pkg/dpdk.spec | 2 +- 15 files changed, 18 insertions(+), 18 deletions(-) rename {scripts => buildtools}/auto-config-h.sh (100%) rename {scripts => buildtools}/depdirs-rule.sh (100%) rename {scripts => buildtools}/gen-build-mk.sh (100%) rename {scripts => buildtools}/gen-config-h.sh (100%) rename {scripts => buildtools}/relpath.sh (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 26d9590..b0f5b8a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -56,11 +56,11 @@ F: Makefile F: config/ F: mk/ F: pkg/ -F: scripts/auto-config-h.sh -F: scripts/depdirs-rule.sh -F: scripts/gen-build-mk.sh -F: scripts/gen-config-h.sh -F: scripts/relpath.sh +F: buildtools/auto-config-h.sh +F: buildtools/depdirs-rule.sh +F: buildtools/gen-build-mk.sh +F: buildtools/gen-config-h.sh +F: buildtools/relpath.sh F: doc/build-sdk-quick.txt F: doc/guides/prog_guide/build_app.rst F: doc/guides/prog_guide/dev_kit_* diff --git a/scripts/auto-config-h.sh b/buildtools/auto-config-h.sh similarity index 100% rename from scripts/auto-config-h.sh rename to buildtools/auto-config-h.sh diff --git a/scripts/depdirs-rule.sh b/buildtools/depdirs-rule.sh similarity index 100% rename from scripts/depdirs-rule.sh rename to buildtools/depdirs-rule.sh diff --git a/scripts/gen-build-mk.sh b/buildtools/gen-build-mk.sh similarity index 100% rename from scripts/gen-build-mk.sh rename to buildtools/gen-build-mk.sh diff --git a/scripts/gen-config-h.sh b/buildtools/gen-config-h.sh similarity index 100% rename from scripts/gen-config-h.sh rename to buildtools/gen-config-h.sh diff --git a/scripts/relpath.sh b/buildtools/relpath.sh similarity index 100% rename from scripts/relpath.sh rename to buildtools/relpath.sh diff --git a/doc/guides/freebsd_gsg/build_dpdk.rst b/doc/guides/freebsd_gsg/build_dpdk.rst index 24a9f87..8bd9b6a 100644 --- a/doc/guides/freebsd_gsg/build_dpdk.rst +++ b/doc/guides/freebsd_gsg/build_dpdk.rst @@ -119,7 +119,7 @@ The DPDK is composed of several directories: * examples: Source code of DPDK applications -* config, tools, scripts, mk: Framework-related makefiles, scripts and configuration +* config, buildtools, mk: Framework-related makefiles, scripts and configuration Installation of the DPDK Target Environments -------------------------------------------- diff --git a/drivers/net/mlx4/Makefile b/drivers/net/mlx4/Makefile index efed953..68c5902 100644 --- a/drivers/net/mlx4/Makefile +++ b/drivers/net/mlx4/Makefile @@ -102,7 +102,7 @@ endif mlx4_autoconf.h.new: FORCE -mlx4_autoconf.h.new: $(RTE_SDK)/scripts/auto-config-h.sh +mlx4_autoconf.h.new: $(RTE_SDK)/buildtools/auto-config-h.sh $Q $(RM) -f -- '$@' $Q sh -- '$<' '$@' \ RSS_SUPPORT \ diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile index cf87f0b..18d7c00 100644 --- a/drivers/net/mlx5/Makefile +++ b/drivers/net/mlx5/Makefile @@ -104,7 +104,7 @@ endif mlx5_autoconf.h.new: FORCE -mlx5_autoconf.h.new: $(RTE_SDK)/scripts/auto-config-h.sh +mlx5_autoconf.h.new: $(RTE_SDK)/buildtools/auto-config-h.sh $Q $(RM) -f -- '$@' $Q sh -- '$<' '$@' \ HAVE_VERBS_IBV_EXP_CQ_COMPRESSED_CQE \ diff --git a/mk/internal/rte.depdirs-post.mk b/mk/internal/rte.depdirs-post.mk index fc6904d..102a369 100644 --- a/mk/internal/rte.depdirs-post.mk +++ b/mk/internal/rte.depdirs-post.mk @@ -32,7 +32,7 @@ .PHONY: depdirs depdirs: @for d in $(DEPDIRS-y); do \ - $(RTE_SDK)/scripts/depdirs-rule.sh $(S) $$d ; \ + $(RTE_SDK)/buildtools/depdirs-rule.sh $(S) $$d ; \ done .PHONY: depgraph diff --git a/mk/internal/rte.install-post.mk b/mk/internal/rte.install-post.mk index 77addee..b99e2b2 100644 --- a/mk/internal/rte.install-post.mk +++ b/mk/internal/rte.install-post.mk @@ -59,7 +59,7 @@ define symlink_rule $(addprefix $(RTE_OUTPUT)/$(1)/,$(notdir $(2))): $(2) @echo " SYMLINK-FILE $(addprefix $(1)/,$(notdir $(2)))" @[ -d $(RTE_OUTPUT)/$(1) ] || mkdir -p $(RTE_OUTPUT)/$(1) - $(Q)ln -nsf `$(RTE_SDK)/scripts/relpath.sh $$(<) $(RTE_OUTPUT)/$(1)` \ + $(Q)ln -nsf `$(RTE_SDK)/buildtools/relpath.sh $$(<) $(RTE_OUTPUT)/$(1)` \ $(RTE_OUTPUT)/$(1) endef diff --git a/mk/rte.sdkbuild.mk b/mk/rte.sdkbuild.mk index 23fcf1e..db6b983 100644 --- a/mk/rte.sdkbuild.mk +++ b/mk/rte.sdkbuild.mk @@ -67,7 +67,7 @@ clean: $(CLEANDIRS) $(RTE_OUTPUT)/lib \ $(RTE_OUTPUT)/hostlib $(RTE_OUTPUT)/kmod @[ -d $(RTE_OUTPUT)/include ] || mkdir -p $(RTE_OUTPUT)/include - @$(RTE_SDK)/scripts/gen-config-h.sh $(RTE_OUTPUT)/.config \ + @$(RTE_SDK)/buildtools/gen-config-h.sh $(RTE_OUTPUT)/.config \ > $(RTE_OUTPUT)/include/rte_config.h $(Q)$(MAKE) -f $(RTE_SDK)/GNUmakefile gcovclean @echo Clean complete diff --git a/mk/rte.sdkconfig.mk b/mk/rte.sdkconfig.mk index 5c94edf..97581c9 100644 --- a/mk/rte.sdkconfig.mk +++ b/mk/rte.sdkconfig.mk @@ -107,12 +107,12 @@ endif # generate a Makefile for this build directory # use a relative path so it will continue to work even if we move the directory -SDK_RELPATH=$(shell $(RTE_SDK)/scripts/relpath.sh $(abspath $(RTE_SRCDIR)) \ +SDK_RELPATH=$(shell $(RTE_SDK)/buildtools/relpath.sh $(abspath $(RTE_SRCDIR)) \ $(abspath $(RTE_OUTPUT))) -OUTPUT_RELPATH=$(shell $(RTE_SDK)/scripts/relpath.sh $(abspath $(RTE_OUTPUT)) \ +OUTPUT_RELPATH=$(shell $(RTE_SDK)/buildtools/relpath.sh $(abspath $(RTE_OUTPUT)) \ $(abspath $(RTE_SRCDIR))) $(RTE_OUTPUT)/Makefile: | $(RTE_OUTPUT) - $(Q)$(RTE_SDK)/scripts/gen-build-mk.sh $(SDK_RELPATH) $(OUTPUT_RELPATH) \ + $(Q)$(RTE_SDK)/buildtools/gen-build-mk.sh $(SDK_RELPATH) $(OUTPUT_RELPATH) \ > $(RTE_OUTPUT)/Makefile # clean installed files, and generate a new config header file @@ -122,7 +122,7 @@ $(RTE_OUTPUT)/include/rte_config.h: $(RTE_OUTPUT)/.config $(RTE_OUTPUT)/lib \ $(RTE_OUTPUT)/hostlib $(RTE_OUTPUT)/kmod $(RTE_OUTPUT)/build $(Q)mkdir -p $(RTE_OUTPUT)/include - $(Q)$(RTE_SDK)/scripts/gen-config-h.sh $(RTE_OUTPUT)/.config \ + $(Q)$(RTE_SDK)/buildtools/gen-config-h.sh $(RTE_OUTPUT)/.config \ > $(RTE_OUTPUT)/include/rte_config.h # generate the rte_config.h diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk index 7b0d8b5..896bc14 100644 --- a/mk/rte.sdkinstall.mk +++ b/mk/rte.sdkinstall.mk @@ -77,7 +77,7 @@ rte_mkdir = test -d $1 || mkdir -p $1 # Create the relative symbolic link $2 -> $1 # May be replaced with --relative option of ln from coreutils-8.16 -rte_symlink = ln -snf $$($(RTE_SDK)/scripts/relpath.sh $1 $(dir $2)) $2 +rte_symlink = ln -snf $$($(RTE_SDK)/buildtools/relpath.sh $1 $(dir $2)) $2 .PHONY: pre_install pre_install: @@ -156,7 +156,7 @@ install-sdk: --keep-newer-files $(Q)$(call rte_mkdir, $(DESTDIR)$(sdkdir)) $(Q)cp -a $(RTE_SDK)/mk $(DESTDIR)$(sdkdir) - $(Q)cp -a $(RTE_SDK)/scripts $(DESTDIR)$(sdkdir) + $(Q)cp -a $(RTE_SDK)/buildtools $(DESTDIR)$(sdkdir) $(Q)$(call rte_mkdir, $(DESTDIR)$(targetdir)/app) $(Q)cp -a $O/.config $(DESTDIR)$(targetdir) $(Q)cp -a $O/app/dpdk-pmdinfogen $(DESTDIR)$(targetdir)/app diff --git a/pkg/dpdk.spec b/pkg/dpdk.spec index ba2a476..d12509a 100644 --- a/pkg/dpdk.spec +++ b/pkg/dpdk.spec @@ -103,7 +103,7 @@ make install O=%{target} DESTDIR=%{buildroot} \ %files devel %{_includedir}/dpdk %{_datadir}/dpdk/mk -%{_datadir}/dpdk/scripts +%{_datadir}/dpdk/buildtools %{_datadir}/dpdk/%{target} %{_datadir}/dpdk/examples -- 2.7.0