summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorAndré Draszik <git@andred.net>2016-09-05 09:34:42 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-14 22:20:04 +0100
commit7cdf3b2444df8cd322d9eff1bdbdc5adddcaf22a (patch)
treea72c3234e5c3bb9bf18df069dc0fe73244a0de09 /meta/classes
parentddcb08c6a8cb2187e98aa225b86777bb52c1d21e (diff)
downloadopenembedded-core-7cdf3b2444df8cd322d9eff1bdbdc5adddcaf22a.tar.gz
openembedded-core-7cdf3b2444df8cd322d9eff1bdbdc5adddcaf22a.tar.bz2
openembedded-core-7cdf3b2444df8cd322d9eff1bdbdc5adddcaf22a.zip
image.bbclass: do not check size of the debugfs image
The debugfs is supposed to be used in addition to the normal image for debugging purposes, it doesn't make sense to artificially limit its maximum size. Signed-off-by: André Draszik <git@andred.net> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/image.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 8273401e50..48e54a7c01 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -537,6 +537,12 @@ def get_rootfs_size(d):
base_size += rootfs_alignment - 1
base_size -= base_size % rootfs_alignment
+ # Do not check image size of the debugfs image. This is not supposed
+ # to be deployed, etc. so it doesn't make sense to limit the size
+ # of the debug.
+ if (d.getVar('IMAGE_BUILDING_DEBUGFS', True) or "") == "true":
+ return base_size
+
# Check the rootfs size against IMAGE_ROOTFS_MAXSIZE (if set)
if rootfs_maxsize:
rootfs_maxsize_int = int(rootfs_maxsize)