- Timestamp:
- Feb 1, 2023 1:20:58 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/openssl-3.0.7/Config.kmk
r98229 r98389 34 34 VBOX_CRYPTO_ASM_SCHEME := portme 35 35 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) 36 VBOX_CRYPTO_ASM_SCHEME:= elf37 else ifeq ($(KBUILD_TARGET), 38 VBOX_CRYPTO_ASM_SCHEME:= macosx39 else ifeq ($(KBUILD_TARGET), 40 VBOX_CRYPTO_ASM_SCHEME:= nasm36 VBOX_CRYPTO_ASM_SCHEME := elf 37 else ifeq ($(KBUILD_TARGET),darwin) 38 VBOX_CRYPTO_ASM_SCHEME := macosx 39 else ifeq ($(KBUILD_TARGET),win) 40 VBOX_CRYPTO_ASM_SCHEME := nasm 41 41 endif 42 42 … … 63 63 if1of ($(KBUILD_TARGET_ARCH), x86 amd64) 64 64 ifneq ($(VBOX_CRYPTO_ASM_SCHEME),portme) 65 ifn1of ($(KBUILD_TARGET), ) # Selective exclusion for testing. 65 ifn1of ($(KBUILD_TARGET), ) # Selective exclusion for testing. scm:ignore-empty-if1of-set 66 66 VBOX_WITH_CRYPTO_ASM = 1 67 67 endif … … 190 190 include/openssl/x509err.h=>x509err.h \ 191 191 include/openssl/x509v3err.h=>x509v3err.h \ 192 192 \ 193 193 openssl-mangling.h=>openssl-mangling.h \ 194 194 \ 195 195 gen-includes/openssl/asn1.h=>asn1.h \ 196 196 gen-includes/openssl/asn1t.h=>asn1t.h \ … … 241 241 TEMPLATE_LibCrypto = Template for the OpenSSL crypto library. 242 242 TEMPLATE_LibCrypto_EXTENDS = VBoxR3RuntimeDllNonPedantic 243 ifneq ($(KBUILD_TARGET), 243 ifneq ($(KBUILD_TARGET),win) 244 244 TEMPLATE_LibCrypto_ASTOOL = $(TEMPLATE_VBoxR3RuntimeDllNonPedantic_TOOL) 245 245 TEMPLATE_LibCrypto_ASFLAGS = -include $(VBOX_PATH_OPENSSL)/openssl-mangling.h … … 262 262 OPENSSL_BUILDING_OPENSSL 263 263 ifdef VBOX_WITH_CRYPTO_ASM 264 TEMPLATE_LibCrypto_DEFS += \265 OPENSSL_BN_ASM_MONT \266 OPENSSL_BN_ASM_GF2m \267 SHA1_ASM \268 SHA256_ASM \269 SHA512_ASM \270 RC4_ASM \271 MD5_ASM \272 AES_ASM \273 VPAES_ASM \274 ECP_NISTZ256_ASM \275 PADLOCK_ASM \276 POLY1305_ASM277 TEMPLATE_LibCrypto_DEFS.amd64 = \278 BSAES_ASM \279 GHASH_ASM \280 KECCAK1600_ASM \281 OPENSSL_BN_ASM_MONT5 \282 X25519_ASM264 TEMPLATE_LibCrypto_DEFS += \ 265 OPENSSL_BN_ASM_MONT \ 266 OPENSSL_BN_ASM_GF2m \ 267 SHA1_ASM \ 268 SHA256_ASM \ 269 SHA512_ASM \ 270 RC4_ASM \ 271 MD5_ASM \ 272 AES_ASM \ 273 VPAES_ASM \ 274 ECP_NISTZ256_ASM \ 275 PADLOCK_ASM \ 276 POLY1305_ASM 277 TEMPLATE_LibCrypto_DEFS.amd64 = \ 278 BSAES_ASM \ 279 GHASH_ASM \ 280 KECCAK1600_ASM \ 281 OPENSSL_BN_ASM_MONT5 \ 282 X25519_ASM 283 283 else 284 TEMPLATE_LibCrypto_DEFS += \285 OPENSSL_NO_ASM284 TEMPLATE_LibCrypto_DEFS += \ 285 OPENSSL_NO_ASM 286 286 endif 287 287 if1of ($(KBUILD_TARGET), linux solaris) 288 TEMPLATE_LibCrypto_DEFS += \289 _REENTRANT \290 _GNU_SOURCE288 TEMPLATE_LibCrypto_DEFS += \ 289 _REENTRANT \ 290 _GNU_SOURCE 291 291 endif 292 292 ifeq ($(sort $(filter -fPIC,$(TEMPLATE_VBoxR3RuntimeDllNonPedantic_CFLAGS))),-fPIC) 293 TEMPLATE_LibCrypto_DEFS += \294 OPENSSL_PIC293 TEMPLATE_LibCrypto_DEFS += \ 294 OPENSSL_PIC 295 295 endif 296 296 TEMPLATE_LibCrypto_DEFS.amd64 += \ 297 297 MD32_REG_T=int 298 298 ifeq ($(KBUILD_TARGET),win) 299 TEMPLATE_LibCrypto_DEFS += \300 OPENSSL_SYSNAME_WIN32 \301 OPENSSL_RAND_SEED_OS299 TEMPLATE_LibCrypto_DEFS += \ 300 OPENSSL_SYSNAME_WIN32 \ 301 OPENSSL_RAND_SEED_OS 302 302 # Exclude WinCrypt.h, causes trouble all over the place 303 TEMPLATE_LibCrypto_DEFS += \304 NOCRYPT303 TEMPLATE_LibCrypto_DEFS += \ 304 NOCRYPT 305 305 endif 306 306 if1of ($(KBUILD_TARGET_ARCH), x86 amd64 arm64) 307 TEMPLATE_LibCrypto_DEFS += \308 307 TEMPLATE_LibCrypto_DEFS += \ 308 L_ENDIAN 309 309 else 310 TEMPLATE_LibCrypto_DEFS += \311 310 TEMPLATE_LibCrypto_DEFS += \ 311 B_ENDIAN 312 312 endif 313 313 ifeq ($(KBUILD_TARGET),os2) 314 TEMPLATE_LibCrypto_DEFS += \315 OPENSSL_NO_SECURE_MEMORY314 TEMPLATE_LibCrypto_DEFS += \ 315 OPENSSL_NO_SECURE_MEMORY 316 316 endif 317 317 if defined(VBOX_WITH_PARFAIT) #&& VBOX_GCC_VERSION_CC == 50301 … … 369 369 TEMPLATE_LibCryptoTstExe_INCS = $(TEMPLATE_LibCrypto_INCS) $(TEMPLATE_VBoxR3TstExe_INCS) 370 370 ifeq ($(KBUILD_TARGET),win) 371 TEMPLATE_LibCryptoTstExe_CFLAGS= $(filter-out $(VBOX_VCC_WERR), $(TEMPLATE_VBoxR3TstExe_CXXFLAGS)) $(VBOX_VCC_NON_PEDANTIC)371 TEMPLATE_LibCryptoTstExe_CFLAGS = $(filter-out $(VBOX_VCC_WERR), $(TEMPLATE_VBoxR3TstExe_CXXFLAGS)) $(VBOX_VCC_NON_PEDANTIC) 372 372 else 373 TEMPLATE_LibCryptoTstExe_CFLAGS= $(filter-out $(VBOX_GCC_PEDANTIC_C), $(TEMPLATE_VBoxR3TstExe_CFLAGS)) $(VBOX_GCC_NON_PEDANTIC_C)373 TEMPLATE_LibCryptoTstExe_CFLAGS = $(filter-out $(VBOX_GCC_PEDANTIC_C), $(TEMPLATE_VBoxR3TstExe_CFLAGS)) $(VBOX_GCC_NON_PEDANTIC_C) 374 374 endif 375 375 TEMPLATE_LibCryptoTstExe_LIBS = $(PATH_STAGE_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB) $(TEMPLATE_VBoxR3TstExe_LIBS) … … 380 380 # Build program versions of LibCrypto and SubLibCrypto for bldRTSignTool. 381 381 # 382 TEMPLATE_VBoxLibCryptoBldProg = Build program template the OpenSSL crypto library.383 TEMPLATE_VBoxLibCryptoBldProg_EXTENDS:= VBoxAdvBldProg384 TEMPLATE_VBoxLibCryptoBldProg_DEFS= $(TEMPLATE_VBoxAdvBldProg_DEFS) $(TEMPLATE_LibCrypto_DEFS)385 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win= $(TEMPLATE_VBoxAdvBldProg_CFLAGS.win) $(subst $(TEMPLATE_VBoxR3RuntimeDllNonPedantic_CFLAGS.win),, $(TEMPLATE_LibCrypto_CFLAGS.win))386 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win+= -wd4057 # refcount.h(137): warning C4057: 'function': 'volatile long *' differs in indirection to slightly different base types from 'volatile int *'387 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win+= -wd4100 # refcount.h(135): warning C4100: 'lock': unreferenced formal parameter388 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win+= -wd4132 # curve25519.c(5497): warning C4132: 'allzeroes': const object should be initialized389 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win+= -wd4189 # eng_list.c(373): warning C4189: 'load_dir': local variable is initialized but not referenced390 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win+= -wd4245 # bn_div.c(353): warning C4245: '=': conversion from '__int64' to 'unsigned __int64', signed/unsigned mismatch391 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win+= -wd4255 # ctype.c(314): warning C4255: 'ossl_c_locale': no function prototype given: converting '()' to '(void)'392 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win+= -wd4267 # p12_utl.c(23): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data393 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win+= -wd4389 # encoder_pkey.c(110): warning C4389: '!=': signed/unsigned mismatch394 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win+= -wd4668 # limits.h(70): warning C4668: '__STDC_WANT_SECURE_LIB__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'395 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win+= -wd4702 # ctrl_params_translate.c(681) : warning C4702: unreachable code396 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.freebsd = $(TEMPLATE_VBoxAdvBldProg_CFLAGS.freebsd) $(subst $(TEMPLATE_VBoxR3RuntimeDllNonPedantic_CFLAGS.freebsd),, $(TEMPLATE_LibCrypto_CFLAGS.freebsd))397 TEMPLATE_VBoxLibCryptoBldProg_INCS= $(TEMPLATE_LibCrypto_INCS) $(TEMPLATE_VBoxAdvBldProg_INCS)398 TEMPLATE_VBoxLibCryptoBldProg_INTERMEDIATES= $(TEMPLATE_VBoxAdvBldProg_INTERMEDIATES) $(TEMPLATE_LibCrypto_INTERMEDIATES)399 400 TEMPLATE_VBoxSubLibCryptoBldProg = Build program template a OpenSSL crypto sub-library.401 TEMPLATE_VBoxSubLibCryptoBldProg_EXTENDS:= VBoxLibCryptoBldProg402 TEMPLATE_VBoxSubLibCryptoBldProg_INSTTYPE= none382 TEMPLATE_VBoxLibCryptoBldProg = Build program template the OpenSSL crypto library. 383 TEMPLATE_VBoxLibCryptoBldProg_EXTENDS := VBoxAdvBldProg 384 TEMPLATE_VBoxLibCryptoBldProg_DEFS = $(TEMPLATE_VBoxAdvBldProg_DEFS) $(TEMPLATE_LibCrypto_DEFS) 385 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win = $(TEMPLATE_VBoxAdvBldProg_CFLAGS.win) $(subst $(TEMPLATE_VBoxR3RuntimeDllNonPedantic_CFLAGS.win),, $(TEMPLATE_LibCrypto_CFLAGS.win)) 386 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4057 # refcount.h(137): warning C4057: 'function': 'volatile long *' differs in indirection to slightly different base types from 'volatile int *' 387 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4100 # refcount.h(135): warning C4100: 'lock': unreferenced formal parameter 388 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4132 # curve25519.c(5497): warning C4132: 'allzeroes': const object should be initialized 389 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4189 # eng_list.c(373): warning C4189: 'load_dir': local variable is initialized but not referenced 390 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4245 # bn_div.c(353): warning C4245: '=': conversion from '__int64' to 'unsigned __int64', signed/unsigned mismatch 391 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4255 # ctype.c(314): warning C4255: 'ossl_c_locale': no function prototype given: converting '()' to '(void)' 392 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4267 # p12_utl.c(23): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data 393 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4389 # encoder_pkey.c(110): warning C4389: '!=': signed/unsigned mismatch 394 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4668 # limits.h(70): warning C4668: '__STDC_WANT_SECURE_LIB__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif' 395 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4702 # ctrl_params_translate.c(681) : warning C4702: unreachable code 396 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.freebsd = $(TEMPLATE_VBoxAdvBldProg_CFLAGS.freebsd) $(subst $(TEMPLATE_VBoxR3RuntimeDllNonPedantic_CFLAGS.freebsd),, $(TEMPLATE_LibCrypto_CFLAGS.freebsd)) 397 TEMPLATE_VBoxLibCryptoBldProg_INCS = $(TEMPLATE_LibCrypto_INCS) $(TEMPLATE_VBoxAdvBldProg_INCS) 398 TEMPLATE_VBoxLibCryptoBldProg_INTERMEDIATES = $(TEMPLATE_VBoxAdvBldProg_INTERMEDIATES) $(TEMPLATE_LibCrypto_INTERMEDIATES) 399 400 TEMPLATE_VBoxSubLibCryptoBldProg = Build program template a OpenSSL crypto sub-library. 401 TEMPLATE_VBoxSubLibCryptoBldProg_EXTENDS := VBoxLibCryptoBldProg 402 TEMPLATE_VBoxSubLibCryptoBldProg_INSTTYPE = none 403 403 endif # VBOX_WITH_BLD_RTSIGNTOOL_SIGNING 404 404
Note:
See TracChangeset
for help on using the changeset viewer.