summaryrefslogtreecommitdiff
path: root/mk/rte.hostapp.mk
diff options
context:
space:
mode:
authorNeil Horman <nhorman@tuxdriver.com>2016-06-17 14:46:20 -0400
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-07-06 22:34:39 +0200
commit98b0fdb0ffc6b8fe70bef16d218b97f7a6c283bd (patch)
tree2b963a440a4ee700c794a445b2188ef9b19758ff /mk/rte.hostapp.mk
parent26622cbe1b91727f55dfb017c4df6f533407b3c6 (diff)
downloaddpdk-98b0fdb0ffc6b8fe70bef16d218b97f7a6c283bd.zip
dpdk-98b0fdb0ffc6b8fe70bef16d218b97f7a6c283bd.tar.gz
dpdk-98b0fdb0ffc6b8fe70bef16d218b97f7a6c283bd.tar.xz
pmdinfogen: add buildtools and pmdinfogen utility
pmdinfogen is a tool used to parse object files and build json strings for use in later determining hardware support in a dso or application binary. pmdinfo looks for the non-exported symbol names this_pmd_name<n> and this_pmd_tbl<n> (where n is a integer counter). It records the name of each of these tuples, using the later to find the symbolic name of the pci_table for physical devices that the object supports. With this information, it outputs a C file with a single line of the form: static char *<pmd_name>_driver_info[] __attribute__((used)) = " \ PMD_DRIVER_INFO=<json string>"; Where <pmd_name> is the arbitrary name of the pmd, and <json_string> is the json encoded string that hold relevant pmd information, including the pmd name, type and optional array of pci device/vendor ids that the driver supports. This c file is suitable for compiling to object code, then relocatably linking into the parent file from which the C was generated. This creates an entry in the string table of the object that can inform a later tool about hardware support. Signed-off-by: Neil Horman <nhorman@tuxdriver.com> Acked-by: Panu Matilainen <pmatilai@redhat.com> Acked-by: Remy Horton <remy.horton@intel.com>
Diffstat (limited to 'mk/rte.hostapp.mk')
-rw-r--r--mk/rte.hostapp.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/rte.hostapp.mk b/mk/rte.hostapp.mk
index c44d0f8..07b391c 100644
--- a/mk/rte.hostapp.mk
+++ b/mk/rte.hostapp.mk
@@ -41,7 +41,7 @@ include $(RTE_SDK)/mk/internal/rte.depdirs-pre.mk
VPATH += $(SRCDIR)
_BUILD = $(HOSTAPP)
-_INSTALL = $(INSTALL-FILES-y) $(SYMLINK-FILES-y) $(RTE_OUTPUT)/hostapp/$(HOSTAPP)
+_INSTALL = $(INSTALL-FILES-y) $(SYMLINK-FILES-y) $(RTE_OUTPUT)/app/$(HOSTAPP)
_CLEAN = doclean
.PHONY: all
@@ -95,10 +95,10 @@ $(HOSTAPP): $(OBJS-y) $(LDLIBS_FILES) FORCE
#
# install app in $(RTE_OUTPUT)/hostapp
#
-$(RTE_OUTPUT)/hostapp/$(HOSTAPP): $(HOSTAPP)
+$(RTE_OUTPUT)/app/$(HOSTAPP): $(HOSTAPP)
@echo " INSTALL-HOSTAPP $(HOSTAPP)"
- @[ -d $(RTE_OUTPUT)/hostapp ] || mkdir -p $(RTE_OUTPUT)/hostapp
- $(Q)cp -f $(HOSTAPP) $(RTE_OUTPUT)/hostapp
+ @[ -d $(RTE_OUTPUT)/app ] || mkdir -p $(RTE_OUTPUT)/app
+ $(Q)cp -f $(HOSTAPP) $(RTE_OUTPUT)/app
#
# Clean all generated files