blob: 9d81279f09f2313dcad007e1dd43d9b8333cc968 [file] [log] [blame]
Adriana Kobylakfa7c2122015-10-19 14:15:04 -04001SUMMARY = "Temp placeholder for skeleton function"
2DESCRIPTION = "Temp placeholder for skeleton repository"
3HOMEPAGE = "http://github.com/openbmc/skeleton"
4PR = "r1"
5
6inherit obmc-phosphor-license
7inherit obmc-phosphor-systemd
Brad Bishop5a4b9532015-10-21 20:24:23 -04008inherit obmc-phosphor-chassis-mgmt
Brad Bishop5a4b9532015-10-21 20:24:23 -04009inherit obmc-phosphor-fan-mgmt
10inherit obmc-phosphor-flash-mgmt
11inherit obmc-phosphor-policy-mgmt
12inherit obmc-phosphor-sensor-mgmt
13inherit obmc-phosphor-system-mgmt
Adriana Kobylakfa7c2122015-10-19 14:15:04 -040014
KennethWilke08c10892016-02-17 13:24:04 -060015DEPENDS += "glib-2.0 systemd"
Norman James83e4c042016-02-10 11:34:19 -060016RDEPENDS_${PN} += "python-subprocess python-compression libsystemd"
Adriana Kobylakfa7c2122015-10-19 14:15:04 -040017SRC_URI += "git://github.com/openbmc/skeleton"
Adriana Kobylakfa7c2122015-10-19 14:15:04 -040018
Patrick Williamsaaf98c82016-04-01 15:04:31 -050019# RDEPEND on pflash if the openpower-pflash machine feature is set.
20PACKAGECONFIG ??= "${@bb.utils.contains('MACHINE_FEATURES', 'openpower-pflash', 'openpower-pflash', '', d)}"
21PACKAGECONFIG[openpower-pflash] = ",,,pflash"
22
Adriana Kobylak059bb1a2016-05-24 16:22:47 -050023SRCREV = "2f9ee83356fba3f6f843bf2584f3e7e95763ec98"
Adriana Kobylakfa7c2122015-10-19 14:15:04 -040024
Brad Bishopb264b812015-10-28 08:13:43 -050025S = "${WORKDIR}"
Adriana Kobylakfa7c2122015-10-19 14:15:04 -040026
27do_compile() {
Adriana Kobylak9bc34a42015-10-29 11:14:29 -050028 oe_runmake -C git
Patrick Williamsaaf98c82016-04-01 15:04:31 -050029
30 # Remove deprecated files.
31 rm ${S}/git/bin/pflash
Adriana Kobylakfa7c2122015-10-19 14:15:04 -040032}
33
34do_install() {
Brad Bishopb264b812015-10-28 08:13:43 -050035 source=${S}/git
36
Adriana Kobylakfa7c2122015-10-19 14:15:04 -040037 install -d ${D}/${sbindir} ${D}${libdir}
Adriana Kobylak9bc34a42015-10-29 11:14:29 -050038 for i in ${source}/bin/*; do
Adriana Kobylakfa7c2122015-10-19 14:15:04 -040039 install $i ${D}/${sbindir}
40 done
Adriana Kobylak9bc34a42015-10-29 11:14:29 -050041 for i in ${source}/lib/*; do
42 install $i ${D}/${libdir}
43 done
Adriana Kobylakfa7c2122015-10-19 14:15:04 -040044}