mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
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:
committed by
Richard Purdie
parent
927320844f
commit
8b0640c4ae
@@ -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 \
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
MAJOR_VERSION = "2.32"
|
||||
require util-linux.inc
|
||||
|
||||
# To support older hosts, we need to patch and/or revert
|
||||
|
||||
Reference in New Issue
Block a user