mk: fix build dependency of drivers on pmdinfogen
authorThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 7 Jul 2016 08:20:28 +0000 (10:20 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 8 Jul 2016 10:04:02 +0000 (12:04 +0200)
commita1ec4f91ab1bc171fe998392f99575ec67b58cc4
tree7cc6b51b923959fa3dace6582165ff4aef8423f9
parent54266acc6433ba5d3d90f3af4f7f5af5c8dfc288
mk: fix build dependency of drivers on pmdinfogen

When compiling the drivers, some code is generated with pmdinfogen.
A fresh parallel build can fail if a driver is compiled before pmdinfogen:
build/buildtools/dpdk-pmdinfogen: Permission denied

There was a dependency declared in drivers/Makefile but it cannot work
because this file is based on mk/rte.subdir.mk which do not handle
dependencies.

It is fixed by declaring the whole buildtools as (order only) prerequisite
of drivers.

Fixes: cb6696d22023 ("drivers: update registration macro usage")

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
drivers/Makefile
mk/rte.sdkbuild.mk