Potin Lai | eb37b94 | 2023-02-08 13:25:38 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
| 2 | |
| 3 | inherit obmc-phosphor-systemd |
| 4 | |
| 5 | SRC_URI:append:bletchley = " \ |
| 6 | file://nvme-json-rewrite \ |
| 7 | file://nvme-json-rewrite.conf \ |
Delphine CC Chiu | 796196a | 2023-06-27 13:48:55 +0800 | [diff] [blame^] | 8 | file://nvme_config.json \ |
Potin Lai | eb37b94 | 2023-02-08 13:25:38 +0800 | [diff] [blame] | 9 | " |
| 10 | |
| 11 | RDEPENDS:${PN}:bletchley += "bash" |
| 12 | |
| 13 | do_install:append:bletchley() { |
| 14 | install -d ${D}${libexecdir}/${PN}/ |
| 15 | install -m 0755 ${WORKDIR}/nvme-json-rewrite ${D}${libexecdir}/${PN}/ |
Delphine CC Chiu | 796196a | 2023-06-27 13:48:55 +0800 | [diff] [blame^] | 16 | |
| 17 | install -d ${D}${sysconfdir}/nvme |
| 18 | install -m 0644 -D ${WORKDIR}/nvme_config.json ${D}${sysconfdir}/nvme |
Potin Lai | eb37b94 | 2023-02-08 13:25:38 +0800 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | SYSTEMD_OVERRIDE:${PN}:append:bletchley = " \ |
| 22 | nvme-json-rewrite.conf:xyz.openbmc_project.nvme.manager.service.d/nvme-json-rewrite.conf \ |
| 23 | " |