Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 867 Bytes
require refkit-python.inc
# This is a temporary solution until OE-core upstream supports alternatives for python
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'refkit-config', 'update-alternatives', '', d)}
ALTERNATIVE_PRIORITY_df-refkit-config_class-target = "80"
ALTERNATIVE_${PN}-core_df-refkit-config_class-target = "python python_config"
python () {
if bb.utils.contains('DISTRO_FEATURES', 'refkit-config', True, False, d) and not d.getVar('PN').startswith('nativesdk-'):
d.setVarFlag('ALTERNATIVE_LINK_NAME', 'python', d.getVar('bindir') + '/python')
d.setVarFlag('ALTERNATIVE_LINK_NAME', 'python_config', d.getVar('bindir') + '/python-config')
d.setVarFlag('ALTERNATIVE_TARGET', 'python', d.getVar('bindir') + '/python3')
d.setVarFlag('ALTERNATIVE_TARGET', 'python_config', d.getVar('bindir') + '/python3-config')
}
You can’t perform that action at this time.