@@ -1,7 +1,7 @@
#
# CIP Core, generic profile
#
-# Copyright (c) Siemens AG, 2021
+# Copyright (c) Siemens AG, 2021-2022
#
# Authors:
# Quirin Gylstorff <quirin.gylstorff@siemens.com>
@@ -15,14 +15,14 @@ IMAGER_INSTALL += "squashfs-tools"
SQUASHFS_EXCLUDE_DIRS ?= ""
SQUASHFS_CONTENT ?= "${PP_ROOTFS}"
-SQUASHFS_CREATION_ARGS ?= " "
-# Generate squashfs filesystem image
+SQUASHFS_CREATION_ARGS ?= ""
+
python __anonymous() {
- exclude_directories = (d.getVar('SQUASHFS_EXCLUDE_DIRS') or "").split()
+ exclude_directories = d.getVar('SQUASHFS_EXCLUDE_DIRS').split()
if len(exclude_directories) == 0:
return
- # use wildcard to exclude only content of the the directory
- # this allows to use the directory as a mount point
+ # Use wildcard to exclude only content of the directory.
+ # This allows to use the directory as a mount point.
args = " -wildcards"
for dir in exclude_directories:
args += " -e {dir}/* ".format(dir=dir)