vulkan-loader: Fix version-specific patching

The build fails because it cannot find the patch files in the version-
specific folder. The problem is the bbappend uses `PN`. However, it
turns out that `BP` doesn't work either:

```
ERROR: /.../poky/meta/recipes-graphics/vulkan/vulkan-loader_1.4.321.0.bb: Unable to get checksum for vulkan-loader SRC_URI entry 0001-LF-11869-change-mali-wsi-layer-activating-order.patch: file could not be found
The following paths were searched:
/.../meta-freescale/recipes-graphics/vulkan/defaultpkgname-1.0/fsl/0001-LF-11869-change-mali-wsi-layer-activating-order.patch
[ %< SNIP %< ]
```

When `FILESEXTRAPATHS` is prepended, `BP` is not ready since the
immediate expansion operator `:=` is used, hence the folder name
`defaultpkgname-1.0` shown in the error log.

Fix the problem with hard-coded values.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
(cherry picked from commit 4d0d409a4c)
This commit is contained in:
Tom Hochstein 2025-09-11 16:26:12 -05:00
parent 33e1e2625d
commit 4b351f7f5a
3 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,3 @@
FILESEXTRAPATHS:prepend:imx-nxp-bsp := "${THISDIR}/${PN}:"
SRC_URI:append:imx-nxp-bsp = " \
file://0001-LF-11869-change-mali-wsi-layer-activating-order.patch \
"

View File

@ -0,0 +1 @@
FILESEXTRAPATHS:prepend:imx-nxp-bsp := "${THISDIR}/vulkan-loader-1.3.275.0.imx:"

View File

@ -0,0 +1 @@
FILESEXTRAPATHS:prepend:imx-nxp-bsp := "${THISDIR}/vulkan-loader-1.4.321.0:"