util-linux: simplify version upgrades (MAJOR_VERSION)

There doesn't appear to be a need to manually and
explicitly specificy the major version (for the
download URL), it can be deduced easily from PV.

Do so.

(From OE-Core rev: e07272491e9f4d81a4c3797c585958163657bf9c)

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
André Draszik
2019-01-16 12:51:10 +00:00
committed by Richard Purdie
parent 927320844f
commit 8b0640c4ae
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,8 @@ DEPENDS = "zlib ncurses virtual/crypt"
DEPENDS_append_class-native = " lzo-native"
DEPENDS_append_class-nativesdk = " lzo-native"
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-linux-${PV}.tar.xz \
MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}"
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/v${MAJOR_VERSION}/${BP}.tar.xz \
"
PACKAGES =+ "util-linux-agetty util-linux-blkdiscard util-linux-fdisk util-linux-cfdisk util-linux-sfdisk \

View File

@@ -1,4 +1,3 @@
MAJOR_VERSION = "2.32"
require util-linux.inc
# To support older hosts, we need to patch and/or revert