srcrev_update: support for all recipes

Add variable to find base dir for meta-qt6 and use that in
srcrev-update to support using it in any recipe.

Pick-to: 6.7 6.6
Change-Id: I91960508a8ec96ee6fe7af69046915f048925f62
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
This commit is contained in:
Samuli Piippo 2023-11-17 08:00:21 +00:00
parent 13ce6ff6bd
commit a6c21eed21
4 changed files with 6 additions and 3 deletions

View File

@ -2,7 +2,7 @@ python do_srcrev_update() {
import subprocess
recipe = d.getVar('FILE')
srcrev_file = os.path.join(os.path.dirname(recipe), 'qt6-git.inc')
srcrev_file = os.path.join(d.getVar('QT6BASE'), 'recipes-qt/qt6/qt6-git.inc')
module = d.getVar('QT_MODULE')

View File

@ -41,6 +41,9 @@ LICENSE_PATH += "${LAYERDIR}/licenses"
IMAGE_FEATURES[validitems] += "qtcreator-debug"
# Set a variable to get to the top of the metadata location
QT6BASE := "${LAYERDIR}"
QT_GIT_PROJECT ?= "qt"
QT_GIT ?= "git://code.qt.io"
QT_GIT_PROTOCOL ?= "git"

View File

@ -1,6 +1,8 @@
DESCRIPTION ?= "Qt is a cross-platform application development framework for desktop, embedded and mobile."
HOMEPAGE ?= "https://www.qt.io"
inherit srcrev-update
QT_MODULE ?= "${BPN}"
QT_MODULE_BRANCH ?= "dev"
QT_MODULE_BRANCH_PARAM ?= "branch=${QT_MODULE_BRANCH};nobranch=1"

View File

@ -1,5 +1,3 @@
inherit srcrev-update
include recipes-qt/qt6/qt6-ptest.inc
PACKAGECONFIG[examples] = "-DQT_BUILD_EXAMPLES=ON,-DQT_BUILD_EXAMPLES=OFF,"