Skip to contentSkip to conversation

ti-img-rogue-umlibs: fix yocto package cache issue

PATCH New [email protected] 1 participant 1 message Jun 22, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ti-img-rogue-umlibs: fix yocto package cache issue

From: Randolph Sapp <[email protected]>

There's a weird issue with Yocto's caching system (though it may be intentional behavior). Changing the package config won't always update the package contents when you are directly modifying the recipe's deploy directory if there is a cached build.

Oddly enough, if you edit the source directory before do_install touches the deploy directory, it seems to correctly reevaluate the cache.

Fixes:
1705f6d3 (ti-img-rogue-umlibs: make all components optional, 2023-06-21)

---
 .../ti-img-rogue-umlibs_23.1.6404501.bb        | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.1.6404501.bb +9 -9
index c012859f..dd5ef11c 100644
@@ -47,28 +47,28 @@ def get_file_list(package_list_var, d):
                 file_list.append(package_files)
     return " ".join(file_list)
 
-do_install:append() {
+do_install:prepend() {
     if ${@bb.utils.contains('PACKAGECONFIG', 'opengl', 'false', 'true', d)}; then
         for file in ${@get_file_list('GLES_PACKAGES', d)}; do
-            rm -rf ${D}/${file}
-            rmdir --ignore-fail-on-non-empty $(dirname ${D}/${file})
+            rm -rf ${S}/${file}
+            rmdir --ignore-fail-on-non-empty $(dirname ${S}/${file})
         done
     fi
     if ${@bb.utils.contains('PACKAGECONFIG', 'vulkan', 'false', 'true', d)}; then
         for file in ${@get_file_list('VULKAN_PACKAGES', d)}; do
-            rm -rf ${D}/${file}
-            rmdir --ignore-fail-on-non-empty $(dirname ${D}/${file})
+            rm -rf ${S}/${file}
+            rmdir --ignore-fail-on-non-empty $(dirname ${S}/${file})
         done
     fi
     if ${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'false', 'true', d)}; then
         for file in ${@get_file_list('OPENCL_PACKAGES', d)}; do
-            rm -rf ${D}/${file}
-            rmdir --ignore-fail-on-non-empty $(dirname ${D}/${file})
+            rm -rf ${S}/${file}
+            rmdir --ignore-fail-on-non-empty $(dirname ${S}/${file})
         done
     fi
     if ${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'true', 'false', d)}; then
-        mv ${D}/lib/firmware ${D}${nonarch_base_libdir}
-        rmdir ${D}/lib
+        mv ${S}/lib/firmware ${S}${nonarch_base_libdir}
+        rmdir ${S}/lib
     fi
 }
 
Signature · 1 line
2.41.0