summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Schiffer <pschiffe@redhat.com>2013-07-29 13:27:48 +0200
committerPeter Schiffer <pschiffe@redhat.com>2013-07-29 13:27:48 +0200
commit6bd39a5e4f44bf757767dd8dbc3b906b0396f1ec (patch)
tree404616da4ede384279abcc4fabeaca67b7db85d2
parentcc31492633d833c5d5ae06a62a8303f5210c387a (diff)
downloadopenlmi-providers-6bd39a5e4f44bf757767dd8dbc3b906b0396f1ec.tar.gz
openlmi-providers-6bd39a5e4f44bf757767dd8dbc3b906b0396f1ec.tar.xz
openlmi-providers-6bd39a5e4f44bf757767dd8dbc3b906b0396f1ec.zip
Hardware: Added profile registration
-rw-r--r--src/hardware/90_LMI_Hardware_Profile.mof.skel21
-rw-r--r--src/hardware/90_LMI_Hardware_Profile_DMTF.mof99
-rw-r--r--src/hardware/CMakeLists.txt7
3 files changed, 127 insertions, 0 deletions
diff --git a/src/hardware/90_LMI_Hardware_Profile.mof.skel b/src/hardware/90_LMI_Hardware_Profile.mof.skel
new file mode 100644
index 0000000..fbf562f
--- /dev/null
+++ b/src/hardware/90_LMI_Hardware_Profile.mof.skel
@@ -0,0 +1,21 @@
+instance of PG_ProviderProfileCapabilities
+{
+ CapabilityID = "@CLASS@";
+
+ ProviderModuleName = "cmpiLMI_Hardware";
+
+ ProviderName = "@CLASS@";
+
+ RegisteredProfile = 0;
+
+ OtherRegisteredProfile = "OpenLMI-Hardware";
+ OtherProfileOrganization = "OpenLMI";
+
+ ProfileVersion = "@VERSION@";
+
+ RegisteredSubProfiles = {};
+
+ ConformingElements = {
+ "@CLASS@"
+ };
+};
diff --git a/src/hardware/90_LMI_Hardware_Profile_DMTF.mof b/src/hardware/90_LMI_Hardware_Profile_DMTF.mof
new file mode 100644
index 0000000..777fa90
--- /dev/null
+++ b/src/hardware/90_LMI_Hardware_Profile_DMTF.mof
@@ -0,0 +1,99 @@
+instance of PG_ProviderProfileCapabilities
+{
+ CapabilityID = "LMI_Processor_DMTF";
+
+ ProviderModuleName = "cmpiLMI_Hardware";
+
+ ProviderName = "LMI_Processor";
+
+ RegisteredProfile = 507;
+
+ ProfileVersion = "1.0.2";
+
+ RegisteredSubprofiles = {
+ 3016
+ };
+
+ SubprofileVersions = {
+ "1.0.1"
+ };
+
+ ConformingElements = {
+ "LMI_Processor"
+ };
+};
+
+instance of PG_ProviderProfileCapabilities
+{
+ CapabilityID = "LMI_Memory_DMTF";
+
+ ProviderModuleName = "cmpiLMI_Hardware";
+
+ ProviderName = "LMI_Memory";
+
+ RegisteredProfile = 507;
+
+ ProfileVersion = "1.0.2";
+
+ RegisteredSubprofiles = {
+ 3020
+ };
+
+ SubprofileVersions = {
+ "1.0.1"
+ };
+
+ ConformingElements = {
+ "LMI_Memory"
+ };
+};
+
+instance of PG_ProviderProfileCapabilities
+{
+ CapabilityID = "LMI_Battery_DMTF";
+
+ ProviderModuleName = "cmpiLMI_Hardware";
+
+ ProviderName = "LMI_Battery";
+
+ RegisteredProfile = 507;
+
+ ProfileVersion = "1.0.2";
+
+ RegisteredSubprofiles = {
+ 3024
+ };
+
+ SubprofileVersions = {
+ "1.0.0"
+ };
+
+ ConformingElements = {
+ "LMI_Battery"
+ };
+};
+
+instance of PG_ProviderProfileCapabilities
+{
+ CapabilityID = "LMI_PCIDevice_DMTF";
+
+ ProviderModuleName = "cmpiLMI_Hardware";
+
+ ProviderName = "LMI_PCIDevice";
+
+ RegisteredProfile = 507;
+
+ ProfileVersion = "1.0.2";
+
+ RegisteredSubprofiles = {
+ 3038
+ };
+
+ SubprofileVersions = {
+ "1.0.0"
+ };
+
+ ConformingElements = {
+ "LMI_PCIDevice"
+ };
+};
diff --git a/src/hardware/CMakeLists.txt b/src/hardware/CMakeLists.txt
index 728c3d8..8089a08 100644
--- a/src/hardware/CMakeLists.txt
+++ b/src/hardware/CMakeLists.txt
@@ -31,5 +31,12 @@ target_link_libraries(${LIBRARY_NAME} openlmicommon ${KONKRETCMPI_LIBRARIES} ${L
# Create registration file
cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} ${MOF} share/openlmi-providers)
+set(TARGET_MOF "${CMAKE_BINARY_DIR}/mof/90_LMI_${PROVIDER_NAME}_Profile.mof")
+profile_mof_generate("90_LMI_${PROVIDER_NAME}_Profile.mof.skel" "${TARGET_MOF}" "${CIM_CLASSES}")
+set(TARGET_MOF_DMTF "${CMAKE_BINARY_DIR}/mof/90_LMI_${PROVIDER_NAME}_Profile_DMTF.mof")
+configure_file("90_LMI_${PROVIDER_NAME}_Profile_DMTF.mof" "${TARGET_MOF_DMTF}" COPYONLY)
+
install(TARGETS ${LIBRARY_NAME} DESTINATION lib${LIB_SUFFIX}/cmpi)
install(PROGRAMS ${CIMPROVAGT_SCRIPT} DESTINATION libexec/pegasus)
+install(FILES ${TARGET_MOF} DESTINATION share/openlmi-providers/)
+install(FILES ${TARGET_MOF_DMTF} DESTINATION share/openlmi-providers/)