Initial commit
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
SUMMARY = "Add Chassis interface 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
|
||||
|
||||
PROVIDES += "virtual/phosphor-inventory-manager-chassis"
|
||||
S = "${WORKDIR}"
|
||||
|
||||
SRC_URI = "file://chassis.yaml"
|
||||
|
||||
do_install() {
|
||||
install -D chassis.yaml ${D}${base_datadir}/events.d/chassis.yaml
|
||||
}
|
||||
|
||||
FILES:${PN} += "${base_datadir}/events.d/chassis.yaml"
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
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
|
||||
+1704
File diff suppressed because it is too large
Load Diff
+10
@@ -0,0 +1,10 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
PACKAGECONFIG:append = " associations"
|
||||
SRC_URI += " file://associations.json"
|
||||
|
||||
DEPENDS += " phosphor-inventory-manager-chassis"
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${base_datadir}
|
||||
install -m 0755 ${WORKDIR}/associations.json ${D}${base_datadir}/associations.json
|
||||
}
|
||||
Reference in New Issue
Block a user