George Hung | 30cafdc | 2020-06-30 15:48:16 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 2 | SRC_URI_append_gbs = " file://nvme_config.json" |
| 3 | SRC_URI_append_gbs = " file://nvme_json_rewrite.sh" |
| 4 | SRC_URI_append_gbs = " file://xyz.openbmc_project.nvme.manager.service.replace" |
| 5 | |
| 6 | RDEPENDS_${PN} += "bash" |
| 7 | |
| 8 | do_install_append_gbs() { |
| 9 | install -d ${D}/${sysconfdir}/nvme/ |
| 10 | install -m 0644 ${WORKDIR}/nvme_config.json ${D}/${sysconfdir}/nvme/ |
| 11 | |
| 12 | install -d ${D}${bindir} |
| 13 | install -m 0755 ${WORKDIR}/nvme_json_rewrite.sh ${D}${bindir}/ |
| 14 | |
| 15 | install -d ${D}${systemd_system_unitdir} |
| 16 | install -m 0644 ${WORKDIR}/xyz.openbmc_project.nvme.manager.service.replace ${D}${systemd_system_unitdir}/xyz.openbmc_project.nvme.manager.service |
| 17 | } |