summaryrefslogtreecommitdiffstats
path: root/meta/classes/license_image.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/license_image.bbclass')
-rw-r--r--meta/classes/license_image.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/license_image.bbclass b/meta/classes/license_image.bbclass
index 702e9f9c55..6f478ce22c 100644
--- a/meta/classes/license_image.bbclass
+++ b/meta/classes/license_image.bbclass
@@ -125,7 +125,6 @@ def write_license_files(d, license_manifest, pkg_dic, rootfs=True):
125 125
126 licenses = os.listdir(pkg_license_dir) 126 licenses = os.listdir(pkg_license_dir)
127 for lic in licenses: 127 for lic in licenses:
128 rootfs_license = os.path.join(rootfs_license_dir, lic)
129 pkg_license = os.path.join(pkg_license_dir, lic) 128 pkg_license = os.path.join(pkg_license_dir, lic)
130 pkg_rootfs_license = os.path.join(pkg_rootfs_license_dir, lic) 129 pkg_rootfs_license = os.path.join(pkg_rootfs_license_dir, lic)
131 130
@@ -144,6 +143,8 @@ def write_license_files(d, license_manifest, pkg_dic, rootfs=True):
144 bad_licenses) == False: 143 bad_licenses) == False:
145 continue 144 continue
146 145
146 # Make sure we use only canonical name for the license file
147 rootfs_license = os.path.join(rootfs_license_dir, "generic_%s" % generic_lic)
147 if not os.path.exists(rootfs_license): 148 if not os.path.exists(rootfs_license):
148 oe.path.copyhardlink(pkg_license, rootfs_license) 149 oe.path.copyhardlink(pkg_license, rootfs_license)
149 150
@@ -209,7 +210,8 @@ def license_deployed_manifest(d):
209 os.unlink(lic_manifest_symlink_dir) 210 os.unlink(lic_manifest_symlink_dir)
210 211
211 # create the image dir symlink 212 # create the image dir symlink
212 os.symlink(lic_manifest_dir, lic_manifest_symlink_dir) 213 if lic_manifest_dir != lic_manifest_symlink_dir:
214 os.symlink(lic_manifest_dir, lic_manifest_symlink_dir)
213 215
214def get_deployed_dependencies(d): 216def get_deployed_dependencies(d):
215 """ 217 """