Skip to content

Commit

Permalink
Meson: fix dumb bug from merge (compile sample apps)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgov committed Jan 22, 2025
1 parent 1ecc9aa commit e27e13c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions microsoft/testsuites/dpdk/dpdktestpmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ def get_installed_version(self) -> VersionInfo:
)

def _get_meson_parameters(self) -> str:
enable_examples = ""
# enable any apps we need (namely, testpmd)
enable_apps = "-Denable_apps=" + ",".join(self._enable_apps)
# add net/mana to the pmd list if we need it
Expand All @@ -341,14 +342,15 @@ def _get_meson_parameters(self) -> str:
# build the driver enable arg
enable_drivers = "-Denable_drivers=" + ",".join(self._enable_drivers)
# add any needed -Dc_flags or -Dc_link_args arguments
if self._sample_applications:
enable_examples = f"-Dexamples={','.join(self._sample_applications)}"

c_args = self._get_c_arguments()
return " ".join([c_args, enable_apps, enable_drivers])

return " ".join([c_args, enable_apps, enable_drivers, enable_examples])

def _install(self) -> None:
super()._install()
if self._sample_applications:
self._meson_arguments = f"-Dexamples={','.join(self._sample_applications)}"

node = self._node
# save the pythonpath for later
python_path = node.tools[Python].get_python_path()
Expand Down

0 comments on commit e27e13c

Please sign in to comment.