summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-devtools
diff options
context:
space:
mode:
authorAndrew Geissler <geissonator@yahoo.com>2020-04-14 19:25:29 +0300
committerAndrew Geissler <geissonator@yahoo.com>2020-04-23 21:36:13 +0300
commit68be0733e1e11cb5173abc15b8a90ab85d8c3ec4 (patch)
tree7ca84125c2bc02c45255872886134df36435abea /meta-phosphor/recipes-devtools
parent6eb058a93272004d8ae10eaf30a71a9477a38978 (diff)
downloadopenbmc-68be0733e1e11cb5173abc15b8a90ab85d8c3ec4.tar.xz
dunfell: ensure python3 is default
This was pulled down from the facebook/openbmc repo: https://github.com/facebook/openbmc/blob/19cd2a3e9638e7a2652518c022e422c7de4c7259/common/recipes-devtools/python/python3_%25.bbappend (From meta-phosphor rev: e84b046a582307700a6a193270d2b61a81b57f76) Change-Id: I94766094f0744da58b2ce02ae51526eaf3e73f78 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-phosphor/recipes-devtools')
-rw-r--r--meta-phosphor/recipes-devtools/python/python3_%.bbappend5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-phosphor/recipes-devtools/python/python3_%.bbappend b/meta-phosphor/recipes-devtools/python/python3_%.bbappend
new file mode 100644
index 0000000000..f689a9e91b
--- /dev/null
+++ b/meta-phosphor/recipes-devtools/python/python3_%.bbappend
@@ -0,0 +1,5 @@
+inherit update-alternatives
+
+ALTERNATIVE_${PN}-core += "python"
+ALTERNATIVE_LINK_NAME[python] = "${bindir}/python"
+ALTERNATIVE_TARGET[python] = "${bindir}/python3"