Skip to content

Commit

Permalink
include: Drop compat symlinks for IBM OEM headers
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
amboar authored and ArchanaKakani committed Sep 6, 2024
1 parent 13cba3e commit af73cf3
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ Change categories:

[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
Expand Down
29 changes: 29 additions & 0 deletions evolutions/current/oem-ibm-header-compat.cocci
Original file line number Diff line number Diff line change
@@ -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>
7 changes: 0 additions & 7 deletions include/libpldm/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ if get_option('oem-ibm').allowed()
'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()
Expand Down

0 comments on commit af73cf3

Please sign in to comment.