path: root/doc/build-sdk-quick.txt
AgeCommit message (Collapse)Author
2017-08-05doc: add tags and cscope make targets to quick helpGabriel Carrillo
Update the "make help" output to reflect the additions of make targets for tags database generation. Fixes: aafaea3d3b70 ("devtools: add tags and cscope index generation") Signed-off-by: Gabriel Carrillo <> Signed-off-by: Thomas Monjalon <>
2017-08-05mk: add sensible default target with defconfigDavid Hunt
Users can now use 'make defconfig' to generate a configuration using the most appropriate defaults for the current machine. <arch-machine-execenv-toolchain> arch taken from uname -m machine defaults to native execenv is taken from uname, Linux=linuxapp, otherwise bsdapp toolchain is taken from $CC -v to see which compiler to use Signed-off-by: David Hunt <> Acked-by: Shreyansh Jain <> Tested-by: Jerin Jacob <> Acked-by: Thomas Monjalon <>
2017-02-28doc: add test related rules in make helpFerruh Yigit
Signed-off-by: Ferruh Yigit <> Acked-by: John McNamara <>
2017-02-27doc: add default values of install variablesThomas Monjalon
The variables DESTDIR and prefix are used with "make install" to copy the files in $DESTDIR$prefix. Their default values will be shown when calling "make help". Signed-off-by: Thomas Monjalon <> Acked-by: John McNamara <>
2016-03-03mk: stop on warning only in developer buildPanu Matilainen
Add RTE_DEVEL_BUILD make-variable which can be used to do things differently when doing development vs building a release, autodetected from source root .git presence and overridable via commandline. It is used it to enable -Werror compiler flag and may be extended to other checks. Failing build on warnings is a useful developer tool but its bad for release tarballs which can and do get built with newer compilers than what was used/available during development. Compilers routinely add new warnings so code which built silently with cc X might no longer do so with X+1. This doesn't make the existing code any more buggier and failing the build in this case does not help to improve the quality of an already released version either. This change the default flags which can be tuned with EXTRA_CFLAGS. Signed-off-by: Panu Matilainen <> Signed-off-by: Thomas Monjalon <> Acked-by: Bruce Richardson <>
2015-12-06mk: introduce new install syntaxThomas Monjalon
The old install command was: make install T=x86_64-native-linuxapp-gcc DESTDIR=install It still works and can be replaced by these more standard commands: 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 It means the "make install" do not perform any compilation anymore when T is not used. It is done only in pre_install to keep compatibility with the old syntax based on T= option. The default prefix /usr/local is empty in the T= case which is used only for a local install. Signed-off-by: Thomas Monjalon <> Acked-by: Panu Matilainen <>
2015-12-06mk: install a standard cutomizable treeThomas Monjalon
The rule "install" follows these conventions: The variable sdkdir has been added to the more standards ones, to configure the directory used with RTE_SDK when using the DPDK makefiles to build an application. It is still possible to build DPDK with the "install T=" rule without specifying any DESTDIR. In such case there is no install, as before. The old usage of an installed SDK is: make -C examples/helloworld RTE_SDK=$(readlink -m $DESTDIR) \ RTE_TARGET=x86_64-native-linuxapp-gcc RTE_TARGET can be specified but is useless now with an installed SDK. The RTE_SDK directory must now point to a different path depending of the installation. Signed-off-by: Thomas Monjalon <> Acked-by: Panu Matilainen <>
2015-12-06mk: remove multi-target installThomas Monjalon
The multi-target install create some subdirectories with the target name which is not standard for a "make install" procedure. The uninstall procedure cannot be applied properly (without removing all files in a directory). It would need to pre-compute paths. As it is a packaging issue, it is removed from the build system capabilities. The variable BUILD_DIR is also renamed to RTE_OUTPUT used in other files. Signed-off-by: Thomas Monjalon <> Acked-by: Panu Matilainen <>
2015-05-14mk: introduce EXTRA_LDLIBS variableKeith Wiles
Signed-off-by: Keith Wiles <> Acked-by: Olivier Matz <>
2014-05-21config: rename "default" configurations as "native"David Marchand
The "default" part in configuration filenames is misleading. Rename this as "native", as this is the RTE_MACHINE that is set in these files. This should make it clearer for people who build DPDK on a system then run it on another one. Signed-off-by: David Marchand <> Acked-by: Bruce Richardson <>
2014-05-16mk: add "make examples" target in root makefileOlivier Matz
It is now possible to build all projects from the examples/ directory using one command from root directory. Some illustration of what is possible: - build examples in the DPDK tree for one target # install the x86_64-default-linuxapp-gcc in # ${RTE_SDK}/x86_64-default-linuxapp-gcc directory user@droids:~/$ make install T=x86_64-default-linuxapp-gcc # build examples for this new installation in # ${RTE_SDK}/examples directory user@droids:~/$ make examples T=x86_64-default-linuxapp-gcc - build examples outside DPDK tree for several targets # install all targets matching x86_64-*-linuxapp-gcc in # ${RTE_SDK}/x86_64-*-linuxapp-gcc directories user@droids:~/$ make install T=x86_64-*-linuxapp-gcc # build examples for these installations in /tmp/foobar user@droids:~/$ make examples T=x86_64-*-linuxapp-gcc O=/tmp/foobar Signed-off-by: Olivier Matz <> Acked-by: Thomas Monjalon <>
2014-03-19pcap: revert build patchesDavid Marchand
This reverts commits a0cdfcf9 (use pcap-config to guess compilation flags), ef5b2363 (fix build with empty LIBPCAP_CFLAGS) and 60191b89 (fix build when pcap_sendpacket is unavailable). These patches are creating more problems than solving the initial one (which was a build error with too old pcap libraries). Since old pcap libraries are not that common, just revert them. Reported-by: Meir Tseitlin <> Reported-by: Mats Liljegren <> Signed-off-by: David Marchand <> Acked-by: Thomas Monjalon <>
2014-02-26pcap: use pcap-config to guess compilation flagsDavid Marchand
Use pcap-config to populate CFLAGS and LDFLAGS. LIBPCAP_CFLAGS and LIBPCAP_LDFLAGS can be used to override this (useful when cross-compiling). Signed-off-by: David Marchand <> Acked-by: Thomas Monjalon <>
2014-02-26mk: allow to specify DESTDIR in build ruleOlivier Matz
This will install the binary sdk (bin + modules + libs + headers + mk) in the specified directory. This directory can be used as RTE_SDK by external applications. Signed-off-by: Olivier Matz <> Acked-by: Thomas Monjalon <>
2014-02-26mk: allow to specify O= in install ruleOlivier Matz
This variable $(O) can be used to specify a build directory when doing an "install" procedure. The default is ".", which means that targets will be built in the source dpdk. This option is useful to compile outside of the source tree that may be read-only. Signed-off-by: Olivier Matz <> Acked-by: Thomas Monjalon <>
2014-02-26doc: how to buildThomas Monjalon
This is a cheat sheet to build DPDK and can be used for a "make help". It is explicitly described as a build help in order to concatenate it with other helps such as test commands. Signed-off-by: Thomas Monjalon <> Acked-by: Olivier Matz <>