<div dir="ltr"><div>Hi Yann, Thomas, list,<br></div><div><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">--- a/fs/ext2/<a href="http://ext2.mk" target="_blank">ext2.mk</a><br>
+++ b/fs/ext2/<a href="http://ext2.mk" target="_blank">ext2.mk</a><br>
@@ -18,6 +18,12 @@ ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)),0)<br>
 EXT2_OPTS += -r $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)<br>
 endif<br>
<br>
+# Not qstrip-ing the variable, because it may contain spaces,<br>
+# but we must qstrip it when checking.<br>
+ifneq ($(call qstrip,$(BR2_TARGET_ROOTFS_EXT2_LABEL)),)<br>
+EXT2_OPTS += -l $(BR2_TARGET_ROOTFS_EXT2_LABEL)<br></blockquote></div><div><br></div><div>Unfortunately this won't work with labels with spaces in them.</div><div>I recommend using escaped quotation marks like this:</div><div><br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">+EXT2_OPTS += -l \"$(BR2_TARGET_ROOTFS_EXT2_LABEL)\"<br></blockquote><div><br></div></div></div><div><span style="font-size:13px">---</span></div><div><span style="font-size:13px"><br></span></div><div>Tested the whole series of 3 together, successfully built different rootfs.ext images and booted them.<br></div><div><div><span style="font-size:13px">Tested with master branch, x86_64 arch in QEMU, internal toolchain GCC 4.9.2 w/ uclibc, Linux 3.17.4.</span><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Regards,</div><div style="font-size:12.8000001907349px">Karoly</div></div><div><br></div>
</div></div>