<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">Hello Gary,</div><div class=""><br class=""></div><div class="">Thanks for the response. </div><div class=""><br class=""></div><div class="">The problem is that the IMAGE_CMD for the IMAGE_FSTYPE cannot be found in image.py. </div><div class="">The details are below.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">What I have discovered is that the layer’s classes directory is…</div><div class=""> 1. No longer required</div><div class=""> 2. No longer parsed.</div><div class=""><br class=""></div><div class="">In 1.5.1 if I remove the layer’s classes directory, I received a “Missing classes” error.</div><div class="">In 1.7.1, not even a warning is generated.</div><div class=""><br class=""></div><div class="">Putting this class in the classes directory goes without error or warning</div><div class=""><div style="margin: 0px; font-family: Menlo;" class=""> dd if=/dev/urandom count=10 of=a.bbclass</div></div><div class=""><br class=""></div><div class="">The IMAGE_CLASSES is defined in the machine configuration</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><div class="">And here is the error<br class="">=====================<br class="">File: '/home/walt/workspace/wwrelay-rootfs/yocto/meta/lib/oe/image.py',<br class="">lineno: 355, function: create_image<br class=""> 0351: execute_pre_post_process(self.d, post_process_cmds)<br class=""> 0352:<br class=""> 0353:<br class=""> 0354:def create_image(d):<br class="">*** 0355: Image(d).create()<br class=""> 0356:<br class=""> 0357:if __name__ == "__main__":<br class=""> 0358: """<br class=""> 0359: Image creation can be called independent from bitbake<br class="">environment.<br class="">File: '/home/walt/workspace/wwrelay-rootfs/yocto/meta/lib/oe/image.py',<br class="">lineno: 333, function: create<br class=""> 0329: execute_pre_post_process(self.d, pre_process_cmds)<br class=""> 0330:<br class=""> 0331: self._remove_old_symlinks()<br class=""> 0332:<br class="">*** 0333: image_cmd_groups = self._get_imagecmds()<br class=""> 0334:<br class=""> 0335: for image_cmds in image_cmd_groups:<br class=""> 0336: # create the images in parallel<br class=""> 0337: nproc = multiprocessing.cpu_count()<br class="">File: '/home/walt/workspace/wwrelay-rootfs/yocto/meta/lib/oe/image.py',<br class="">lineno: 303, function: _get_imagecmds<br class=""> 0299: print "************************"<br class=""> 0300: print localdata.getVar("IMAGE_CMD", True)<br class=""> 0301: print "************************"<br class=""> 0302: print "************************"<br class="">*** 0303: cmds.append("\t" + localdata.getVar("IMAGE_CMD",<br class="">True)) 0304: cmds.append(localdata.expand("\tcd<br class="">${DEPLOY_DIR_IMAGE}"))<br class=""> 0305:<br class=""> 0306: if type in cimages:<br class=""> 0307: for ctype in cimages[type]:<br class="">Exception: TypeError: cannot concatenate 'str' and 'NoneType' objects<br class=""><br class="">ERROR: Function failed: do_rootfs<br class="">ERROR: Logfile of failure stored in: /home/walt/workspace/wwrelay-<br class="">rootfs/yocto/build/tmp/work/cubietruck-poky-linux-gnueabi/wigwag-prod-<br class="">lsb/1.0-r0/temp/log.do_rootfs.13308<br class="">ERROR: Task 6 (/home/walt/workspace/wwrelay-<br class="">rootfs/yocto/build/recipes/images/wigwag-prod-lsb.bb, do_rootfs) failed with<br class="">exit code '1'<br class="">NOTE: Tasks Summary: Attempted 3977 tasks of which 3976 didn't need to be<br class="">rerun and 1 failed.<br class=""></div><br class=""></div></div><div class=""> </div><div class=""><br class=""></div><div class="">---------------------</div><br class="">On 2015-01-30 06:57, Walter Giroir wrote:<br class=""><blockquote type="cite" class=""><br class="">I am in the process of moving from Yocto 1.5.1 to 1.7.1.<br class=""><br class="">Overall the process has gone very smooth but I have one blocking issue.<br class=""><br class="">I have a layer with an Image defined in new_layer/classes/new_image.bblcass<br class=""><br class="">When running with 1.5.1, it works fine.<br class="">When running with 1.7.1, it does not even parse the file<br class=""></blockquote><br class="">Details? Otherwise, you'll only get guesses :-(<br class=""><br class=""><blockquote type="cite" class=""><br class="">Has anyone encountered this or is there a description of the changes in this area.<br class=""><br class="">Thanks in advance,<br class="">—Walt<br class=""><br class=""></blockquote><br class="">-- <br class="">------------------------------------------------------------<br class="">Gary Thomas | Consulting for the<br class="">MLB Associates | Embedded world<br class="">------------------------------------------------------------<br class=""></body></html>