]> git.droids-corp.org - dpdk.git/commitdiff
build: standardize component names and defines
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 15 Oct 2020 15:05:53 +0000 (16:05 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 19 Oct 2020 20:15:34 +0000 (22:15 +0200)
As discussed on the dpdk-dev mailing list[1], we can make some easy
improvements in standardizing the naming of the various components in DPDK,
and their associated feature-enabled macros.

Following this patch, each library will have the name in format,
'librte_<name>.so', and the macro indicating that library is enabled in the
build will have the form 'RTE_LIB_<NAME>'.

Similarly, for libraries, the equivalent name formats and macros are:
'librte_<class>_<name>.so' and 'RTE_<CLASS>_<NAME>', where class is the
device type taken from the relevant driver subdirectory name, i.e. 'net',
'crypto' etc.

To avoid too many changes at once for end applications, the old macro names
will still be provided in the build in this release, but will be removed
subsequently.

[1] http://inbox.dpdk.org/dev/ef7c1a87-79ab-e405-4202-39b7ad6b0c71@solarflare.com/t/#u

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Luca Boccassi <bluca@debian.org>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Rosen Xu <rosen.xu@intel.com>
40 files changed:
app/test-bbdev/meson.build
app/test-crypto-perf/meson.build
app/test-pmd/meson.build
app/test/meson.build
doc/guides/rel_notes/deprecation.rst
drivers/baseband/meson.build
drivers/bus/meson.build
drivers/common/meson.build
drivers/common/mlx5/meson.build
drivers/common/qat/meson.build
drivers/compress/meson.build
drivers/compress/octeontx/meson.build
drivers/crypto/meson.build
drivers/crypto/null/meson.build
drivers/crypto/octeontx/meson.build
drivers/crypto/octeontx2/meson.build
drivers/crypto/scheduler/meson.build
drivers/crypto/virtio/meson.build
drivers/event/dpaa/meson.build
drivers/event/dpaa2/meson.build
drivers/event/meson.build
drivers/event/octeontx/meson.build
drivers/event/octeontx2/meson.build
drivers/mempool/meson.build
drivers/meson.build
drivers/net/meson.build
drivers/net/mlx4/meson.build
drivers/raw/ifpga/meson.build
drivers/raw/meson.build
drivers/regex/meson.build
drivers/vdpa/meson.build
examples/bond/meson.build
examples/ethtool/meson.build
examples/ioat/meson.build
examples/l2fwd-crypto/meson.build
examples/ntb/meson.build
examples/vm_power_manager/meson.build
lib/librte_ethdev/meson.build
lib/librte_graph/meson.build
lib/meson.build

index fbd8ae3d006f92220d3fc19f138f1bb21bd6bafe..8aca49293530a3ae32aed8fefa7a21cb7f1fc843 100644 (file)
@@ -7,11 +7,11 @@ sources = files('main.c',
                'test_bbdev_vector.c')
 deps += ['bbdev', 'bus_vdev']
 if dpdk_conf.has('RTE_LIBRTE_PMD_BBDEV_FPGA_LTE_FEC')
-       deps += ['pmd_bbdev_fpga_lte_fec']
+       deps += ['baseband_fpga_lte_fec']
 endif
 if dpdk_conf.has('RTE_LIBRTE_PMD_BBDEV_FPGA_5GNR_FEC')
-       deps += ['pmd_bbdev_fpga_5gnr_fec']
+       deps += ['baseband_fpga_5gnr_fec']
 endif
 if dpdk_conf.has('RTE_LIBRTE_PMD_BBDEV_ACC100')
-       deps += ['pmd_bbdev_acc100']
-endif
\ No newline at end of file
+       deps += ['baseband_acc100']
+endif
index 4bd71510dcb0ce11b303f52b0f2db0235475eecc..e6ddda6f0c542c5ad62371b3e863cc3bbef71d1c 100644 (file)
@@ -13,5 +13,5 @@ sources = files('cperf_ops.c',
                'main.c')
 deps += ['cryptodev', 'net', 'security']
 if dpdk_conf.has('RTE_LIBRTE_PMD_CRYPTO_SCHEDULER')
-       deps += 'pmd_crypto_scheduler'
+       deps += 'crypto_scheduler'
 endif
index 0d9e4504945c63ec41e161a90724b49c50b95bb4..2e8b9f8a99c5b7cd6d1cdd691383733d8464df26 100644 (file)
@@ -38,22 +38,22 @@ if dpdk_conf.has('RTE_LIBRTE_LATENCYSTATS')
        deps += 'latencystats'
 endif
 if dpdk_conf.has('RTE_LIBRTE_PMD_CRYPTO_SCHEDULER')
-       deps += 'pmd_crypto_scheduler'
+       deps += 'crypto_scheduler'
 endif
 if dpdk_conf.has('RTE_LIBRTE_BOND_PMD')
-       deps += 'pmd_bond'
+       deps += 'net_bond'
 endif
 if dpdk_conf.has('RTE_LIBRTE_BNXT_PMD')
-       deps += 'pmd_bnxt'
+       deps += 'net_bnxt'
 endif
 if dpdk_conf.has('RTE_LIBRTE_I40E_PMD')
-       deps += 'pmd_i40e'
+       deps += 'net_i40e'
 endif
 if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')
-       deps += 'pmd_ixgbe'
+       deps += 'net_ixgbe'
 endif
 if dpdk_conf.has('RTE_LIBRTE_DPAA_PMD')
-       deps += ['bus_dpaa', 'mempool_dpaa', 'pmd_dpaa']
+       deps += ['bus_dpaa', 'mempool_dpaa', 'net_dpaa']
 endif
 if dpdk_conf.has('RTE_LIBRTE_BPF')
        sources += files('bpf_cmd.c')
index fc90a1909f91542f6496292fd65f8f55898a60cd..c5ce1d2c08adc65c1298e33b9abc4f9768bbb3fc 100644 (file)
@@ -345,7 +345,7 @@ if dpdk_conf.has('RTE_LIBRTE_STACK_MEMPOOL')
        test_deps += 'mempool_stack'
 endif
 if dpdk_conf.has('RTE_LIBRTE_SKELETON_EVENTDEV_PMD')
-       test_deps += 'pmd_skeleton_event'
+       test_deps += 'event_skeleton'
 endif
 if dpdk_conf.has('RTE_LIBRTE_TELEMETRY')
        test_sources += ['test_telemetry_json.c', 'test_telemetry_data.c']
@@ -355,7 +355,7 @@ endif
 # The following linkages of drivers are required because
 # they are used via a driver-specific API.
 if dpdk_conf.has('RTE_LIBRTE_BOND_PMD')
-       test_deps += 'pmd_bond'
+       test_deps += 'net_bond'
        test_sources += ['test_link_bonding.c', 'test_link_bonding_rssconf.c']
        driver_test_names += ['link_bonding_autotest', 'link_bonding_rssconf_autotest']
        if dpdk_conf.has('RTE_LIBRTE_RING_PMD')
@@ -364,7 +364,7 @@ if dpdk_conf.has('RTE_LIBRTE_BOND_PMD')
        endif
 endif
 if dpdk_conf.has('RTE_LIBRTE_RING_PMD')
-       test_deps += 'pmd_ring'
+       test_deps += 'net_ring'
        test_sources += 'test_pmd_ring_perf.c'
        test_sources += 'test_pmd_ring.c'
        test_sources += 'test_event_eth_tx_adapter.c'
@@ -415,7 +415,7 @@ endif
 
 if dpdk_conf.has('RTE_LIBRTE_PMD_CRYPTO_SCHEDULER')
        driver_test_names += 'cryptodev_scheduler_autotest'
-       test_deps += 'pmd_crypto_scheduler'
+       test_deps += 'crypto_scheduler'
 endif
 
 foreach d:test_deps
index 8ceb385141fbdffb07190298bd7cbba1aeb43d64..76a83968cb90081d4004b77111bf75394e99314c 100644 (file)
@@ -11,6 +11,14 @@ here.
 Deprecation Notices
 -------------------
 
+* build: The macros defined to indicate which DPDK libraries and drivers
+  are included in the meson build are changing to a standardized format of
+  ``RTE_LIB_<NAME>`` and ``RTE_<CLASS>_<NAME>``, where ``NAME`` is the
+  upper-case component name, e.g. EAL, ETHDEV, IXGBE, and ``CLASS`` is the
+  upper-case name of the device class to which a driver belongs e.g.
+  ``NET``, ``CRYPTO``, ``VDPA``. The old macros are deprecated and will be
+  removed in a future release.
+
 * meson: The minimum supported version of meson for configuring and building
   DPDK will be increased to v0.47.1 (from 0.41) from DPDK 19.05 onwards. For
   those users with a version earlier than 0.47.1, an updated copy of meson
index 72301ce90ff63bfeb9bf05a735f3ba162b5a43dc..2c7efe394c9c2296fd9b7c3d350e231b41fe5fdb 100644 (file)
@@ -8,4 +8,3 @@ endif
 drivers = ['null', 'turbo_sw', 'fpga_lte_fec', 'fpga_5gnr_fec', 'acc100']
 
 config_flag_fmt = 'RTE_LIBRTE_PMD_BBDEV_@0@'
-driver_name_fmt = 'rte_pmd_bbdev_@0@'
index 80de2d91d52dbf1f912327bfe93a1ff93e942a77..bd73efd1871b81e563d6711cfbbb8de558e2e065 100644 (file)
@@ -4,4 +4,3 @@
 drivers = ['dpaa', 'fslmc', 'ifpga', 'pci', 'vdev', 'vmbus']
 std_deps = ['eal']
 config_flag_fmt = 'RTE_LIBRTE_@0@_BUS'
-driver_name_fmt = 'rte_bus_@0@'
index abb4f1529ad5dcd14d92c79e517523154d6d0639..d78882f05e0b0df9c959b2b857546707e9c0facc 100644 (file)
@@ -8,4 +8,3 @@ endif
 std_deps = ['eal']
 drivers = ['cpt', 'dpaax', 'iavf', 'mvep', 'octeontx', 'octeontx2', 'sfc_efx']
 config_flag_fmt = 'RTE_LIBRTE_@0@_COMMON'
-driver_name_fmt = 'rte_common_@0@'
index 8e5608703e489e039e78d290b3755c987ec6fd49..3dacc6f68347fac1a9c50d26b54a41a2a4bf398f 100644 (file)
@@ -8,7 +8,6 @@ if not is_linux
 endif
 
 config_flag_fmt = 'RTE_LIBRTE_@0@_COMMON'
-driver_name_fmt = 'rte_common_@0@'
 deps += ['hash', 'pci', 'bus_pci', 'net', 'eal', 'kvargs']
 sources += files(
        'mlx5_devx_cmds.c',
index a94182cc7e16a8079a9d6db1ebde4a1787fac1a1..29e1299f20b6fe0b324e40c9ac4a6d014519828f 100644 (file)
@@ -2,7 +2,6 @@
 # Copyright(c) 2017-2018 Intel Corporation
 
 config_flag_fmt = 'RTE_LIBRTE_@0@_COMMON'
-driver_name_fmt = 'rte_common_@0@'
 
 qat_crypto = true
 qat_crypto_path = 'crypto/qat'
index 3a4723c0ce74ac15d0691de51b6dacc67457d7e6..33f5e33dde4a1500067de232661e51516b4376f8 100644 (file)
@@ -9,4 +9,3 @@ drivers = ['isal', 'octeontx', 'zlib']
 
 std_deps = ['compressdev'] # compressdev pulls in all other needed deps
 config_flag_fmt = 'RTE_LIBRTE_PMD_@0@'
-driver_name_fmt = 'rte_pmd_@0@'
index 0dc98b76271a4d7020e0e8594bc47338b80658d2..2d71b4da219cbf25f18d3b97c40f3c61926fc68c 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Cavium, Inc
 
-name = 'octeontx_compress'
+fmt_name = 'octeontx_compress'
 sources = files('otx_zip.c', 'otx_zip_pmd.c')
 includes += include_directories('include')
 deps += ['mempool_octeontx', 'bus_pci']
index fcb3766d3e23e45e8a856732991e29e46fb77089..34f2d99c09650e9a2dfc8fb2d3fd308c043aca17 100644 (file)
@@ -27,4 +27,3 @@ drivers = ['aesni_gcm',
 
 std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps
 config_flag_fmt = 'RTE_LIBRTE_PMD_@0@'
-driver_name_fmt = 'rte_pmd_@0@'
index 502336da2bd2115a78c737abd7f0211bcbcd5a07..421414916cbbac3b96a60eb7ebe0146ee4aeb3a8 100644 (file)
@@ -2,5 +2,5 @@
 # Copyright(c) 2017 Intel Corporation
 
 deps += 'bus_vdev'
-name = 'null_crypto'
+fmt_name = 'null_crypto'
 sources = files('null_crypto_pmd.c', 'null_crypto_pmd_ops.c')
index cf031b006c940938f2f6d2dcde8e60afd2cd703b..d6939720d87699b9bbe32a61ffe286beb1a0f16b 100644 (file)
@@ -7,7 +7,7 @@ endif
 
 deps += ['bus_pci']
 deps += ['common_cpt']
-name = 'octeontx_crypto'
+fmt_name = 'octeontx_crypto'
 
 sources = files('otx_cryptodev.c',
                'otx_cryptodev_capabilities.c',
index 41114a5c32fabdb3f8589c6f5cb3109208b38a4a..4e4522cace010e20b4bb48b9abd7ade9b30b0c4f 100644 (file)
@@ -12,7 +12,7 @@ deps += ['common_octeontx2']
 deps += ['ethdev']
 deps += ['eventdev']
 deps += ['security']
-name = 'octeontx2_crypto'
+fmt_name = 'octeontx2_crypto'
 
 sources = files('otx2_cryptodev.c',
                'otx2_cryptodev_capabilities.c',
index c5ba2d6804065de4744a1b4e69bc2754238b6a68..2209c502329181ccc7e03bb9d10c4bd1a6745543 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
 
 deps += ['bus_vdev', 'reorder']
-name = 'crypto_scheduler'
+fmt_name = 'crypto_scheduler'
 sources = files(
        'rte_cryptodev_scheduler.c',
        'scheduler_failover.c',
index b15b3f9fab192af045d685a299b92f24cb39c053..6cea782debdd3af55bd1afa19bd60b9e4127c292 100644 (file)
@@ -3,6 +3,6 @@
 
 includes += include_directories('../../../lib/librte_vhost')
 deps += 'bus_pci'
-name = 'virtio_crypto'
+fmt_name = 'virtio_crypto'
 sources = files('virtio_cryptodev.c', 'virtio_pci.c',
                'virtio_rxtx.c', 'virtqueue.c')
index 2f761f8e5bc4cc8a5b244523642c56e8b165f1de..9abb75e3e93bc388bdbe6f2bb3f44cee494d5810 100644 (file)
@@ -5,7 +5,7 @@ if not is_linux
        build = false
        reason = 'only supported on linux'
 endif
-deps += ['pmd_dpaa', 'pmd_dpaa_sec']
+deps += ['net_dpaa', 'crypto_dpaa_sec']
 sources = files('dpaa_eventdev.c')
 
 includes += include_directories('../../crypto/dpaa_sec/')
index 71c8be3d6ee30b5cf3ed527eb1174e4467ed73b5..4ead7bb3e9e059ee5e415d829ae4fc5e735ea14e 100644 (file)
@@ -5,7 +5,7 @@ if not is_linux
        build = false
        reason = 'only supported on linux'
 endif
-deps += ['bus_vdev', 'pmd_dpaa2', 'pmd_dpaa2_sec']
+deps += ['bus_vdev', 'net_dpaa2', 'crypto_dpaa2_sec']
 sources = files('dpaa2_hw_dpcon.c',
                'dpaa2_eventdev.c',
                'dpaa2_eventdev_selftest.c')
index f2a343147293990d8a8708268ac3e0af097ee1b2..a7dac99de2b5b70d6abcf57816309f67df45f62f 100644 (file)
@@ -12,4 +12,3 @@ if not (toolchain == 'gcc' and cc.version().version_compare('<4.8.6') and
 endif
 std_deps = ['eventdev', 'kvargs']
 config_flag_fmt = 'RTE_LIBRTE_PMD_@0@_EVENTDEV'
-driver_name_fmt = 'rte_pmd_@0@_event'
index 2b74bb62dea9d06e773ce598a70c7a07ae37298e..41e367684c08eb00372691515888419ddb916b88 100644 (file)
@@ -10,4 +10,4 @@ sources = files('ssovf_worker.c',
                'timvf_probe.c'
 )
 
-deps += ['common_octeontx', 'mempool_octeontx', 'bus_vdev', 'pmd_octeontx']
+deps += ['common_octeontx', 'mempool_octeontx', 'bus_vdev', 'net_octeontx']
index 6dde86fc718fab23c63d8f10dbed685a26939424..724da2e6b7fcbb716a15efebcf885ff612ddd932 100644 (file)
@@ -25,7 +25,7 @@ foreach flag: extra_flags
        endif
 endforeach
 
-deps += ['bus_pci', 'common_octeontx2', 'mempool_octeontx2', 'pmd_octeontx2', 'pmd_octeontx2_crypto']
+deps += ['bus_pci', 'common_octeontx2', 'crypto_octeontx2', 'mempool_octeontx2', 'net_octeontx2']
 
 includes += include_directories('../../crypto/octeontx2')
 includes += include_directories('../../common/cpt')
index 7520e489f413e22335dfaef84ad1a1e0d8ca04f0..a6ddd35b2bbf8c05fd4f02b0851e98f0ad78d9dd 100644 (file)
@@ -4,4 +4,3 @@
 drivers = ['bucket', 'dpaa', 'dpaa2', 'octeontx', 'octeontx2', 'ring', 'stack']
 std_deps = ['mempool']
 config_flag_fmt = 'RTE_LIBRTE_@0@_MEMPOOL'
-driver_name_fmt = 'rte_mempool_@0@'
index 3d4bbff13bc9a019ca57389bd5e1ac3742b9f3cb..a5a6fed06e8cd473368425f14d51b0b88ec988c2 100644 (file)
@@ -33,9 +33,6 @@ foreach subpath:subdirs
        drivers = []
        std_deps = []
        config_flag_fmt = '' # format string used to set the value in dpdk_conf
-       driver_name_fmt = '' # format string for driver name, used to name
-                            # the library, the dependency and to find the
-                            # version file for linking
 
        # subpath can be either "class" or "class/driver"
        if subpath.contains('/')
@@ -113,11 +110,14 @@ foreach subpath:subdirs
                        endif
                else
                        enabled_drivers += name
+                       lib_name = '_'.join(['rte', class, name])
+                       dpdk_conf.set(lib_name.to_upper(), 1)
 
                        if fmt_name == ''
                                fmt_name = name
                        endif
-                       dpdk_conf.set(config_flag_fmt.format(fmt_name.to_upper()),1)
+
+                       dpdk_conf.set(config_flag_fmt.format(fmt_name.to_upper()),1) #old-style macro
                        # for driver compatibility, since we changed the
                        # default to match that of make. Remove in future release
                        # after following deprecation process
@@ -133,7 +133,6 @@ foreach subpath:subdirs
                                dpdk_conf.set(alt_flag_fmt.format(
                                                fmt_name.to_upper()), 1)
                        endif
-                       lib_name = driver_name_fmt.format(fmt_name)
 
                        dpdk_extra_ldflags += pkgconfig_extra_libs
 
index d56b24051a94477655766298b2ac075069bf4ea6..4e4c2c976a15666643a4ba04b931f49a12f12bbf 100644 (file)
@@ -59,4 +59,3 @@ std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
 std_deps += ['bus_pci']         # very many PMDs depend on PCI, so make std
 std_deps += ['bus_vdev']        # same with vdev bus
 config_flag_fmt = 'RTE_LIBRTE_@0@_PMD'
-driver_name_fmt = 'rte_pmd_@0@'
index 5a25e11a7b8c570af7e060638ffceefb495de700..4040065150f68212937649542fede193c156537e 100644 (file)
@@ -116,7 +116,7 @@ configure_file(output : 'mlx4_autoconf.h', configuration : config)
 # Build Glue Library
 if dlopen_ibverbs
        dlopen_name = 'mlx4_glue'
-       dlopen_lib_name = driver_name_fmt.format(dlopen_name)
+       dlopen_lib_name = 'rte_net_' + dlopen_name
        dlopen_so_version = LIB_GLUE_VERSION
        dlopen_sources = files('mlx4_glue.c')
        dlopen_install_dir = [ eal_pmd_path + '-glue' ]
index da454b1942afca3e9d3c5040c3e4a46f3e8781d1..027ff805624adc9da2df5979c80d74f5b1e0261a 100644 (file)
@@ -11,7 +11,7 @@ subdir('base')
 objs = [base_objs]
 
 deps += ['ethdev', 'rawdev', 'pci', 'bus_pci', 'kvargs',
-       'bus_vdev', 'bus_ifpga', 'net', 'pmd_i40e', 'pmd_ipn3ke']
+       'bus_vdev', 'bus_ifpga', 'net', 'net_i40e', 'net_ipn3ke']
 
 sources = files('ifpga_rawdev.c')
 
index 2c1e65ec798652022ddbb6a341aa2b7493d08759..d8d6cf58241034b6204c91ead117aed4dbf6c280 100644 (file)
@@ -12,4 +12,3 @@ drivers = ['dpaa2_cmdif', 'dpaa2_qdma',
        'skeleton']
 std_deps = ['rawdev']
 config_flag_fmt = 'RTE_LIBRTE_PMD_@0@_RAWDEV'
-driver_name_fmt = 'rte_rawdev_@0@'
index 79bb5d5df667ed24d878be541fef485c9981d88c..880a1b4a3b329da4fa1ae875d2272b3e371206c5 100644 (file)
@@ -4,4 +4,3 @@
 drivers = ['mlx5', 'octeontx2']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
 config_flag_fmt = 'RTE_LIBRTE_@0@_PMD'
-driver_name_fmt = 'rte_pmd_@0@'
index 798eb383050ad670f59d44ed805f33fd9cb282c7..b346e43086f13c86e96a04e14a51ad62a75fda4a 100644 (file)
@@ -10,4 +10,3 @@ drivers = ['ifc',
 std_deps = ['bus_pci', 'kvargs']
 std_deps += ['vhost']
 config_flag_fmt = 'RTE_LIBRTE_@0@_PMD'
-driver_name_fmt = 'rte_pmd_@0@'
index 82e355a49270fa20c8a764dd1b95c5c890dae8cd..69382ffcd2aa6b69661d215f425a95204d43f57f 100644 (file)
@@ -6,7 +6,7 @@
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
-deps += 'pmd_bond'
+deps += 'net_bond'
 allow_experimental_apis = true
 sources = files(
        'main.c'
index bc7a35514cec8051f67ac6ac8f7ea94f810b2917..fdfdd1971e5e4d0630ca6cd38cb590ffff5dfb23 100644 (file)
@@ -14,7 +14,7 @@ includes = include_directories('lib', 'ethtool-app')
 
 deps += 'bus_pci'
 if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')
-       deps += 'pmd_ixgbe'
+       deps += 'net_ixgbe'
 endif
 
 allow_experimental_apis = true
index f72cf70e7e613c8eac12230333eb3bb8a47cd27f..f1a045a0a607abab18da4e823ca892976009904e 100644 (file)
@@ -9,7 +9,7 @@
 allow_experimental_apis = true
 build = dpdk_conf.has('RTE_LIBRTE_PMD_IOAT_RAWDEV')
 
-deps += ['rawdev_ioat']
+deps += ['raw_ioat']
 
 sources = files(
        'ioatfwd.c'
index 39e1604fac8e288bd95f0cc92c2cdadfa526be53..9002d62a6ca30bbdde2cb3bd81d13ab86e720087 100644 (file)
@@ -8,7 +8,7 @@
 
 deps += 'cryptodev'
 if dpdk_conf.has('RTE_LIBRTE_PMD_CRYPTO_SCHEDULER')
-       deps += 'pmd_crypto_scheduler'
+       deps += 'crypto_scheduler'
 endif
 allow_experimental_apis = true
 sources = files(
index 45a59350c55d1f93d3d6ead7b7cbc498a8787dc1..bac6e5cd233dd2d87eb8d3f50b1d13b229f05610 100644 (file)
@@ -16,5 +16,5 @@ sources = files(
        'ntb_fwd.c'
 )
 if dpdk_conf.has('RTE_LIBRTE_PMD_NTB_RAWDEV')
-       deps += 'rawdev_ntb'
+       deps += 'raw_ntb'
 endif
index 54e2b584f666b9a0647f8c1bb25cc9ff3087d0ca..2dd132015ffc3cb0c52a35fd5d7cc1ad17ca888f 100644 (file)
@@ -14,15 +14,15 @@ endif
 deps += ['power']
 
 if dpdk_conf.has('RTE_LIBRTE_BNXT_PMD')
-       deps += ['pmd_bnxt']
+       deps += ['net_bnxt']
 endif
 
 if dpdk_conf.has('RTE_LIBRTE_I40E_PMD')
-       deps += ['pmd_i40e']
+       deps += ['net_i40e']
 endif
 
 if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')
-       deps += ['pmd_ixgbe']
+       deps += ['net_ixgbe']
 endif
 
 allow_experimental_apis = true
index 8fc24e8c8ab8ec7246879ca8bff68fb47c501816..e4b610246f2a0c8dfbe7a60decc9aebbafd2759f 100644 (file)
@@ -1,7 +1,6 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-name = 'ethdev'
 sources = files('ethdev_private.c',
        'ethdev_profile.c',
        'ethdev_trace_points.c',
index d5de1e250ab9bafdc0676823e4eb12366e04350d..d3ec78ca62cf1aa3b0c0088d2b0c3c3069b6a46d 100644 (file)
@@ -1,8 +1,6 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(C) 2020 Marvell International Ltd.
 
-name = 'graph'
-
 sources = files('node.c', 'graph.c', 'graph_ops.c', 'graph_debug.c', 'graph_stats.c', 'graph_populate.c')
 headers = files('rte_graph.h', 'rte_graph_worker.h')
 
index a42e34f54ea80aff7ec82e9cd822eae31a84cc38..094454ea5107f7201836e83905f65c735f884560 100644 (file)
@@ -99,7 +99,8 @@ foreach l:libraries
                set_variable(name.underscorify() + '_disable_reason', reason)
        else
                enabled_libs += name
-               dpdk_conf.set('RTE_LIBRTE_' + name.to_upper(), 1)
+               dpdk_conf.set('RTE_LIBRTE_' + name.to_upper(), 1) #old macro
+               dpdk_conf.set('RTE_LIB_' + name.to_upper(), 1) # new macro
                install_headers(headers)
 
                libname = 'rte_' + name