diff options
| author | Theo Buehler <tb@openbsd.org> | 2025-04-11 18:31:04 +0200 |
|---|---|---|
| committer | Theo Buehler <tb@openbsd.org> | 2025-04-12 18:06:24 +0200 |
| commit | 1087da12fc815a84592454980cdcd5d34b07285b (patch) | |
| tree | b61cb73d1f6952eb4c73d59d65fd23c643505604 /crypto | |
| parent | 33537646812ce13f5c6c257a6d44adeae259ef6e (diff) | |
| download | portable-1087da12fc815a84592454980cdcd5d34b07285b.tar.gz portable-1087da12fc815a84592454980cdcd5d34b07285b.tar.bz2 portable-1087da12fc815a84592454980cdcd5d34b07285b.zip | |
Sync opensslconf.h, add crypto_arch.h for mips
This was easy enough to make compile. As long as it doesn't get in the
way, I think we can keep this.
Fixes #1110
Diffstat (limited to 'crypto')
| -rw-r--r-- | crypto/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | crypto/Makefile.am | 3 | ||||
| -rw-r--r-- | crypto/arch/mips/crypto_arch.h | 21 |
3 files changed, 24 insertions, 2 deletions
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index a714059..64bccd8 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt | |||
| @@ -781,7 +781,7 @@ elseif(HOST_MIPS64) | |||
| 781 | target_include_directories(crypto_obj PRIVATE arch/mips64) | 781 | target_include_directories(crypto_obj PRIVATE arch/mips64) |
| 782 | target_include_directories(crypto_obj PRIVATE bn/arch/mips64) | 782 | target_include_directories(crypto_obj PRIVATE bn/arch/mips64) |
| 783 | elseif(HOST_MIPS) | 783 | elseif(HOST_MIPS) |
| 784 | # XXX - can this go away? the directory doesn't exist... | 784 | target_include_directories(crypto_obj PRIVATE arch/mips) |
| 785 | target_include_directories(crypto_obj PRIVATE bn/arch/mips) | 785 | target_include_directories(crypto_obj PRIVATE bn/arch/mips) |
| 786 | elseif(HOST_POWERPC) | 786 | elseif(HOST_POWERPC) |
| 787 | target_include_directories(crypto_obj PRIVATE arch/powerpc) | 787 | target_include_directories(crypto_obj PRIVATE arch/powerpc) |
diff --git a/crypto/Makefile.am b/crypto/Makefile.am index 0952494..d1c5b76 100644 --- a/crypto/Makefile.am +++ b/crypto/Makefile.am | |||
| @@ -403,10 +403,11 @@ endif | |||
| 403 | noinst_HEADERS += arch/loongarch64/crypto_arch.h | 403 | noinst_HEADERS += arch/loongarch64/crypto_arch.h |
| 404 | noinst_HEADERS += bn/arch/loongarch64/bn_arch.h | 404 | noinst_HEADERS += bn/arch/loongarch64/bn_arch.h |
| 405 | 405 | ||
| 406 | # XXX - do we still need this? | ||
| 407 | if HOST_MIPS | 406 | if HOST_MIPS |
| 407 | libcrypto_la_CPPFLAGS += -I$(top_srcdir)/crypto/arch/mips/ | ||
| 408 | libcrypto_la_CPPFLAGS += -I$(top_srcdir)/crypto/bn/arch/mips/ | 408 | libcrypto_la_CPPFLAGS += -I$(top_srcdir)/crypto/bn/arch/mips/ |
| 409 | endif | 409 | endif |
| 410 | noinst_HEADERS += arch/mips/crypto_arch.h | ||
| 410 | noinst_HEADERS += bn/arch/mips/bn_arch.h | 411 | noinst_HEADERS += bn/arch/mips/bn_arch.h |
| 411 | 412 | ||
| 412 | if HOST_MIPS64 | 413 | if HOST_MIPS64 |
diff --git a/crypto/arch/mips/crypto_arch.h b/crypto/arch/mips/crypto_arch.h new file mode 100644 index 0000000..274879c --- /dev/null +++ b/crypto/arch/mips/crypto_arch.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | /* $OpenBSD$ */ | ||
| 2 | /* | ||
| 3 | * Copyright (c) 2024 Joel Sing <jsing@openbsd.org> | ||
| 4 | * | ||
| 5 | * Permission to use, copy, modify, and distribute this software for any | ||
| 6 | * purpose with or without fee is hereby granted, provided that the above | ||
| 7 | * copyright notice and this permission notice appear in all copies. | ||
| 8 | * | ||
| 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 10 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 11 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 12 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 13 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 14 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifndef HEADER_CRYPTO_ARCH_H | ||
| 19 | #define HEADER_CRYPTO_ARCH_H | ||
| 20 | |||
| 21 | #endif | ||
