1 | # $Id$
|
---|
2 | ## @file
|
---|
3 | # OpenSSL Sub-Makefile.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2019 Oracle Corporation
|
---|
8 | #
|
---|
9 | # Oracle Corporation confidential
|
---|
10 | # All rights reserved
|
---|
11 | #
|
---|
12 |
|
---|
13 | SUB_DEPTH = ../../../../..
|
---|
14 | include $(KBUILD_PATH)/subheader.kmk
|
---|
15 |
|
---|
16 | LIBRARIES += crypto_chacha
|
---|
17 | crypto_chacha_TEMPLATE = SUBLIBCRYPTO
|
---|
18 | crypto_chacha_DEFS = OPENSSL_NO_DEPRECATED
|
---|
19 | ifdef VBOX_WITH_CRYPTO_ASM
|
---|
20 | crypto_chacha_SOURCES.x86 += \
|
---|
21 | $(VBOX_PATH_CRYPTO_GENASM)/chacha-x86.S
|
---|
22 | crypto_chacha_SOURCES.amd64 += \
|
---|
23 | $(VBOX_PATH_CRYPTO_GENASM)/chacha-x86_64.S
|
---|
24 | else
|
---|
25 | crypto_chacha_SOURCES += chacha_enc.c
|
---|
26 | endif
|
---|
27 | $(evalcall VBOX_OPENSSL_X86,crypto_chacha)
|
---|
28 |
|
---|
29 |
|
---|
30 | recreate-chacha-asm: $(VBOX_PATH_CRYPTO)/perlasm/x86asm.pl \
|
---|
31 | $(VBOX_PATH_CRYPTO_CHACHA)/asm/chacha-x86.pl \
|
---|
32 | $(VBOX_PATH_CRYPTO_CHACHA)/asm/chacha-x86_64.pl
|
---|
33 | perl $(VBOX_PATH_CRYPTO_CHACHA)/asm/chacha-x86.pl elf -fPIC $(VBOX_PATH_CRYPTO)/genasm-elf/chacha-x86.S
|
---|
34 | perl $(VBOX_PATH_CRYPTO_CHACHA)/asm/chacha-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/chacha-x86_64.S
|
---|
35 | perl $(VBOX_PATH_CRYPTO_CHACHA)/asm/chacha-x86.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/chacha-x86.S
|
---|
36 | perl $(VBOX_PATH_CRYPTO_CHACHA)/asm/chacha-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/chacha-x86_64.S
|
---|
37 | perl $(VBOX_PATH_CRYPTO_CHACHA)/asm/chacha-x86.pl win32n $(VBOX_PATH_CRYPTO)/genasm-nasm/chacha-x86.S
|
---|
38 | perl $(VBOX_PATH_CRYPTO_CHACHA)/asm/chacha-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/chacha-x86_64.S
|
---|
39 |
|
---|
40 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|