blob: 8de43d28f7af78998930c415723e4f8c9a2c0192 [file] [log] [blame]
Andrew Jeffery1b77f28e2018-04-06 14:13:14 +09301SUMMARY = "Phosphor IPMI daemon configuration"
2PR = "r1"
Brad Bishop75f03872018-11-03 09:41:57 -07003LICENSE = "Apache-2.0"
Brad Bishop6f3f0aa2019-09-13 12:14:05 -04004LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Andrew Jeffery1b77f28e2018-04-06 14:13:14 +09305
Andrew Jeffery1b77f28e2018-04-06 14:13:14 +09306inherit allarch
7
8SRC_URI = " \
9 file://cipher_list.json \
10 file://dcmi_cap.json \
11 file://dcmi_sensors.json \
12 file://dev_id.json \
13 file://power_reading.json \
AppaRao Puli225e91f2018-06-27 23:40:11 +053014 file://channel_access.json \
15 file://channel_config.json \
Patrick Venture8327bba2019-08-19 12:32:53 -070016 file://entity-map.json \
Andrew Jeffery1b77f28e2018-04-06 14:13:14 +093017 "
18
19FILES_${PN} = " \
20 ${datadir}/ipmi-providers/cipher_list.json \
21 ${datadir}/ipmi-providers/dcmi_cap.json \
22 ${datadir}/ipmi-providers/dcmi_sensors.json \
23 ${datadir}/ipmi-providers/dev_id.json \
24 ${datadir}/ipmi-providers/power_reading.json \
AppaRao Puli225e91f2018-06-27 23:40:11 +053025 ${datadir}/ipmi-providers/channel_access.json \
26 ${datadir}/ipmi-providers/channel_config.json \
Patrick Venture8327bba2019-08-19 12:32:53 -070027 ${datadir}/ipmi-providers/entity-map.json \
Andrew Jeffery1b77f28e2018-04-06 14:13:14 +093028 "
29
30do_fetch[noexec] = "1"
31do_patch[noexec] = "1"
32do_configure[noexec] = "1"
33do_compile[noexec] = "1"
34
35do_install() {
36 install -d ${D}${datadir}/ipmi-providers
37 install -m 0644 -D ${WORKDIR}/cipher_list.json \
38 ${D}${datadir}/ipmi-providers/cipher_list.json
39 install -m 0644 -D ${WORKDIR}/dcmi_cap.json \
40 ${D}${datadir}/ipmi-providers/dcmi_cap.json
41 install -m 0644 -D ${WORKDIR}/dcmi_sensors.json \
42 ${D}${datadir}/ipmi-providers/dcmi_sensors.json
43 install -m 0644 -D ${WORKDIR}/dev_id.json \
44 ${D}${datadir}/ipmi-providers/dev_id.json
45 install -m 0644 -D ${WORKDIR}/power_reading.json \
46 ${D}${datadir}/ipmi-providers/power_reading.json
AppaRao Puli225e91f2018-06-27 23:40:11 +053047 install -m 0644 -D ${WORKDIR}/channel_access.json \
48 ${D}${datadir}/ipmi-providers/channel_access.json
49 install -m 0644 -D ${WORKDIR}/channel_config.json \
50 ${D}${datadir}/ipmi-providers/channel_config.json
Patrick Venture8327bba2019-08-19 12:32:53 -070051 install -m 0644 -D ${WORKDIR}/entity-map.json \
52 ${D}${datadir}/ipmi-providers/entity-map.json
Andrew Jeffery1b77f28e2018-04-06 14:13:14 +093053}