[oe-commits] [openembedded-core] 32/40: image.bbclass: do not check size of the debugfs image
git at git.openembedded.org
git at git.openembedded.org
Tue Sep 13 14:20:23 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 20697d47f490a4ed14c9fe0c96718e8bfd978352
Author: André Draszik <git at andred.net>
AuthorDate: Mon Sep 5 09:34:42 2016 +0100
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 at andred.net>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/classes/image.bbclass | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 8a824fc..42f510d 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -541,6 +541,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)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list