diff options
| author | Brent Cook <busterb@gmail.com> | 2023-02-14 02:52:10 -0600 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2023-02-14 02:52:10 -0600 |
| commit | 20fb2bdb1197008f46c080b8539084c69b7a8c92 (patch) | |
| tree | e4a15c5e14849e766a6d7a30d7e938208a9f8448 /crypto | |
| parent | d36629044db1f6f074a26dc502c9cff7a09fd374 (diff) | |
| download | portable-20fb2bdb1197008f46c080b8539084c69b7a8c92.tar.gz portable-20fb2bdb1197008f46c080b8539084c69b7a8c92.tar.bz2 portable-20fb2bdb1197008f46c080b8539084c69b7a8c92.zip | |
add CPU checks, include initial bn_arch.h headers
Diffstat (limited to 'crypto')
| -rw-r--r-- | crypto/Makefile.am | 41 | ||||
| -rw-r--r-- | crypto/Makefile.am.elf-x86_64 | 3 |
2 files changed, 36 insertions, 8 deletions
diff --git a/crypto/Makefile.am b/crypto/Makefile.am index 09a22e6..733dcbd 100644 --- a/crypto/Makefile.am +++ b/crypto/Makefile.am | |||
| @@ -445,20 +445,51 @@ noinst_HEADERS += bn/s2n_bignum.h | |||
| 445 | noinst_HEADERS += bn/s2n_bignum_internal.h | 445 | noinst_HEADERS += bn/s2n_bignum_internal.h |
| 446 | 446 | ||
| 447 | # bn/arch | 447 | # bn/arch |
| 448 | if HOST_AARCH64 | ||
| 449 | libcrypto_la_CPPFLAGS += -I$(top_srcdir)/crypto/bn/arch/aarch64/ | ||
| 450 | endif | ||
| 448 | noinst_HEADERS += bn/arch/aarch64/bn_arch.h | 451 | noinst_HEADERS += bn/arch/aarch64/bn_arch.h |
| 449 | noinst_HEADERS += bn/arch/alpha/bn_arch.h | 452 | |
| 450 | noinst_HEADERS += bn/arch/amd64/bn_arch.h | 453 | if HOST_ARM |
| 454 | libcrypto_la_CPPFLAGS += -I$(top_srcdir)/crypto/bn/arch/arm/ | ||
| 455 | endif | ||
| 451 | noinst_HEADERS += bn/arch/arm/bn_arch.h | 456 | noinst_HEADERS += bn/arch/arm/bn_arch.h |
| 452 | noinst_HEADERS += bn/arch/hppa/bn_arch.h | 457 | |
| 458 | if HOST_I386 | ||
| 459 | libcrypto_la_CPPFLAGS += -I$(top_srcdir)/crypto/bn/arch/i386/ | ||
| 460 | endif | ||
| 453 | noinst_HEADERS += bn/arch/i386/bn_arch.h | 461 | noinst_HEADERS += bn/arch/i386/bn_arch.h |
| 454 | noinst_HEADERS += bn/arch/m88k/bn_arch.h | 462 | |
| 463 | if HOST_MIPS64 | ||
| 464 | libcrypto_la_CPPFLAGS += -I$(top_srcdir)/crypto/bn/arch/mips64/ | ||
| 465 | endif | ||
| 455 | noinst_HEADERS += bn/arch/mips64/bn_arch.h | 466 | noinst_HEADERS += bn/arch/mips64/bn_arch.h |
| 467 | |||
| 468 | if HOST_POWERPC | ||
| 469 | libcrypto_la_CPPFLAGS += -I$(top_srcdir)/crypto/bn/arch/powerpc/ | ||
| 470 | endif | ||
| 456 | noinst_HEADERS += bn/arch/powerpc/bn_arch.h | 471 | noinst_HEADERS += bn/arch/powerpc/bn_arch.h |
| 472 | |||
| 473 | if HOST_POWERPC64 | ||
| 474 | libcrypto_la_CPPFLAGS += -I$(top_srcdir)/crypto/bn/arch/powerpc64/ | ||
| 475 | endif | ||
| 457 | noinst_HEADERS += bn/arch/powerpc64/bn_arch.h | 476 | noinst_HEADERS += bn/arch/powerpc64/bn_arch.h |
| 477 | |||
| 478 | if HOST_RISCV64 | ||
| 479 | libcrypto_la_CPPFLAGS += -I$(top_srcdir)/crypto/bn/arch/riscv64/ | ||
| 480 | endif | ||
| 458 | noinst_HEADERS += bn/arch/riscv64/bn_arch.h | 481 | noinst_HEADERS += bn/arch/riscv64/bn_arch.h |
| 459 | noinst_HEADERS += bn/arch/sh/bn_arch.h | 482 | |
| 483 | if HOST_SPARC64 | ||
| 484 | libcrypto_la_CPPFLAGS += -I$(top_srcdir)/crypto/bn/arch/sparc64/ | ||
| 485 | endif | ||
| 460 | noinst_HEADERS += bn/arch/sparc64/bn_arch.h | 486 | noinst_HEADERS += bn/arch/sparc64/bn_arch.h |
| 461 | 487 | ||
| 488 | if HOST_X86_64 | ||
| 489 | libcrypto_la_CPPFLAGS += -I$(top_srcdir)/crypto/bn/arch/amd64/ | ||
| 490 | endif | ||
| 491 | noinst_HEADERS += bn/arch/amd64/bn_arch.h | ||
| 492 | |||
| 462 | # buffer | 493 | # buffer |
| 463 | libcrypto_la_SOURCES += buffer/buf_err.c | 494 | libcrypto_la_SOURCES += buffer/buf_err.c |
| 464 | libcrypto_la_SOURCES += buffer/buf_str.c | 495 | libcrypto_la_SOURCES += buffer/buf_str.c |
diff --git a/crypto/Makefile.am.elf-x86_64 b/crypto/Makefile.am.elf-x86_64 index f03d424..cc6ea99 100644 --- a/crypto/Makefile.am.elf-x86_64 +++ b/crypto/Makefile.am.elf-x86_64 | |||
| @@ -50,7 +50,4 @@ libcrypto_la_CPPFLAGS += -DSHA512_ASM | |||
| 50 | libcrypto_la_CPPFLAGS += -DWHIRLPOOL_ASM | 50 | libcrypto_la_CPPFLAGS += -DWHIRLPOOL_ASM |
| 51 | libcrypto_la_CPPFLAGS += -DOPENSSL_CPUID_OBJ | 51 | libcrypto_la_CPPFLAGS += -DOPENSSL_CPUID_OBJ |
| 52 | libcrypto_la_SOURCES += $(ASM_X86_64_ELF) | 52 | libcrypto_la_SOURCES += $(ASM_X86_64_ELF) |
| 53 | |||
| 54 | # XXX - not the right place for this. It should be done depending on CPU. | ||
| 55 | libcrypto_la_CPPFLAGS += -I$(top_srcdir)/crypto/bn/arch/amd64/ | ||
| 56 | endif | 53 | endif |
