Merge pull request #27846 from keszybz/link-mode-generation
Autogenerate list of link modes
This commit is contained in:
@@ -270,6 +270,24 @@ target2 = custom_target(
|
||||
shared_generated_gperf_headers = [target1, target2]
|
||||
shared_sources += shared_generated_gperf_headers
|
||||
|
||||
fname = 'ethtool-link-mode.h'
|
||||
ethtool_link_mode_h = custom_target(
|
||||
fname,
|
||||
input : ['ethtool-link-mode.py', 'linux/ethtool.h'],
|
||||
output : fname,
|
||||
command : [python, '@INPUT0@', '--header', cpp, '@INPUT1@'],
|
||||
capture : true)
|
||||
shared_sources += ethtool_link_mode_h
|
||||
|
||||
fname = 'ethtool-link-mode.xml'
|
||||
ethtool_link_mode_xml = custom_target(
|
||||
fname,
|
||||
input : ['ethtool-link-mode.py', 'linux/ethtool.h'],
|
||||
output : fname,
|
||||
command : [python, '@INPUT0@', '--xml', cpp, '@INPUT1@'],
|
||||
capture : true)
|
||||
man_page_depends += ethtool_link_mode_xml
|
||||
|
||||
libshared_name = 'systemd-shared-@0@'.format(shared_lib_tag)
|
||||
|
||||
libshared_deps = [threads,
|
||||
@@ -295,6 +313,7 @@ libshared_deps = [threads,
|
||||
versiondep]
|
||||
|
||||
libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
|
||||
libshared_build_dir = meson.current_build_dir()
|
||||
|
||||
libshared_static = static_library(
|
||||
libshared_name,
|
||||
|
||||
Reference in New Issue
Block a user