blob: feb86cbe1f6f843e3efe753053b4c8d2c481f3d4 [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
Brad Bishop2cd66df2016-06-14 21:33:22 -040014inherit pythonnative
15inherit python-dir
Adriana Kobylakfa7c2122015-10-19 14:15:04 -040016
Brad Bishopf5af3fe2016-06-09 22:22:46 -040017VIRTUAL-RUNTIME_skeleton_workbook ?= ""
18
Brad Bishop0a277312016-06-15 22:01:33 -040019DEPENDS += "glib-2.0 systemd python"
Adriana Kobylakbe731de2016-06-18 07:52:44 -050020RDEPENDS_${PN} += "python-json python-subprocess python-compression libsystemd ${VIRTUAL-RUNTIME_skeleton_workbook}"
Adriana Kobylakfa7c2122015-10-19 14:15:04 -040021SRC_URI += "git://github.com/openbmc/skeleton"
Adriana Kobylakfa7c2122015-10-19 14:15:04 -040022
Brad Bishop2cd66df2016-06-14 21:33:22 -040023FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}/*"
24
Patrick Williamsaaf98c82016-04-01 15:04:31 -050025# RDEPEND on pflash if the openpower-pflash machine feature is set.
26PACKAGECONFIG ??= "${@bb.utils.contains('MACHINE_FEATURES', 'openpower-pflash', 'openpower-pflash', '', d)}"
27PACKAGECONFIG[openpower-pflash] = ",,,pflash"
28
Patrick Williamscb088932016-06-22 10:20:49 -050029SRCREV = "57f67f07c8d5c8bc73dc0cd3440c8a44fafa6941"
Adriana Kobylakfa7c2122015-10-19 14:15:04 -040030
Brad Bishopb264b812015-10-28 08:13:43 -050031S = "${WORKDIR}"
Adriana Kobylakfa7c2122015-10-19 14:15:04 -040032
Brad Bishop2cd66df2016-06-14 21:33:22 -040033# needed to invoke setuptools
34export STAGING_INCDIR
35export STAGING_LIBDIR
36export BUILD_SYS
37export HOST_SYS
38export PYTHON_SITEPACKAGES_DIR
Patrick Williamsaaf98c82016-04-01 15:04:31 -050039
Brad Bishop2cd66df2016-06-14 21:33:22 -040040do_compile() {
41 oe_runmake -C git PYTHON=${PYTHON}
Adriana Kobylakfa7c2122015-10-19 14:15:04 -040042}
43
44do_install() {
Brad Bishop2cd66df2016-06-14 21:33:22 -040045 oe_runmake -C git install \
Brad Bishopf5af3fe2016-06-09 22:22:46 -040046 PYTHON=${PYTHON} \
47 DESTDIR=${D} \
48 PREFIX=/usr
Adriana Kobylakfa7c2122015-10-19 14:15:04 -040049}