diff mbox series

[isar-cip-core,v2,1/3] fix expansion of erofs exclude dirs

Message ID 20241211095456.2735691-1-felix.moessbauer@siemens.com (mailing list archive)
State New
Headers show
Series [isar-cip-core,v2,1/3] fix expansion of erofs exclude dirs | expand

Commit Message

Felix Moessbauer Dec. 11, 2024, 9:54 a.m. UTC
When defining erofs exclude dirs, these are expanded and appended to the
erofs creation args. However, this only works if the target variable
exists and is of the correct type (string).

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 classes/erofs.bbclass | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/classes/erofs.bbclass b/classes/erofs.bbclass
index 95e7be3..189c1ea 100644
--- a/classes/erofs.bbclass
+++ b/classes/erofs.bbclass
@@ -19,6 +19,7 @@  python __anonymous() {
     exclude_directories = d.getVar('EROFS_EXCLUDE_DIRS').split()
     if len(exclude_directories) == 0:
         return
+    args = ""
     # Use regex to exclude only content of the directory.
     # This allows to use the directory as a mount point.
     for dir in exclude_directories: