mirror of
https://git.yoctoproject.org/poky
synced 2026-04-10 23:02:25 +02:00
license_image.bbclass: Fix symlink to the image license manifest dir creation
If IMAGE_LINK_NAME is empty don't try to create the symlink. [YOCTO #14042] (From OE-Core rev: b54d92235408abdf0ba75a4d46329ec992af6006) Signed-off-by: Diego Sueiro <diego.sueiro@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
6559577d70
commit
f688eb3f3d
@@ -200,14 +200,16 @@ def license_deployed_manifest(d):
|
||||
image_license_manifest = os.path.join(lic_manifest_dir, 'image_license.manifest')
|
||||
write_license_files(d, image_license_manifest, man_dic, rootfs=False)
|
||||
|
||||
lic_manifest_symlink_dir = os.path.join(d.getVar('LICENSE_DIRECTORY'),
|
||||
d.getVar('IMAGE_LINK_NAME'))
|
||||
# remove old symlink
|
||||
if os.path.islink(lic_manifest_symlink_dir):
|
||||
os.unlink(lic_manifest_symlink_dir)
|
||||
link_name = d.getVar('IMAGE_LINK_NAME')
|
||||
if link_name:
|
||||
lic_manifest_symlink_dir = os.path.join(d.getVar('LICENSE_DIRECTORY'),
|
||||
link_name)
|
||||
# remove old symlink
|
||||
if os.path.islink(lic_manifest_symlink_dir):
|
||||
os.unlink(lic_manifest_symlink_dir)
|
||||
|
||||
# create the image dir symlink
|
||||
os.symlink(lic_manifest_dir, lic_manifest_symlink_dir)
|
||||
# create the image dir symlink
|
||||
os.symlink(lic_manifest_dir, lic_manifest_symlink_dir)
|
||||
|
||||
def get_deployed_dependencies(d):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user