[dpdk-dev] [PATCH 0/5] examples: add a new makefile to build all examples
Neil Horman
nhorman at tuxdriver.com
Fri Apr 25 16:05:26 CEST 2014
On Fri, Apr 25, 2014 at 02:00:44PM +0200, Olivier Matz wrote:
> This patch series adds a makefile to build all examples supported
> by the configuration. It helps to check that all examples compile
> after a dpdk modification.
>
> After applying the patches, it is possible to build all examples by doing
> the following:
>
> user at droids:~/dpdk.org$ cd examples
> user at droids:~/dpdk.org/examples$ make RTE_SDK=${PWD}/.. \
> RTE_TARGET=x86_64-default-linuxapp-gcc
What you actually want here is RTE_TARGET=build, as the Makefile looks for the
${RTE_TARGET}/.config file, it doesn't just parse whatever target file you
specify.
That begs the bigger point, RTE_TARGET will always be =build, so why not just
add a top level make rule for the examples subdirectory, then RTE_SDK and
RTE_TARGET will just be automatically set.
Regards
Neil
More information about the dev
mailing list