mk: fix driver build with installed SDK
authorThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 7 Jul 2016 12:19:54 +0000 (14:19 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 8 Jul 2016 15:06:59 +0000 (17:06 +0200)
commitf9e02f03c6861aa393ff9022002e9456df755b7d
tree8f7cc58403991961ef09325b4efd0814df91a228
parent3d61c5cccaeadc97e7c59c9cd224ae1d11dff75a
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>
mk/internal/rte.compile-pre.mk
mk/rte.sdkinstall.mk