util-linux: Fix package name extension

Yocto (pyro) uses the character "_" to separate the package name from
the version number. If this character is used in the package name or
in a package name extension, the build will fail.
Replacing the "_" with one of the allowed characters fixes the problem.

Signed-off-by: Holger Dengler <dengler@linutronix.de>
This commit is contained in:
Holger Dengler
2017-12-07 11:06:03 +01:00
committed by Jia Zhang
parent 00324b6b3e
commit 0c4d9a8268
2 changed files with 3 additions and 3 deletions
@@ -9,7 +9,7 @@ DEPENDS += "\
RDEPENDS_${PN} += "\
attr \
util-linux-switch_root.static \
util-linux-switch-root.static \
"
# Note any private key is not available if user key signing model used.
@@ -12,6 +12,6 @@ do_install_append_class-target() {
"${D}${sbindir}/switch_root.static"
}
PACKAGES =+ "${PN}-switch_root.static"
PACKAGES =+ "${PN}-switch-root.static"
FILES_${PN}-switch_root.static = "${sbindir}/switch_root.static"
FILES_${PN}-switch-root.static = "${sbindir}/switch_root.static"