meta-starlingx/meta-stx-distro/classes/openssl10.bbclass
Babak Sarashki 63b6601bdd meta-stx: update LICENSE and copyright info
- Change License from Apache2 to MIT.
- Remove Copyright from individual recipes
- Move License to README.md
- Add meta-stx Copyright to README.md

Signed-off-by: Babak Sarashki <Babak.SarAshki@windriver.com>
2020-06-08 13:00:26 -07:00

32 lines
925 B
Plaintext

python __anonymous() {
if bb.utils.contains('DEPENDS', 'openssl', True, False, d) or \
bb.utils.contains('DEPENDS', 'openssl-native', True, False, d):
d.setVar('DEPENDS', d.getVar('DEPENDS').replace('openssl', 'openssl10'))
d.setVar('DEPENDS', d.getVar('DEPENDS').replace('openssl-native', 'openssl10-native'))
}
python do_ssl10_mk_symlink() {
import shutil
l = d.getVar("STAGING_INCDIR") + "/openssl"
if os.path.islink(l):
os.unlink(l)
elif os.path.isdir(l):
shutil.rmtree(l)
os.symlink("openssl10/openssl",l)
l = d.getVar("STAGING_LIBDIR")
if os.path.islink(l + "/libssl.so"):
os.unlink(l + "/libssl.so")
os.unlink(l + "/libcrypto.so")
os.symlink("libssl.so.1.0.2", l + "/libssl.so")
os.symlink("libcrypto.so.1.0.2", l + "/libcrypto.so")
}
addtask ssl10_mk_symlink before do_configure after do_prepare_recipe_sysroot