[dpdk-dev] [PATCH 4/4] rte.extvars.mk: allow user to override RTE_SDK_BIN
Thomas Monjalon
thomas.monjalon at 6wind.com
Mon Jul 21 16:31:47 CEST 2014
Hi,
2014-07-20 20:47, Matthew Hall:
> Without this patch it is impossible to compile the examples if you have
> compiled the DPDK into the $(RTE_SDK)/build directory, or any other one
> besides $(RTE_SDK)/$(RTE_TARGET).
Please, could you explain why is it impossible in your case?
The standard usage is:
make T=x86_64-native-linuxapp-gcc install
make T=x86_64-native-linuxapp-gcc examples O=x86_64-native-linuxapp-gcc/examples
If you don't want to use install mode, you can build like this:
make config T=x86_64-native-linuxapp-gcc
make
make -C examples RTE_SDK=$(pwd) RTE_TARGET=build O=$(readlink -m build/examples)
> --- a/mk/rte.extvars.mk
> +++ b/mk/rte.extvars.mk
> -RTE_SDK_BIN := $(RTE_SDK)/$(RTE_TARGET)
> +RTE_SDK_BIN ?= $(RTE_SDK)/$(RTE_TARGET)
I don't understand why this change could help.
You can even use this:
make -C examples RTE_SDK=$(pwd) RTE_SDK_BIN=$(pwd)/build O=$(readlink -m build/examples)
without the patch because command line override variables.
Note that O= is optional.
--
Thomas
More information about the dev
mailing list