]> code.ossystems Code Review - openembedded-core.git/commitdiff
image.bbclass: do not check size of the debugfs image
authorAndré Draszik <git@andred.net>
Mon, 5 Sep 2016 08:34:42 +0000 (09:34 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 14 Sep 2016 21:20:04 +0000 (22:20 +0100)
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>
meta/classes/image.bbclass

index 8273401e505e9dbe58f9bdce4dbaf68ab25f0fae..48e54a7c01f03776a48eed929e0217de0f1bdd00 100644 (file)
@@ -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)