summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)Author
2014-02-04kvargs: add a new library to parse key/value argumentsOlivier Matz
Copy the code from rte_eth_pcap_arg_parser.[ch], without any functional modifications, only: - rename functions and structure - restyle (indentation) - add comments (doxygen style) - add "const" or "static" attributes, remove unneeded "inline" Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2014-01-15pcap: fix build with empty LIBPCAP_CFLAGSRobert Sanford
In rte.sdkbuild.mk with CONFIG_RTE_LIBRTE_PMD_PCAP=y, we error-exit if LIBPCAP_CFLAGS is empty. On some distros (e.g., Centos 6.4), it is normal for "pcap-config --cflags" to output only a newline, because pcap header files reside in /usr/include/. Solution is to remove the line that checks whether LIBPCAP_CFLAGS is empty. Signed-off-by: Robert Sanford <rsanford@prolexic.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-01-15pcap: 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 <david.marchand@6wind.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-01-15eal: add support for shared object driversDamien Millescamps
Add an option to specify libraries to be loaded before probing the PCI. For instance, testpmd -d librte_pmd_xxx.so can be used to enable xxx driver support on testpmd without any recompilation of testpmd. Plugins are loaded before creating threads because we want the threads to inherit any property that could be set while loading a plugin, such as iopl(). Signed-off-by: Damien Millescamps <damien.millescamps@6wind.com> Signed-off-by: Jean-Mickael Guerin <jean-mickael.guerin@6wind.com> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-01-15mk: fix command-line dependency check for quoted stringsAdrien Mazarguil
Before recompiling a file, rte.compile-pre.mk checks whether the command line is different from the previous one. This is done by storing for each object file the entire command line in a kind of dependency file with a .cmd extension (see obj2cmd). If that file exists, the line is retrieved first and compared against $(C_TO_O_STR). The object file gets recompiled if the file doesn't exist or if the line is different. The problem is that sometimes, files are recompiled for no apparent reason. The check doesn't work properly when a command line contains double-quoted strings such as -DFOO='"bar"' because the shell interprets and strips them. This is fixed by protecting C_TO_O_CMD with simple quotes, knowing that such quotes are already escaped in C_TO_O_STR. Moreover, because simple quotes are escaped in C_TO_O_STR, the retrieved command should be compared against C_TO_O instead. Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-01-15mk: fix EXTRA_LDFLAGS overrideJulien Courtat
The GCC prefix -Wl was ignored because the command line value has higher priority. It ended in impossibilty for GCC to pass parameters to LD. The prefixed value must override the command line one. Signed-off-by: Julien Courtat <julien.courtat@6wind.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-01-15mk: allow to build shared librariesDidier Pallard
Add mk/rte.shared.mk and mk/rte.extshared.mk in framework to allow shared libraries compilation through framework Signed-off-by: Didier Pallard <didier.pallard@6wind.com> Acked-by: Ivan Boule <ivan.boule@6wind.com>
2014-01-15mk: 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 <olivier.matz@6wind.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-01-15mk: in install rule, don't overwrite .config if it already existsOlivier Matz
This allows the user to prepare a configuration with make config before using make install. Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-01-15mk: 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 <olivier.matz@6wind.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-01-15mk: rule helpThomas Monjalon
The goal of this rule is to show which rules/options are available from a "make" command. Let's start by printing short doc about SDK building. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
2014-01-15mk: add rule to list configsThomas Monjalon
Allow to list configs in config/ directory with a simple make rule. The rule showconfigs is reused in config error. In the same time, "echo -n" is replaced by the more portable "printf". Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
2014-01-15mk: insert version number in doxygen configThomas Monjalon
The parameter PROJECT_NUMBER is used in the HTML header via the template variable $projectnumber. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
2014-01-15mk: add rule to print version numberThomas Monjalon
The version string is extracted from rte_version.h. RTE_VER_* macros are concatenated and separators " . . r " are inserted. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
2014-01-15doc: generate HTML for API with doxygenThomas Monjalon
- add index page - add doxygen configuration for API - add doxygen CSS customization applied by a script - HTML generation via make rules The configuration is splitted in a static file and a make rule in order to dynamically configure output format and path. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: David Marchand <david.marchand@6wind.com>
2014-01-15mk: clean dead doc rulesThomas Monjalon
It seems that doc/ has been removed so these rules are useless. This clean-up is preliminary to generate some doc. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
2014-01-15mk: factorize some rulesThomas Monjalon
rte.sdkroot.mk is mainly calling other makefiles. These redirecting rules can be factorized by called makefile. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
2014-01-15config: fix combined/shared libThomas Monjalon
- Configuration for combined and shared library was only in the template defconfig_x86_64-default-linuxapp-gcc. - CONFIG_RTE_LIBNAME was in the wrong section - RTE_LIBNAME had no quote in "C context" (include/rte_config.h) - and then CONFIG_RTE_LIBNAME quotes were not properly removed in "make context" Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
2013-11-24app/test: rename pmac_acl as aclIntel
Signed-off-by: Intel
2013-11-19mk: always preprocess template config fileIntel
Signed-off-by: Intel
2013-10-09virtio: add new driverIntel
This PMD can be used in a VM having virtio-net NIC. Note: it is a different implementation than virtio-usermap extension. Signed-off-by: Intel
2013-10-09pcap: add new driverIntel
This PMD uses libpcap to send/receive packets to/from any NIC. It can also read/write to/from a file. Signed-off-by: Intel
2013-10-09ring: add new driverIntel
This PMD is a set of FIFOs using rte_ring without any NIC. It can be used as a loopback. Signed-off-by: Intel
2013-10-09mk: combined libraryIntel
Allow to merge all libraries (shared or static) into one. Signed-off-by: Intel
2013-10-09mk: shared librariesIntel
Allow to build shared libraries (.so) instead of static ones (.a). Signed-off-by: Intel
2013-10-09mk: link with libmIntel
Signed-off-by: Intel
2013-10-09doc: whitespace changes in licensesIntel
Signed-off-by: Intel
2013-09-17app: rework ring testsIntel
Signed-off-by: Intel
2013-09-17timer: prefer TSC to HPETIntel
Signed-off-by: Intel
2013-09-17sched: initial importIntel
Signed-off-by: Intel
2013-09-17meter: initial importIntel
Signed-off-by: Intel
2013-09-17power: initial importIntel
Signed-off-by: Intel
2013-09-17lpm: add IPv6 supportIntel
Signed-off-by: Intel
2013-07-25update copyright date to 2013Intel
Signed-off-by: Intel
2013-07-25pmac: integration without libIntel
This library could be used for pattern matching and ACL. Code of librte_pmac is not released as Open Source. Signed-off-by: Intel
2013-07-25mk: fix verbose display of install commandDidier Pallard
Correctly display executed install command in rte.install-post.mk install rules Signed-off-by: Didier Pallard <didier.pallard@6wind.com> Acked-by: Ivan Boule <ivan.boule@6wind.com>
2013-07-25mk: allow corei7-avx flag with gcc 4.7Zijie Pan
In rte.toolchain-compat.mk, ensure MACHINE_CFLAGS is initialized when using GCC 4.7. Update the GCC 4.6 test to also include GCC 4.7. Signed-off-by: Krzysztof Witek <krzysztof.witek@6wind.com> Signed-off-by: Zijie Pan <zijie.pan@6wind.com> Acked-by: Ivan Boule <ivan.boule@6wind.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
2013-07-25mk: fix typo in LDFLAGS for 32-bitThierry Herbelot
Enable compilation for 32-bit architecture. Signed-off-by: Thierry Herbelot <thierry.herbelot@6wind.com> Acked-by: Ivan Boule <ivan.boule@6wind.com>
2013-07-25mk: use $CC to detect toolchain versionSamuel Gauthier
Using gcc is wrong, we should use the cross gcc to detect the version of gcc. Signed-off-by: Samuel Gauthier <samuel.gauthier@6wind.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2013-07-25app: split performance testsIntel
Signed-off-by: Intel
2013-07-25e1000: support EM devices (also known as e1000/e1000e)Intel
Signed-off-by: Intel
2013-07-25igb: rename pmd driver as e1000Intel
Signed-off-by: Intel
2013-07-25kni: initial importIntel
Signed-off-by: Intel
2013-07-25mk: various updatesIntel
Signed-off-by: Intel
2013-07-25mk: update for SSE4 and ICCIntel
Signed-off-by: Intel
2013-07-25mk: minor changesIntel
Signed-off-by: Intel
2013-07-25doc: remove remaining referencesIntel
Signed-off-by: Intel
2013-07-05remove version in all filesIntel
Signed-off-by: Intel
2013-03-11first public releasev1.2.3r0Intel
version 1.2.3 Signed-off-by: Intel