git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/mlx5: check VLAN push/pop support
[dpdk.git]
/
drivers
/
meson.build
diff --git
a/drivers/meson.build
b/drivers/meson.build
index
0052247
..
bc6f4f5
100644
(file)
--- a/
drivers/meson.build
+++ b/
drivers/meson.build
@@
-51,6
+51,7
@@
endif
foreach subpath:subdirs
drivers = []
std_deps = []
foreach subpath:subdirs
drivers = []
std_deps = []
+ log_prefix = ''
# subpath can be either "class" or "class/driver"
if subpath.contains('/')
# subpath can be either "class" or "class/driver"
if subpath.contains('/')
@@
-69,6
+70,12
@@
foreach subpath:subdirs
# get already enabled drivers of the same class
enabled_drivers = get_variable(class + '_drivers', [])
# get already enabled drivers of the same class
enabled_drivers = get_variable(class + '_drivers', [])
+ # default log prefix can be defined per class
+ if log_prefix == ''
+ # default log name is pmd.class.driver
+ log_prefix = 'pmd.' + class
+ endif
+
foreach drv:drivers
drv_path = join_paths(class, drv)
foreach drv:drivers
drv_path = join_paths(class, drv)
@@
-137,6
+144,7
@@
foreach subpath:subdirs
enabled_drivers += name
lib_name = '_'.join(['rte', class, name])
enabled_drivers += name
lib_name = '_'.join(['rte', class, name])
+ cflags += '-DRTE_LOG_DEFAULT_LOGTYPE=' + '.'.join([log_prefix, name])
dpdk_conf.set(lib_name.to_upper(), 1)
dpdk_extra_ldflags += pkgconfig_extra_libs
dpdk_conf.set(lib_name.to_upper(), 1)
dpdk_extra_ldflags += pkgconfig_extra_libs