summaryrefslogtreecommitdiff
path: root/mk/internal
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2016-07-07 14:19:54 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-07-08 17:06:59 +0200
commitf9e02f03c6861aa393ff9022002e9456df755b7d (patch)
tree8f7cc58403991961ef09325b4efd0814df91a228 /mk/internal
parent3d61c5cccaeadc97e7c59c9cd224ae1d11dff75a (diff)
downloaddpdk-f9e02f03c6861aa393ff9022002e9456df755b7d.zip
dpdk-f9e02f03c6861aa393ff9022002e9456df755b7d.tar.gz
dpdk-f9e02f03c6861aa393ff9022002e9456df755b7d.tar.xz
mk: fix driver build with installed SDK
The tool pmdinfogen was called from RTE_OUTPUT/app/ which does not exist if building a driver outside of the SDK build. When building DPDK, RTE_SDK_BIN is RTE_OUTPUT. When building an external driver, RTE_SDK_BIN must point to the installed DPDK directory containing includes, libs, etc. That's why pmdinfogen must be installed in the SDK directory and be part of the SDK installation. Fixes: 3d781ca32874 ("mk: do post processing on objects that register a driver") Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.com>
Diffstat (limited to 'mk/internal')
-rw-r--r--mk/internal/rte.compile-pre.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/internal/rte.compile-pre.mk b/mk/internal/rte.compile-pre.mk
index 5632d6e..87d2d93 100644
--- a/mk/internal/rte.compile-pre.mk
+++ b/mk/internal/rte.compile-pre.mk
@@ -92,7 +92,7 @@ C_TO_O_DO = @set -e; \
if [ \$$? -eq 0 ]; then \
echo \" PMDINFOGEN\" $@; \
OBJF=`readlink -f $@`; \
- ${RTE_OUTPUT}/app/pmdinfogen \$$OBJF \$$OBJF.pmd.c; \
+ $(RTE_SDK_BIN)/app/pmdinfogen \$$OBJF \$$OBJF.pmd.c; \
if [ \$$? -eq 0 ]; \
then \
echo \" PMDINFOBUILD\" $@; \