From a9a69fa5572d95eb2a9041e8fd2bcbdf024a332d Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Tue, 14 Jun 2016 21:33:22 -0400 Subject: Bump skeleton version This bump picks up a refactored version of skeleton with a new directory layout, and a couple of hwmon regression fixes for the Barreleye system. Signed-off-by: Brad Bishop --- .../common/recipes-phosphor/skeleton/skeleton.bb | 31 ++++++++++++---------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'meta-phosphor/common') diff --git a/meta-phosphor/common/recipes-phosphor/skeleton/skeleton.bb b/meta-phosphor/common/recipes-phosphor/skeleton/skeleton.bb index 1d45d161b..eb45a406c 100644 --- a/meta-phosphor/common/recipes-phosphor/skeleton/skeleton.bb +++ b/meta-phosphor/common/recipes-phosphor/skeleton/skeleton.bb @@ -11,34 +11,37 @@ inherit obmc-phosphor-flash-mgmt inherit obmc-phosphor-policy-mgmt inherit obmc-phosphor-sensor-mgmt inherit obmc-phosphor-system-mgmt +inherit pythonnative +inherit python-dir DEPENDS += "glib-2.0 systemd" RDEPENDS_${PN} += "python-subprocess python-compression libsystemd" SRC_URI += "git://github.com/openbmc/skeleton" +FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}/*" + # RDEPEND on pflash if the openpower-pflash machine feature is set. PACKAGECONFIG ??= "${@bb.utils.contains('MACHINE_FEATURES', 'openpower-pflash', 'openpower-pflash', '', d)}" PACKAGECONFIG[openpower-pflash] = ",,,pflash" -SRCREV = "b2f3fd7a29ddf16ea6171b4b4649d9a0ea8be58d" +SRCREV = "40187443840d0e419c13391b2091fda29d63dea4" S = "${WORKDIR}" -do_compile() { - oe_runmake -C git +# needed to invoke setuptools +export STAGING_INCDIR +export STAGING_LIBDIR +export BUILD_SYS +export HOST_SYS +export PYTHON_SITEPACKAGES_DIR - # Remove deprecated files. - rm ${S}/git/bin/pflash +do_compile() { + oe_runmake -C git PYTHON=${PYTHON} } do_install() { - source=${S}/git - - install -d ${D}/${sbindir} ${D}${libdir} - for i in ${source}/bin/*; do - install $i ${D}/${sbindir} - done - for i in ${source}/lib/*; do - install $i ${D}/${libdir} - done + oe_runmake -C git install \ + PYTHON=${PYTHON} \ + DESTDIR=${D} \ + PREFIX=/usr } -- cgit v1.2.1 From 65b40a80454bc22d0e4e1f4fafcd43d33a7167b8 Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Thu, 9 Jun 2016 22:22:46 -0400 Subject: Add virtual workbook / config-in-skeleton classes This patch introduces a new abstraction 'skeleton-workbook' for representing a system configuration. At present it is pulled in by the skeleton recipe so the requirement on what is implemented by a package providing obmc-phosphor-workbook is something compatible with the existing System.py python modules in skeleton. Additionally this patch adds a new recipe for each system using a configuration file from skeleton today, and a class for common configuration. This enables a couple of things: - No need to patch skeleton.service for each system. - New systems don't have to put their configuration in the skeleton repository. Signed-off-by: Brad Bishop --- meta-phosphor/common/recipes-phosphor/skeleton/skeleton.bb | 10 ++++++---- .../common/recipes-phosphor/skeleton/skeleton/skeleton.service | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'meta-phosphor/common') diff --git a/meta-phosphor/common/recipes-phosphor/skeleton/skeleton.bb b/meta-phosphor/common/recipes-phosphor/skeleton/skeleton.bb index eb45a406c..97627925e 100644 --- a/meta-phosphor/common/recipes-phosphor/skeleton/skeleton.bb +++ b/meta-phosphor/common/recipes-phosphor/skeleton/skeleton.bb @@ -14,8 +14,10 @@ inherit obmc-phosphor-system-mgmt inherit pythonnative inherit python-dir +VIRTUAL-RUNTIME_skeleton_workbook ?= "" + DEPENDS += "glib-2.0 systemd" -RDEPENDS_${PN} += "python-subprocess python-compression libsystemd" +RDEPENDS_${PN} += "python-subprocess python-compression libsystemd ${VIRTUAL-RUNTIME_skeleton_workbook}" SRC_URI += "git://github.com/openbmc/skeleton" FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}/*" @@ -41,7 +43,7 @@ do_compile() { do_install() { oe_runmake -C git install \ - PYTHON=${PYTHON} \ - DESTDIR=${D} \ - PREFIX=/usr + PYTHON=${PYTHON} \ + DESTDIR=${D} \ + PREFIX=/usr } diff --git a/meta-phosphor/common/recipes-phosphor/skeleton/skeleton/skeleton.service b/meta-phosphor/common/recipes-phosphor/skeleton/skeleton/skeleton.service index b001abf3f..35b6e6c56 100755 --- a/meta-phosphor/common/recipes-phosphor/skeleton/skeleton/skeleton.service +++ b/meta-phosphor/common/recipes-phosphor/skeleton/skeleton/skeleton.service @@ -3,7 +3,7 @@ Description=Temp placeholder for skeleton function [Service] Restart=always -ExecStart=/usr/sbin/system_manager.py Palmetto +ExecStart=/usr/sbin/system_manager.py [Install] WantedBy=multi-user.target -- cgit v1.2.1