blob: 974c6204dd18b3884a044611eb034a678c4c29a1 [file] [log] [blame]
Brandon Kim1e427092021-08-10 15:46:03 -07001FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
2SRC_URI:append:gbs = " file://nvme_config.json"
3SRC_URI:append:gbs = " file://nvme_json_rewrite.sh"
4SRC_URI:append:gbs = " file://xyz.openbmc_project.nvme.manager.service.replace"
George Hung9dcc3572020-06-30 15:48:16 +08005
Brandon Kim1e427092021-08-10 15:46:03 -07006RDEPENDS:${PN} += "bash"
George Hung9dcc3572020-06-30 15:48:16 +08007
Brandon Kim1e427092021-08-10 15:46:03 -07008do_install:append:gbs() {
George Hung9dcc3572020-06-30 15:48:16 +08009 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}