blob: eaa04dfef4c3e804b68d7ee90c7abcfbf5c37356 [file] [log] [blame]
Alexander Filippov126f6672018-11-28 11:32:04 +03001SUMMARY = "Init BMC MAC address"
2DESCRIPTION = "Setup BMC MAC address read from VPD"
3PR = "r1"
4LICENSE = "Apache-2.0"
Brad Bishop1ebdb612019-09-13 12:18:25 -04005LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Alexander Filippov126f6672018-11-28 11:32:04 +03006
7inherit allarch systemd
8
Adriana Kobylak8c6707f2021-08-06 17:35:36 +00009RDEPENDS:${PN} = "${VIRTUAL-RUNTIME_base-utils}"
Alexander Filippov126f6672018-11-28 11:32:04 +030010
Adriana Kobylak8c6707f2021-08-06 17:35:36 +000011SYSTEMD_SERVICE:${PN} = "first-boot-set-mac@.service"
Alexander Filippov126f6672018-11-28 11:32:04 +030012
Brad Bishop558caea2019-06-21 09:32:36 -040013SRC_URI = "file://${BPN}.sh file://${BPN}@.service"
Alexander Filippov126f6672018-11-28 11:32:04 +030014
15S = "${WORKDIR}"
16do_install() {
17 install -d ${D}${bindir} ${D}${systemd_system_unitdir}
Brad Bishop558caea2019-06-21 09:32:36 -040018 install ${BPN}.sh ${D}${bindir}/
19 install -m 644 ${BPN}@.service ${D}${systemd_system_unitdir}/
Alexander Filippov126f6672018-11-28 11:32:04 +030020}