diff --git a/recipes-kernel/qps615-module/qps615-dlkm_git.bb b/recipes-kernel/qps615-module/qps615-dlkm_git.bb index d6f750d9c..2d5672523 100644 --- a/recipes-kernel/qps615-module/qps615-dlkm_git.bb +++ b/recipes-kernel/qps615-module/qps615-dlkm_git.bb @@ -11,10 +11,29 @@ SRCREV = "2cbd7b9ddf2318d58044dcbd57dc187dfca55034" SRC_URI = "git://github.com/qualcomm-linux/TC9564_Host_Driver.git;protocol=https;branch=qcom" +QPS615_ORIGINAL_SRC_URI := "${SRC_URI}" + +def qps615_pkgv_suffix(d): + import bb.fetch + + data = d.createCopy() + data.setVar("SRC_URI", d.getVar("QPS615_ORIGINAL_SRC_URI")) + return bb.fetch.get_pkgv_string(data) + PV = "6.0.3+git" +# externalsrc removes the Git URI from SRC_URI, so package_setup_pkgv() cannot +# append the normal SCM revision suffix. Reuse BitBake's own revision formatter +# so devtool package versions match versions from the regular fetch/build path. +QPS615_PKGREV = "${@qps615_pkgv_suffix(d)}" +PKGV = "${@d.getVar('PV') + d.getVar('QPS615_PKGREV') if d.getVar('EXTERNALSRC') else d.getVar('PV')}" + B = "${S}/drivers/net/ethernet/toshiba/tc956x" +# devtool/externalsrc replaces B with a separate work directory unless the +# out-of-tree build directory is explicitly provided. +EXTERNALSRC_BUILD = "${EXTERNALSRC}/drivers/net/ethernet/toshiba/tc956x" + # The original Makefile uses an "ifeq ($(pf), 1)" check to pick the default config. # Therefore, pf=1 needs to be set while compiling for non-SRIOV VF config. EXTRA_OEMAKE += "KCFLAGS='-DTC956X -DCONFIG_TC956X_PLATFORM_SUPPORT -DTC956X_SRIOV_PF' pf=1"