summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/license_image.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/license_image.bbclass b/meta/classes/license_image.bbclass
index b9a0f2359b..73cebb4d55 100644
--- a/meta/classes/license_image.bbclass
+++ b/meta/classes/license_image.bbclass
@@ -144,12 +144,13 @@ def write_license_files(d, license_manifest, pkg_dic, rootfs=True):
144 continue 144 continue
145 145
146 # Make sure we use only canonical name for the license file 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 generic_lic_file = "generic_%s" % generic_lic
148 rootfs_license = os.path.join(rootfs_license_dir, generic_lic_file)
148 if not os.path.exists(rootfs_license): 149 if not os.path.exists(rootfs_license):
149 oe.path.copyhardlink(pkg_license, rootfs_license) 150 oe.path.copyhardlink(pkg_license, rootfs_license)
150 151
151 if not os.path.exists(pkg_rootfs_license): 152 if not os.path.exists(pkg_rootfs_license):
152 os.symlink(os.path.join('..', lic), pkg_rootfs_license) 153 os.symlink(os.path.join('..', generic_lic_file), pkg_rootfs_license)
153 else: 154 else:
154 if (oe.license.license_ok(canonical_license(d, 155 if (oe.license.license_ok(canonical_license(d,
155 lic), bad_licenses) == False or 156 lic), bad_licenses) == False or