dsp: fru: Rename get_fru_record_by_option_check()

We drop the `_check` suffix so that it is now
`get_fru_record_by_option()`.

To do so, introduce some infrastructure that makes renaming APIs
easier and scripts the migration for users. The renaming process comes
in several parts, which are captured in the addition to the changes
checklist.

The coccinelle script based off the insight at [1].

[1]: https://stackoverflow.com/questions/42776220/coccinelle-help-to-replace-a-function-with-variable-args

Change-Id: I730b76c3e3c92dcc046fecbee76cd6b040f11d21
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/src/meson.build b/src/meson.build
index 525463f..5242eed 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -15,6 +15,11 @@
    subdir('oem/meta')
 endif
 
+libpldm_link_args = []
+foreach alias : libpldm_deprecated_aliases
+  libpldm_link_args += '-Wl,--defsym=@0@=@1@'.format(alias[0], alias[1])
+endforeach
+
 libpldm = library(
   'pldm',
    libpldm_sources,
@@ -23,6 +28,7 @@
      libpldm_include_dir,
      include_directories('.')
    ],
+   link_args: libpldm_link_args,
    version: meson.project_version(),
    gnu_symbol_visibility: 'hidden',
    install: true