summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/classes
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2016-11-16 09:57:39 -0600
committerPatrick Williams <patrick@stwcx.xyz>2016-11-17 22:47:00 +0000
commit04b910c48901656f07980a32bef416884d4eccb7 (patch)
treef0642aafaccd84f4420538c9a80bb6778af01eb3 /meta-phosphor/classes
parentf1275cc09fdedee42728bb8e819a585efec7d98f (diff)
downloadtalos-openbmc-04b910c48901656f07980a32bef416884d4eccb7.tar.gz
talos-openbmc-04b910c48901656f07980a32bef416884d4eccb7.zip
Create bbclass for python in autotools recipes
Add the base requirements for building and installing python scripts within a package using autotools. Change-Id: Ia6f6a819a80bc346153ff5c53cefad41d973d953 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'meta-phosphor/classes')
-rw-r--r--meta-phosphor/classes/obmc-phosphor-python-autotools.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-python-autotools.bbclass b/meta-phosphor/classes/obmc-phosphor-python-autotools.bbclass
new file mode 100644
index 000000000..408d15ca5
--- /dev/null
+++ b/meta-phosphor/classes/obmc-phosphor-python-autotools.bbclass
@@ -0,0 +1,8 @@
+inherit pythonnative
+
+export BUILD_SYS
+export HOST_SYS
+export STAGING_INCDIR
+export STAGING_LIBDIR
+
+FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}"
OpenPOWER on IntegriCloud