mk: do post processing on objects that register a driver
authorNeil Horman <nhorman@tuxdriver.com>
Fri, 17 Jun 2016 18:46:23 +0000 (14:46 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 6 Jul 2016 21:21:40 +0000 (23:21 +0200)
commit3d781ca328743c5c569de02d16bad3d0cad3beda
tree487d99eb49e627a6e26b59e5dc28eafd90009b1d
parentfef7ff4c2eddb8c08d025229a0833a8187131449
mk: do post processing on objects that register a driver

Modify the compilation makefile to identify C files that export PMD
information, and use that to trigger execution of the pmdinfo binary.  If
the execution of pmdinfo is successful, compile the output C file to an
object, and use the linker to do relocatable linking on the resultant
object file into the parent object that it came from.  This effectively
just adds the json string into the string table of the object that defines
the PMD to the outside world.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Panu Matilainen <pmatilai@redhat.com>
Acked-by: Remy Horton <remy.horton@intel.com>
mk/internal/rte.compile-pre.mk