include: Drop compat symlinks for IBM OEM headers

These symlinks have been in-place long enough for people to migrate.
Provide a coccinelle semantic patch to help anyone who hasn't.

Change-Id: Iab456ebba8d87c57eb2d573b7a8bffb394e0bb00
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6c2cb1b..f6a904f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -38,6 +38,13 @@
 
 [coccinelle]: https://coccinelle.gitlabpages.inria.fr/website/
 
+### Removed
+
+1. IBM OEM header compatibility symlinks.
+
+   Anyone left using the deprecated paths can migrate using the coccinelle patch
+   at `evolutions/current/oem-ibm-header-compat.cocci`.
+
 ## [0.8.0] - 2024-05-23
 
 ### Added
diff --git a/evolutions/current/oem-ibm-header-compat.cocci b/evolutions/current/oem-ibm-header-compat.cocci
new file mode 100644
index 0000000..d1ea758
--- /dev/null
+++ b/evolutions/current/oem-ibm-header-compat.cocci
@@ -0,0 +1,29 @@
+@@
+@@
+-#include <libpldm/file_io.h>
++#include <libpldm/oem/ibm/file_io.h>
+
+@@
+@@
+-#include <libpldm/entity_oem_ibm.h>
++#include <libpldm/oem/ibm/entity.h>
+
+@@
+@@
+-#include <libpldm/fru_oem_ibm.h>
++#include <libpldm/oem/ibm/fru.h>
+
+@@
+@@
+-#include <libpldm/host.h>
++#include <libpldm/oem/ibm/host.h>
+
+@@
+@@
+-#include <libpldm/platform_oem_ibm.h>
++#include <libpldm/oem/ibm/platform.h>
+
+@@
+@@
+-#include <libpldm/state_set_oem_ibm.h>
++#include <libpldm/oem/ibm/state_set.h>
diff --git a/include/libpldm/meson.build b/include/libpldm/meson.build
index 235a7a6..a4e9c8e 100644
--- a/include/libpldm/meson.build
+++ b/include/libpldm/meson.build
@@ -27,13 +27,6 @@
     'oem/ibm/platform.h',
     'oem/ibm/state_set.h'
   )
-
-  install_symlink('file_io.h', pointing_to: 'oem/ibm/file_io.h', install_dir: 'include/libpldm')
-  install_symlink('entity_oem_ibm.h', pointing_to: 'oem/ibm/entity.h', install_dir: 'include/libpldm')
-  install_symlink('fru_oem_ibm.h', pointing_to: 'oem/ibm/fru.h', install_dir: 'include/libpldm')
-  install_symlink('host.h', pointing_to: 'oem/ibm/host.h', install_dir: 'include/libpldm')
-  install_symlink('platform_oem_ibm.h', pointing_to: 'oem/ibm/platform.h', install_dir: 'include/libpldm')
-  install_symlink('state_set_oem_ibm.h', pointing_to: 'oem/ibm/state_set.h', install_dir: 'include/libpldm')
 endif
 
 if get_option('oem-meta').allowed()