summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/recipes-devtools
diff options
context:
space:
mode:
authorAndrew Geissler <geissonator@yahoo.com>2018-09-25 09:32:31 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-09-26 21:32:45 -0400
commit37db84e94076d2ac5015e1d3ea19b6f0b42f5206 (patch)
treed91b8881db639c21e881de63f484002f2f77e772 /meta-phosphor/recipes-devtools
parent469e377d6e39fd8f82e221a3e9c555808fcc926b (diff)
downloadtalos-openbmc-37db84e94076d2ac5015e1d3ea19b6f0b42f5206.tar.gz
talos-openbmc-37db84e94076d2ac5015e1d3ea19b6f0b42f5206.zip
Keep _sysconfigdata.py in image
The previous logic for keeping this file in the image did not work well when building an SDK (the packaging layout is different). This change works in all cases and is more efficient. Tested: Verified normal image and SDK build fine now for witherspoon. Resolves openbmc/openbmc#3384 (From meta-phosphor rev: aa7464007ae3c880bcffc46b184732fea7f6a280) Change-Id: I9492fdd543353e405d602d1ff392cd518437d007 Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-phosphor/recipes-devtools')
-rw-r--r--meta-phosphor/recipes-devtools/python/python_2.%.bbappend9
1 files changed, 4 insertions, 5 deletions
diff --git a/meta-phosphor/recipes-devtools/python/python_2.%.bbappend b/meta-phosphor/recipes-devtools/python/python_2.%.bbappend
index 12e1955ae..500497318 100644
--- a/meta-phosphor/recipes-devtools/python/python_2.%.bbappend
+++ b/meta-phosphor/recipes-devtools/python/python_2.%.bbappend
@@ -16,9 +16,8 @@ FILES_${PN}-spwd= " \
# files are required. Only do this if the openbmc-phosphor-tiny
# distro feature is enabled
do_install_append_openbmc-phosphor-tiny() {
- find ${D}${libdir}/python${PYTHON_MAJMIN} -name \*.py -exec rm {} \;
- # This is a system configuration file generated during build time.
- # It's used in the yocto packaging process so it is required to
- # remain in the image.
- cp ${WORKDIR}/recipe-sysroot-native/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py ${D}${libdir}/python${PYTHON_MAJMIN}/
+ # The _sysconfigdata.py is a system configuration file generated
+ # during build time. It's used in the yocto packaging process so
+ # it is required to remain in the image.
+ find ${D}${libdir}/python${PYTHON_MAJMIN} -name \*.py ! -name _sysconfigdata.py -exec rm {} \;
}
OpenPOWER on IntegriCloud