summaryrefslogtreecommitdiff
path: root/meta-yadro/meta-vegman/recipes-yadro/fru/vegman-fru-handler.bb
blob: 5329d6ed6bff7567488a7aae269a1b56fc6908fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SUMMARY = "Apply default configuration from baseboard FRU"
DESCRIPTION = "Provide baseboard FRU EEPROM handlers to apply platform configuration on system boot"

inherit systemd

SYSTEMD_SERVICE:${PN} = " \
        baseboard-fru-handler.service \
    "

RDEPENDS:${PN} = "bash u-boot-fw-utils"
S = "${WORKDIR}"
SRC_URI = " \
        file://baseboard-fru-handler.sh \
        file://baseboard-fru-handler.service \
    "

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

do_install() {
    install -m 0755 ${S}/baseboard-fru-handler.sh -D -t ${D}${bindir}
    install -m 0644 ${S}/baseboard-fru-handler.service -D -t ${D}${systemd_system_unitdir}
}