scripts: move to buildtools
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 <thomas.monjalon@6wind.com> Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
parent
d76a592782
commit
4ec6960aec
10
MAINTAINERS
10
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_*
|
||||
|
@ -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
|
||||
--------------------------------------------
|
||||
|
@ -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 \
|
||||
|
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user