Skip to content

standard make install

Thomas Monjalon dpdk-dev 3 versions – Applied

Status from this message: Applied

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest13 patches 6 repliesApplied
  2. v212 patches 11 repliesSuperseded
  3. v110 patches 12 repliesSuperseded

Changes in v3 from the cover letter

- fix install in a clean dir
- take responsibility in MAINTAINERS

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/13mk: remove testalldoc/guides/prog_guide/dev_kit_root_make_help.rst mk/rte.sdkroot.mk mk/rte.sdktestall.mk+0 -740 replies
2/13mk: remove multi-target installdoc/build-sdk-quick.txt doc/guides/linux_gsg/build_dpdk.rst doc/guides/prog_guide/dev_kit_root_make_help.rst +3 more+32 -970 replies
3/13mk: move installation procedure in install rulemk/rte.sdkbuild.mk mk/rte.sdkinstall.mk mk/rte.sdkroot.mk+19 -190 replies
4/13mk: install a standard cutomizable treedoc/build-sdk-quick.txt doc/guides/prog_guide/dev_kit_root_make_help.rst mk/internal/rte.extvars.mk +2 more+58 -220 replies
5/13mk: introduce new install syntaxdoc/build-sdk-quick.txt doc/guides/prog_guide/dev_kit_root_make_help.rst mk/rte.sdkinstall.mk+17 -60 replies
6/13mk: split install rulemk/rte.sdkinstall.mk mk/rte.sdkroot.mk+14 -62 replies
7/13mk: install kernel modulesmk/rte.sdkinstall.mk+17 -00 replies
8/13mk: install binding tool in sbin directorymk/rte.sdkinstall.mk+4 -00 replies
9/13mk: install docmk/rte.sdkinstall.mk+14 -00 replies
10/13mk: install examplesmk/rte.sdkinstall.mk+1 -00 replies
11/13app/proc_info: rename binary with prefixapp/proc_info/Makefile doc/guides/sample_app_ug/proc_info.rst mk/rte.sdktest.mk+7 -70 replies
12/13pkg: update RPM with standard installpkg/dpdk.spec+16 -430 replies
13/13maintainers: take responsibility for build systemMAINTAINERS+1 -11 reply

Reviews trailers per patch

All 13 patches have a Reviewed-by or Acked-by.

PatchPanu MatilainenOlivier Matz
1/13A-b
2/13A-b
3/13A-b
4/13A-b
5/13A-b
6/13A-b A-b
7/13A-b
8/13A-b
9/13A-b
10/13A-b
11/13A-b
12/13A-b
13/13A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/13] standard make install

Following the recent discussions, this is a proposal to have a standard installation process while keeping compatibility with most of the old behaviours.

v2 changes:
- fix default build dir
- RTE_TARGET subdir in $(sdkdir).
- better kerneldir defaults
- fix dpdk_nic_bind symlink
- always install doc if generated
- doc
- pkg/dpdk.spec

v3 changes:
- fix install in a clean dir
- take responsibility in MAINTAINERS

More details below and in the commit messages.

These variables can be overriden:

kerneldir ?= /lib/modules/$(shell uname -r)/extra/dpdk
prefix ?= /usr/local
exec_prefix ?= $(prefix)

bindir      ?= $(exec_prefix)/bin
sbindir     ?= $(exec_prefix)/sbin
libdir      ?= $(exec_prefix)/lib
includedir  ?=      $(prefix)/include/dpdk
datarootdir ?=      $(prefix)/share
docdir      ?=       $(datarootdir)/doc/dpdk
datadir     ?=       $(datarootdir)/dpdk
sdkdir      ?=                $(datadir)
targetdir   ?=                $(datadir)/$(RTE_TARGET)

All paths are prefixed with $(DESTDIR)

One rule install = install-runtime install-kmod install-sdk install-doc

--------

System-wise install example with
DESTDIR=
prefix=/usr
kerneldir=/lib/modules/kver/extra

# make install-runtime
/usr/bin/testpmd
/usr/lib/libethdev*
/usr/lib/librte_*
/usr/sbin/dpdk_nic_bind -> /usr/share/dpdk/tools/dpdk_nic_bind.py
/usr/share/dpdk/tools/
# make install-kmod
/lib/modules/kver/extra/
# make install-sdk
/usr/include/dpdk/
/usr/share/dpdk/mk/
/usr/share/dpdk/scripts/
/usr/share/dpdk/x86_64-default-linuxapp-gcc/.config
/usr/share/dpdk/x86_64-default-linuxapp-gcc/include -> /usr/include/dpdk/
/usr/share/dpdk/x86_64-default-linuxapp-gcc/lib     -> /usr/lib/
# make install-doc
/usr/share/doc/dpdk/api/
/usr/share/doc/dpdk/guides/
/usr/share/dpdk/examples/

--------

Local install example with old (compatible) command:

# make install T=x86_64-native-linuxapp-gcc DESTDIR=install

would be equivalent to:

# make config T=x86_64-native-linuxapp-gcc 0=x86_64-native-linuxapp-gcc
# make O=x86_64-native-linuxapp-gcc
# make install O=x86_64-native-linuxapp-gcc prefix= DESTDIR=install

install/bin/testpmd
install/include/dpdk/
install/kmod/
install/lib/
install/sbin/dpdk_nic_bind -> ../share/dpdk/tools/dpdk_nic_bind.py install/share/doc/dpdk/
install/share/dpdk/examples/
install/share/dpdk/mk/
install/share/dpdk/scripts/
install/share/dpdk/tools/ install/share/dpdk/x86_64-native-linuxapp-gcc/.config install/share/dpdk/x86_64-native-linuxapp-gcc/include -> install/include/dpdk/
install/share/dpdk/x86_64-native-linuxapp-gcc/lib -> install/lib/

It should be usable to build some applications as before:

# make -C examples/helloworld RTE_SDK=$(readlink -m install) RTE_TARGET=x86_64-native-linuxapp-gcc

The RTE_SDK directory must point to install/share/dpdk with a default install.

--------

Thomas Monjalon (13):
mk: remove testall
mk: remove multi-target install
mk: move installation procedure in install rule
mk: install a standard cutomizable tree
mk: introduce new install syntax
mk: split install rule
mk: install kernel modules
mk: install binding tool in sbin directory
mk: install doc
mk: install examples
app/proc_info: rename binary with prefix
pkg: update RPM with standard install
maintainers: take responsibility for build system

 MAINTAINERS                                      |   2 +-
 app/proc_info/Makefile                           |   2 +-
 doc/build-sdk-quick.txt                          |  11 +-
 doc/guides/linux_gsg/build_dpdk.rst              |  16 ---
 doc/guides/prog_guide/dev_kit_root_make_help.rst |  28 +----
 doc/guides/sample_app_ug/proc_info.rst           |   8 +-
 mk/internal/rte.extvars.mk                       |   4 +
 mk/rte.sdkbuild.mk                               |  16 ---
 mk/rte.sdkinstall.mk                             | 150 +++++++++++++++++------
 mk/rte.sdkroot.mk                                |  11 +-
 mk/rte.sdktest.mk                                |   4 +-
 mk/rte.sdktestall.mk                             |  57 ---------
 mk/rte.vars.mk                                   |  10 +-
 pkg/dpdk.spec                                    |  59 +++------
 tools/setup.sh                                   |  31 ++---
 15 files changed, 167 insertions(+), 242 deletions(-)
 delete mode 100644 mk/rte.sdktestall.mk
Signature · 1 line
2.5.2