summaryrefslogtreecommitdiff
path: root/recipes-kernel/rs9113
diff options
context:
space:
mode:
authorVyacheslav Pedash <vyacheslav.pedash@globallogic.com>2021-03-11 17:32:31 +0200
committerJohn Klug <john.klug@multitech.com>2021-03-11 11:58:37 -0600
commit1f43b9d0490e2cefd725fadfff67d0042e9e40f9 (patch)
tree428ef45a95df89623291a759d8ee9ecabb5c6267 /recipes-kernel/rs9113
parent9f96d6b878216d9a3ea5f1cd2dad5171c7cad6a2 (diff)
downloadmeta-multitech-atmel-1f43b9d0490e2cefd725fadfff67d0042e9e40f9.tar.gz
meta-multitech-atmel-1f43b9d0490e2cefd725fadfff67d0042e9e40f9.tar.bz2
meta-multitech-atmel-1f43b9d0490e2cefd725fadfff67d0042e9e40f9.zip
MTX-3899 Fix PR values
The value of WORKDIR variable depends on PR. If PR and consequently WORKDIR changes its value build will fail because values in butbake cache will not correspond to the real ones. KERNEL_MODULE_PACKAGE_SUFFIX is derived from files in kernel staging directory and cosequenlty recives expected value only when kernel shared directory is populated. Therefore, it can not be used in PR. PR values are set to constant strings and to preserve current package names KERNEL_MODULE_PACKAGE_SUFFIX is added to PKGR
Diffstat (limited to 'recipes-kernel/rs9113')
-rw-r--r--recipes-kernel/rs9113/rs9113-from-src_1.6.1.bb4
-rw-r--r--recipes-kernel/rs9113/rs9113_1.6.1.bb7
2 files changed, 8 insertions, 3 deletions
diff --git a/recipes-kernel/rs9113/rs9113-from-src_1.6.1.bb b/recipes-kernel/rs9113/rs9113-from-src_1.6.1.bb
index 05ba21a..ab00f26 100644
--- a/recipes-kernel/rs9113/rs9113-from-src_1.6.1.bb
+++ b/recipes-kernel/rs9113/rs9113-from-src_1.6.1.bb
@@ -2,7 +2,9 @@ DESCRIPTION = "USB Driver for Redpine RS9113"
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28"
PROVIDES = "rs9113-from-src"
-PR = "r10${KERNEL_MODULE_PACKAGE_SUFFIX}"
+PR = "r10"
+PKGR = "${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}${EXTENDPRAUTO}"
+do_fetch[depends] += "virtual/kernel:do_shared_workdir"
INHIBIT_PACKAGE_STRIP = "1"
BB_STRICT_CHECKSUM = "0"
inherit module
diff --git a/recipes-kernel/rs9113/rs9113_1.6.1.bb b/recipes-kernel/rs9113/rs9113_1.6.1.bb
index f968a4f..edab39c 100644
--- a/recipes-kernel/rs9113/rs9113_1.6.1.bb
+++ b/recipes-kernel/rs9113/rs9113_1.6.1.bb
@@ -17,13 +17,16 @@ COMPATIBLE_MACHINE = "(mtcdt|mtrv1)"
# To update this, manually copy ipk from Jenkin's job to
# git://git@${MTS_INTERNAL_GIT}/mlinux/ipk.git;protocol=ssh;branch=${PV}
#
-PR = "r10${KERNEL_MODULE_PACKAGE_SUFFIX}"
+PR = "r10"
+
+PKGR = "${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}${EXTENDPRAUTO}"
+
SRC_URI = " \
file://rs9113/rs9113.init \
file://rs9113/rs9113.default \
file://rs9113/mts-rm-rs9113 \
file://rs9113/wpa_supplicant \
- file://rs9113-ipk/rs9113-from-src_${PV}-${PR}.0_${MACHINE}.ipk;name=binaries \
+ file://rs9113-ipk/rs9113-from-src_${PV}-${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}.0_${MACHINE}.ipk;name=binaries \
"
SRCREV = "${PV}"