summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-phosphor/fru/default-fru.bb
blob: b113547da12015eaa2b1dfb7c3dc91fcd705a8c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
SUMMARY = "Default Fru"
DESCRIPTION = "Builds a default FRU file at runtime based on board ID"

inherit systemd
inherit cmake

SYSTEMD_SERVICE:${PN} = "SetBaseboardFru.service"

S = "${WORKDIR}"
SRC_URI = "file://checkFru.sh \
           file://decodeBoardID.sh \
           file://SetBaseboardFru.service \
           file://mkfru.cpp \
           file://CMakeLists.txt \
           "

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "\
    file://${INTELBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658 \
    file://mkfru.cpp;beginline=2;endline=14;md5=c451359f18a13ee69602afce1588c01a \
    "

RDEPENDS:${PN} = "bash"

do_install:append() {
    install -d ${D}${bindir}
    install -m 0755 ${S}/checkFru.sh ${D}/${bindir}/checkFru.sh
    install -m 0755 ${S}/decodeBoardID.sh ${D}/${bindir}/decodeBoardID.sh

    install -d ${D}${base_libdir}/systemd/system
    install -m 0644 ${S}/SetBaseboardFru.service ${D}${base_libdir}/systemd/system
}