CryptoPkg: Enable ssl build in OpensslLib directly
This patch is used to enable ssl build in OpensslLib module directly. Cc: Wu Jiaxin <jiaxin.wu@intel.com> Cc: Ye Ting <ting.ye@intel.com> Cc: Long Qin <qin.long@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Cc: Zhang Lubo <lubo.zhang@intel.com> Cc: Thomas Palmer <thomas.palmer@hpe.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Long Qin <qin.long@intel.com> Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com> Tested-by: Wu Jiaxin <jiaxin.wu@intel.com>
This commit is contained in:
@@ -8,6 +8,7 @@ copy crypto\opensslconf.h include\openssl
|
||||
copy crypto\ebcdic.h include\openssl
|
||||
copy crypto\symhacks.h include\openssl
|
||||
copy crypto\ossl_typ.h include\openssl
|
||||
copy crypto\o_dir.h include
|
||||
copy crypto\objects\objects.h include\openssl
|
||||
copy crypto\objects\obj_mac.h include\openssl
|
||||
copy crypto\md4\md4.h include\openssl
|
||||
|
@@ -10,6 +10,7 @@ cp crypto/opensslconf.h include/openssl
|
||||
cp crypto/ebcdic.h include/openssl
|
||||
cp crypto/symhacks.h include/openssl
|
||||
cp crypto/ossl_typ.h include/openssl
|
||||
cp crypto/o_dir.h include
|
||||
cp crypto/objects/objects.h include/openssl
|
||||
cp crypto/objects/obj_mac.h include/openssl
|
||||
cp crypto/md4/md4.h include/openssl
|
||||
|
@@ -470,9 +470,59 @@
|
||||
$(OPENSSL_PATH)/crypto/ocsp/ocsp_vfy.c
|
||||
$(OPENSSL_PATH)/crypto/ocsp/ocsp_err.c
|
||||
$(OPENSSL_PATH)/crypto/krb5/krb5_asn.c
|
||||
$(OPENSSL_PATH)/crypto/pqueue/pqueue.c
|
||||
$(OPENSSL_PATH)/crypto/cmac/cmac.c
|
||||
$(OPENSSL_PATH)/crypto/cmac/cm_ameth.c
|
||||
$(OPENSSL_PATH)/crypto/cmac/cm_pmeth.c
|
||||
$(OPENSSL_PATH)/ssl/s2_meth.c
|
||||
$(OPENSSL_PATH)/ssl/s2_srvr.c
|
||||
$(OPENSSL_PATH)/ssl/s2_clnt.c
|
||||
$(OPENSSL_PATH)/ssl/s2_lib.c
|
||||
$(OPENSSL_PATH)/ssl/s2_enc.c
|
||||
$(OPENSSL_PATH)/ssl/s2_pkt.c
|
||||
$(OPENSSL_PATH)/ssl/s3_meth.c
|
||||
$(OPENSSL_PATH)/ssl/s3_srvr.c
|
||||
$(OPENSSL_PATH)/ssl/s3_clnt.c
|
||||
$(OPENSSL_PATH)/ssl/s3_lib.c
|
||||
$(OPENSSL_PATH)/ssl/s3_enc.c
|
||||
$(OPENSSL_PATH)/ssl/s3_pkt.c
|
||||
$(OPENSSL_PATH)/ssl/s3_both.c
|
||||
$(OPENSSL_PATH)/ssl/s3_cbc.c
|
||||
$(OPENSSL_PATH)/ssl/s23_meth.c
|
||||
$(OPENSSL_PATH)/ssl/s23_srvr.c
|
||||
$(OPENSSL_PATH)/ssl/s23_clnt.c
|
||||
$(OPENSSL_PATH)/ssl/s23_lib.c
|
||||
$(OPENSSL_PATH)/ssl/s23_pkt.c
|
||||
$(OPENSSL_PATH)/ssl/t1_meth.c
|
||||
$(OPENSSL_PATH)/ssl/t1_srvr.c
|
||||
$(OPENSSL_PATH)/ssl/t1_clnt.c
|
||||
$(OPENSSL_PATH)/ssl/t1_lib.c
|
||||
$(OPENSSL_PATH)/ssl/t1_enc.c
|
||||
$(OPENSSL_PATH)/ssl/t1_ext.c
|
||||
$(OPENSSL_PATH)/ssl/d1_meth.c
|
||||
$(OPENSSL_PATH)/ssl/d1_srvr.c
|
||||
$(OPENSSL_PATH)/ssl/d1_clnt.c
|
||||
$(OPENSSL_PATH)/ssl/d1_lib.c
|
||||
$(OPENSSL_PATH)/ssl/d1_pkt.c
|
||||
$(OPENSSL_PATH)/ssl/d1_both.c
|
||||
$(OPENSSL_PATH)/ssl/d1_srtp.c
|
||||
$(OPENSSL_PATH)/ssl/ssl_lib.c
|
||||
$(OPENSSL_PATH)/ssl/ssl_err2.c
|
||||
$(OPENSSL_PATH)/ssl/ssl_cert.c
|
||||
$(OPENSSL_PATH)/ssl/ssl_sess.c
|
||||
$(OPENSSL_PATH)/ssl/ssl_ciph.c
|
||||
$(OPENSSL_PATH)/ssl/ssl_stat.c
|
||||
$(OPENSSL_PATH)/ssl/ssl_rsa.c
|
||||
$(OPENSSL_PATH)/ssl/ssl_asn1.c
|
||||
$(OPENSSL_PATH)/ssl/ssl_txt.c
|
||||
$(OPENSSL_PATH)/ssl/ssl_algs.c
|
||||
$(OPENSSL_PATH)/ssl/bio_ssl.c
|
||||
$(OPENSSL_PATH)/ssl/ssl_err.c
|
||||
$(OPENSSL_PATH)/ssl/kssl.c
|
||||
$(OPENSSL_PATH)/ssl/t1_reneg.c
|
||||
$(OPENSSL_PATH)/ssl/tls_srp.c
|
||||
$(OPENSSL_PATH)/ssl/t1_trce.c
|
||||
$(OPENSSL_PATH)/ssl/ssl_utst.c
|
||||
|
||||
# Autogenerated files list ends here
|
||||
|
||||
@@ -500,7 +550,7 @@
|
||||
# C4702: Potentially uninitialized local variable name used
|
||||
# C4311: pointer truncation from 'type' to 'type'
|
||||
#
|
||||
MSFT:*_*_IA32_CC_FLAGS = -U_WIN32 -U_WIN64 -U_MSC_VER $(OPENSSL_FLAGS) /wd4244 /wd4701 /wd4702 /wd4706
|
||||
MSFT:*_*_IA32_CC_FLAGS = -U_WIN32 -U_WIN64 -U_MSC_VER $(OPENSSL_FLAGS) /wd4244 /wd4245 /wd4701 /wd4702 /wd4706
|
||||
MSFT:*_*_X64_CC_FLAGS = -U_WIN32 -U_WIN64 -U_MSC_VER $(OPENSSL_FLAGS) /wd4133 /wd4244 /wd4245 /wd4267 /wd4701 /wd4305 /wd4306 /wd4702 /wd4706 /wd4311
|
||||
MSFT:*_*_IPF_CC_FLAGS = -U_WIN32 -U_WIN64 -U_MSC_VER $(OPENSSL_FLAGS) /wd4133 /wd4244 /wd4245 /wd4267 /wd4701 /wd4305 /wd4306 /wd4702 /wd4706
|
||||
|
||||
|
@@ -42,7 +42,6 @@ fi
|
||||
no-locking \
|
||||
no-mdc2 \
|
||||
no-posix-io \
|
||||
no-pqueue \
|
||||
no-rc2 \
|
||||
no-rcs \
|
||||
no-rfc3779 \
|
||||
@@ -77,13 +76,11 @@ function filelist ()
|
||||
;;
|
||||
LIBSRC=*)
|
||||
LIBSRC=$(echo "$LINE" | sed s/^LIBSRC=//)
|
||||
if [ "$RELATIVE_DIRECTORY" != "ssl" ]; then
|
||||
for FILE in $LIBSRC; do
|
||||
for FILE in $LIBSRC; do
|
||||
if [ "$FILE" != "b_print.c" ]; then
|
||||
echo -e ' $(OPENSSL_PATH)/'$RELATIVE_DIRECTORY/$FILE\\r\\
|
||||
fi
|
||||
done
|
||||
fi
|
||||
done
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
Reference in New Issue
Block a user