diff options
| author | Luciano Dittgen <luciano.dittgen@ossystems.com.br> | 2026-09-08 14:32:19 -0300 |
|---|---|---|
| committer | Luciano Dittgen <luciano.dittgen@ossystems.com.br> | 2026-09-10 14:12:25 -0300 |
| commit | d9a0a1b13683649a52cfa44330e9c69718f30cc5 (patch) | |
| tree | 2aefeaf480044e074cc98319180623f670c0667e | |
| parent | 9584ba26e16377737b7a020262df73df2f4a6747 (diff) | |
| download | meta-freescale-d9a0a1b13683649a52cfa44330e9c69718f30cc5.tar.gz | |
imx-boot-firmware-files: Declare the deploy vardeps statically
A varflag takes inline python, so the SoC function names need no
anonymous python to reach do_deploy[vardeps]. Tested with bitbake
imx-boot-firmware-files -c deploy -f on imx8mp-lpddr4-evk: the do_deploy
task hash is unchanged, its sigdata still records deploy_for_mx8m alone,
and the deployed firmware is byte-identical.
Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
| -rw-r--r-- | recipes-bsp/firmware-imx/imx-boot-firmware-files_8.32.bb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/recipes-bsp/firmware-imx/imx-boot-firmware-files_8.32.bb b/recipes-bsp/firmware-imx/imx-boot-firmware-files_8.32.bb index e0219ca8d..c56a9968f 100644 --- a/recipes-bsp/firmware-imx/imx-boot-firmware-files_8.32.bb +++ b/recipes-bsp/firmware-imx/imx-boot-firmware-files_8.32.bb | |||
| @@ -41,13 +41,9 @@ deploy_for_mx9() { | |||
| 41 | } | 41 | } |
| 42 | deploy_for_mx9[doc] = "Deploy the Synopsys DDR firmware used by the i.MX 9 boot container" | 42 | deploy_for_mx9[doc] = "Deploy the Synopsys DDR firmware used by the i.MX 9 boot container" |
| 43 | 43 | ||
| 44 | python () { | 44 | # do_deploy calls deploy_for_$soc through the shell, so BitBake cannot see the |
| 45 | # Manually add the required functions as dependencies otherwise they won't be included in the | 45 | # dependency on the function body by itself. |
| 46 | # final run script. | 46 | do_deploy[vardeps] += "${@' '.join('deploy_for_' + soc for soc in d.getVar('DEPLOY_FOR').split())}" |
| 47 | deploy_for = d.getVar('DEPLOY_FOR', True).split() | ||
| 48 | for soc in deploy_for: | ||
| 49 | d.appendVarFlag('do_deploy', 'vardeps', ' deploy_for_%s' % soc) | ||
| 50 | } | ||
| 51 | 47 | ||
| 52 | do_deploy () { | 48 | do_deploy () { |
| 53 | for soc in ${DEPLOY_FOR}; do | 49 | for soc in ${DEPLOY_FOR}; do |
