oem-ibm: build: fix for oem-ibm flag disabled
This commit fixes the issues that were seen when
trying to build pldm with oem-ibm disabled. Added
the pldmIBMHostCmds within the IBM_OEM flags.
Tested: build was successful with oem-ibm disabled.
Change-Id: Ie311743e6126c6971994062eb26f6036d7ecc157
Signed-off-by: Pavithra Barithaya <pbaritha@in.ibm.com>
diff --git a/tool/pldm_base_cmd.cpp b/tool/pldm_base_cmd.cpp
index c0801a0..1b0ebd2 100644
--- a/tool/pldm_base_cmd.cpp
+++ b/tool/pldm_base_cmd.cpp
@@ -314,8 +314,10 @@
printCommand(pldmFruCmds, i);
break;
case PLDM_OEM:
+#ifdef OEM_IBM
printCommand(pldmIBMHostCmds, i);
printCommand(pldmIBMFileIOCmds, i);
+#endif
break;
default:
break;