summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Safranek <jsafrane@redhat.com>2013-07-26 13:16:49 +0200
committerJan Safranek <jsafrane@redhat.com>2013-07-26 13:16:49 +0200
commiteddd9e5d1b97be919e7cad7a62bc7316898f4a68 (patch)
tree49df652c71ef42c27ab387451f244b6ae1720dbe /src
parent303c42d5a19cdbfa833ccb07babed3404c140d01 (diff)
downloadopenlmi-providers-eddd9e5d1b97be919e7cad7a62bc7316898f4a68.tar.gz
openlmi-providers-eddd9e5d1b97be919e7cad7a62bc7316898f4a68.tar.xz
openlmi-providers-eddd9e5d1b97be919e7cad7a62bc7316898f4a68.zip
Register profile for LMI_Fan provider
Diffstat (limited to 'src')
-rw-r--r--src/fan/90_LMI_Fan_Profile.mof.skel41
-rw-r--r--src/fan/CMakeLists.txt4
2 files changed, 44 insertions, 1 deletions
diff --git a/src/fan/90_LMI_Fan_Profile.mof.skel b/src/fan/90_LMI_Fan_Profile.mof.skel
new file mode 100644
index 0000000..e8d89f2
--- /dev/null
+++ b/src/fan/90_LMI_Fan_Profile.mof.skel
@@ -0,0 +1,41 @@
+instance of PG_ProviderProfileCapabilities
+{
+ CapabilityID = "@CLASS@";
+
+ ProviderModuleName = "cmpiLMI_Fan";
+
+ ProviderName = "@CLASS@";
+
+ RegisteredProfile = 0;
+
+ OtherRegisteredProfile = "OpenLMI-Fan";
+ OtherProfileOrganization = "OpenLMI";
+
+ ProfileVersion = "@VERSION@";
+
+ ConformingElements = {
+ "@CLASS@"
+ };
+ RegisteredSubProfiles = {};
+};
+
+instance of PG_ProviderProfileCapabilities
+{
+ CapabilityID = "DMTF_@CLASS@";
+
+ ProviderModuleName = "cmpiLMI_Fan";
+
+ ProviderName = "@CLASS@";
+
+ RegisteredProfile = 0;
+
+ OtherRegisteredProfile = "Fan";
+ OtherProfileOrganization = "DMTF";
+
+ ProfileVersion = "1.0.1";
+
+ ConformingElements = {
+ "@CLASS@"
+ };
+ RegisteredSubProfiles = {};
+};
diff --git a/src/fan/CMakeLists.txt b/src/fan/CMakeLists.txt
index a5324f7..0028997 100644
--- a/src/fan/CMakeLists.txt
+++ b/src/fan/CMakeLists.txt
@@ -26,6 +26,8 @@ target_link_libraries(${LIBRARY_NAME} openlmicommon ${KONKRETCMPI_LIBRARIES} sen
# Create registration file
cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} ${MOF} share/openlmi-providers)
+set(TARGET_MOF "${CMAKE_BINARY_DIR}/mof/90_LMI_Fan_Profile.mof")
+profile_mof_generate("90_LMI_Fan_Profile.mof.skel" "${TARGET_MOF}" "${CIM_CLASSES}")
install(TARGETS ${LIBRARY_NAME} DESTINATION lib${LIB_SUFFIX}/cmpi/)
-
+install(FILES ${TARGET_MOF} DESTINATION share/openlmi-providers/)