summaryrefslogtreecommitdiff
path: root/meta-hpe/meta-common/recipes-hpe/host/host-boot-enable.bb
blob: 58cc921a503ddf26bae0d2852198feb9d8f2fe93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SUMMARY = "Enable Host Boot"
PR = "r1"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${HPEBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"

inherit obmc-phosphor-systemd

HOST_BOOT_SERVICE = "host-boot-enable.service"
SYSTEMD_SERVICE:${PN} += "${HOST_BOOT_SERVICE}"

HOST_BOOT_FMT = "../${HOST_BOOT_SERVICE}:multi-user.target.wants/${HOST_BOOT_SERVICE}"
SYSTEMD_LINK_${PN} += "${HOST_BOOT_FMT}"

SRC_URI += "file://host-boot-enable.service"
SRC_URI += "file://host-boot-enable.sh"

do_install() {
	install -d ${D}${bindir}
	install -m 0755 ${WORKDIR}/host-boot-enable.sh ${D}${bindir}
}