Initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
SUMMARY = "Copy the inventory cleanup yaml for inventory manager"
|
||||
PR = "r1"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
|
||||
|
||||
inherit allarch
|
||||
inherit phosphor-inventory-manager
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
SRC_URI:append:ibm-ac-server = " file://inventory-cleanup.yaml"
|
||||
|
||||
do_install:append:ibm-ac-server() {
|
||||
install -D inventory-cleanup.yaml ${D}${base_datadir}/events.d/inventory-cleanup.yaml
|
||||
}
|
||||
|
||||
FILES:${PN}:append:ibm-ac-server = " ${base_datadir}/events.d/inventory-cleanup.yaml"
|
||||
@@ -0,0 +1,16 @@
|
||||
description: >
|
||||
Swift inventory fixups
|
||||
|
||||
events:
|
||||
- name: Add Chassis interface
|
||||
description: >
|
||||
Add the chassis interface on the chassis inventory path
|
||||
type: startup
|
||||
actions:
|
||||
- name: createObjects
|
||||
objs:
|
||||
/system/chassis:
|
||||
xyz.openbmc_project.Inventory.Item.Chassis:
|
||||
Type:
|
||||
value: "xyz.openbmc_project.Inventory.Item.Chassis.ChassisType.RackMount"
|
||||
type: string
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
description: >
|
||||
Witherspoon inventory fixups
|
||||
|
||||
events:
|
||||
- name: Remove power_supplies
|
||||
description: >
|
||||
Remove the deprecated 'power_supply' objects
|
||||
type: startup
|
||||
actions:
|
||||
- name: destroyObjects
|
||||
paths:
|
||||
- /system/chassis/power_supply0
|
||||
- /system/chassis/power_supply1
|
||||
- /system/chassis/powersupply0
|
||||
- /system/chassis/powersupply1
|
||||
|
||||
- name: Remove fan1
|
||||
description: >
|
||||
Remove all fan1 associated objects and have fan presence and
|
||||
fan monitor create it based on cooling type.
|
||||
type: startup
|
||||
filters:
|
||||
- name: propertyIs
|
||||
service: xyz.openbmc_project.Inventory.Manager
|
||||
path: /system/chassis
|
||||
interface: xyz.openbmc_project.Inventory.Decorator.CoolingType
|
||||
property: WaterCooled
|
||||
value:
|
||||
value: true
|
||||
type: boolean
|
||||
dbusMember: "sdbusplus::xyz::openbmc_project::Inventory::\
|
||||
Decorator::server::CoolingType"
|
||||
actions:
|
||||
- name: destroyObjects
|
||||
paths:
|
||||
- /system/chassis/motherboard/fan1/fan1_0
|
||||
- /system/chassis/motherboard/fan1/fan1_1
|
||||
- /system/chassis/motherboard/fan1
|
||||
|
||||
- name: Add Chassis interface
|
||||
description: >
|
||||
Add the chassis interface on the chassis inventory path
|
||||
type: startup
|
||||
actions:
|
||||
- name: createObjects
|
||||
objs:
|
||||
/system/chassis:
|
||||
xyz.openbmc_project.Inventory.Item.Chassis:
|
||||
Type:
|
||||
value: "xyz.openbmc_project.Inventory.Item.Chassis.ChassisType.RackMount"
|
||||
type: string
|
||||
File diff suppressed because it is too large
Load Diff
+4708
File diff suppressed because it is too large
Load Diff
+3648
File diff suppressed because it is too large
Load Diff
+3790
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,23 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
PACKAGECONFIG:append:ibm-ac-server = " associations"
|
||||
SRC_URI:append:ibm-ac-server = " file://associations.json"
|
||||
DEPENDS:append:ibm-ac-server = " inventory-cleanup"
|
||||
|
||||
PACKAGECONFIG:append:p10bmc = " associations"
|
||||
SRC_URI:append:p10bmc = " \
|
||||
file://ibm,rainier-2u_associations.json \
|
||||
file://ibm,rainier-4u_associations.json \
|
||||
file://ibm,everest_associations.json \
|
||||
"
|
||||
|
||||
do_install:append:ibm-ac-server() {
|
||||
install -d ${D}${base_datadir}
|
||||
install -m 0755 ${WORKDIR}/associations.json ${D}${base_datadir}/associations.json
|
||||
}
|
||||
|
||||
do_install:append:p10bmc() {
|
||||
install -d ${D}${base_datadir}
|
||||
install -m 0755 ${WORKDIR}/ibm,rainier-2u_associations.json ${D}${base_datadir}/ibm,rainier-2u_associations.json
|
||||
install -m 0755 ${WORKDIR}/ibm,rainier-4u_associations.json ${D}${base_datadir}/ibm,rainier-4u_associations.json
|
||||
install -m 0755 ${WORKDIR}/ibm,everest_associations.json ${D}${base_datadir}/ibm,everest_associations.json
|
||||
}
|
||||
Reference in New Issue
Block a user