diff options
-rw-r--r-- | meta/recipes-core/util-linux/util-linux.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc index 3c8c246974..961bcc5843 100644 --- a/meta/recipes-core/util-linux/util-linux.inc +++ b/meta/recipes-core/util-linux/util-linux.inc | |||
@@ -215,3 +215,10 @@ ALTERNATIVE_LINK_NAME[reset] = "${bindir}/reset" | |||
215 | ALTERNATIVE_TARGET[reset] = "${base_bindir}/reset" | 215 | ALTERNATIVE_TARGET[reset] = "${base_bindir}/reset" |
216 | 216 | ||
217 | BBCLASSEXTEND = "native nativesdk" | 217 | BBCLASSEXTEND = "native nativesdk" |
218 | |||
219 | python do_package_prepend () { | ||
220 | if '--enable-su' in d.getVar('EXTRA_OECONF', True).split(): | ||
221 | alt_name = "su" | ||
222 | d.setVarFlag('ALTERNATIVE_LINK_NAME', alt_name, '%s/%s' % (d.getVar('bindir', True), alt_name)) | ||
223 | d.appendVar('ALTERNATIVE_%s' % (d.getVar('PN', True)), ' ' + alt_name) | ||
224 | } | ||