blob: 525dab2234ce262135146133550611cc43b4cb92 [file] [log] [blame]
George Hungb67a01a2020-06-30 10:47:30 +08001PR = "r1"
2LICENSE = "Apache-2.0"
3LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
4
5SRC_URI = "git://github.com/quanta-bmc/read-margin-temp.git"
6SRCREV = "1a74891c996725dd4c94397d2588d840da07c548"
7S = "${WORKDIR}/git"
8
9SRC_URI += " file://config-margin.json \
10 file://read-margin-temp-wait.sh \
11 "
12
13inherit autotools pkgconfig
14inherit meson
15
16DEPENDS += " nlohmann-json"
17DEPENDS += " sdbusplus"
18DEPENDS += " sdbusplus-native"
19DEPENDS += " sdeventplus"
20DEPENDS += " phosphor-dbus-interfaces"
21
22RDEPENDS_${PN} += " bash"
23
24FILES_${PN} = "${bindir}/read-margin-temp"
25FILES_${PN} += " ${bindir}/read-margin-temp-wait.sh"
26FILES_${PN} += " ${datadir}/read-margin-temp/config-margin.json"
27
28do_install() {
29 install -d ${D}${bindir}
30 install -m 0755 read-margin-temp ${D}${bindir}
31 install -m 0755 ${WORKDIR}/read-margin-temp-wait.sh ${D}/${bindir}
32
33 install -d ${D}${datadir}/read-margin-temp
34 install -m 0644 -D ${WORKDIR}/config-margin.json \
35 ${D}${datadir}/read-margin-temp/config-margin.json
36
37}