summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2021-05-24uprev-srcrev: print recipe name together with new git hashMax Krummenacher
On the build server the three output lines produced by a single recipe are not together which makes it hard to check which recipe got updated to which source revision. Print the recipe file name together with the git hash makes it all clear. Changes | [krm@linuxdev2 build]$ ../layers/meta-toradex-distro/scripts/uprev-srcrev | INFO: Processing recipe ../layers/meta-toradex-bsp-common/recipes-kernel/backports/backports_5.4.bb | NOTE: Starting bitbake server... | INFO: Update SRCREV to 4cb81c29dde242744eccf9f37f2014ea3b37ade2. | | INFO: Processing recipe ../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-mainline_5.4.bb | NOTE: Starting bitbake server... | INFO: Update SRCREV_machine to db57a7415fa94e0d5a7f23908be15d5d6e72a891. | ... to | [krm@linuxdev2 build]$ ../layers/meta-toradex-distro/scripts/uprev-srcrev | INFO: Processing recipe ../layers/meta-toradex-bsp-common/recipes-kernel/backports/backports_5.4.bb | NOTE: Starting bitbake server... | INFO: backports_5.4.bb: Update SRCREV to 4cb81c29dde242744eccf9f37f2014ea3b37ade2. | | INFO: Processing recipe ../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-mainline_5.4.bb | NOTE: Starting bitbake server... | INFO: linux-toradex-mainline_5.4.bb: Update SRCREV_machine to db57a7415fa94e0d5a7f23908be15d5d6e72a891. | ... Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 213eb8b0826eb8f33c3a87518762dca480c85354)
2020-09-16recipetool: add updatesrcrev sub-commandStefan Agner
Use the recipetool plugin mechanism to add a updatesrcrev command. This allows to update the SRCREV variable to point to the current git hash the references git branch is pointing to. A OpenEmbedded build environment needs to be initialized. Then use the following command to update SRCREV of a particular recipe: recipetool updatesrcrev <path-to-recipe> Related-to: AUT-354 Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit f80b1846113635ec84177f0020efab02f6679d1a)