]> code.ossystems Code Review - openembedded-core.git/commitdiff
license.bbclass: make sure that image manifest dir exists
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 21 Apr 2016 11:03:26 +0000 (14:03 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Apr 2016 15:28:47 +0000 (16:28 +0100)
Previously, write_deploy_manifest() was relying on
write_package_manifest() to create the subdirectory for the manifest
file. However, do_rootfs may be an empty function so that
write_package_manifest() will not be called and the manifest
subdirectory will not be created, causing a build failure. This patch
fixes that by creating the directory hierarchy inside
write_deploy_manifest().

[YOCTO #9446]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/license.bbclass

index 43944e6ee6cf037510323d5f145fa4e2bd09f838..69335d650d5769fd631f3539ca7daecd702ff386 100644 (file)
@@ -181,8 +181,10 @@ def license_deployed_manifest(d):
                 key,val = line.split(": ", 1)
                 man_dic[dep][key] = val[:-1]
 
-    image_license_manifest = os.path.join(d.getVar('LICENSE_DIRECTORY', True),
-            d.getVar('IMAGE_NAME', True), 'image_license.manifest')
+    lic_manifest_dir = os.path.join(d.getVar('LICENSE_DIRECTORY', True),
+                                    d.getVar('IMAGE_NAME', True))
+    bb.utils.mkdirhier(lic_manifest_dir)
+    image_license_manifest = os.path.join(lic_manifest_dir, 'image_license.manifest')
     write_license_files(d, image_license_manifest, man_dic)
 
 def get_deployed_dependencies(d):