Skip to content

Commit 3bf0e63

Browse files
Support OpenSSL assembly for RISC-V compilation
1 parent 6ac4ab1 commit 3bf0e63

3,019 files changed

Lines changed: 498612 additions & 31398 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

common.gypi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,10 @@
554554
'cflags': [ '-m64', '-march=z196' ],
555555
'ldflags': [ '-m64', '-march=z196' ],
556556
}],
557+
[ 'host_arch=="riscv64"', {
558+
'cflags': [ '-march=rv64gc', '-mabi=lp64d' ],
559+
'ldflags': [ '-march=rv64gc', '-mabi=lp64d' ],
560+
}],
557561
],
558562
}],
559563
['_toolset=="target"', {
@@ -583,6 +587,12 @@
583587
'cflags': [ '-m64', '-march=z196' ],
584588
'ldflags': [ '-m64', '-march=z196' ],
585589
}],
590+
['target_arch=="riscv64"', {
591+
'variables': {
592+
'openssl_target%': 'linux64-riscv64',
593+
'openssl_config%': 'linux64-riscv64',
594+
},
595+
}],
586596
],
587597
}],
588598
],

deps/openssl/config/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ PERL = perl
1111
# Supported architecture list
1212
ASM_ARCHS = aix64-gcc-as BSD-x86 BSD-x86_64 \
1313
darwin64-x86_64-cc darwin-i386-cc darwin64-arm64-cc linux-aarch64 \
14-
linux-armv4 linux-elf linux-x86_64 \
14+
linux-armv4 linux-elf linux-x86_64 linux64-riscv64 \
1515
linux-ppc64le linux32-s390x linux64-s390x linux64-mips64\
1616
solaris-x86-gcc solaris64-x86_64-gcc VC-WIN64A VC-WIN32
1717

18-
NO_ASM_ARCHS = VC-WIN64-ARM linux64-riscv64 linux64-loongarch64
18+
NO_ASM_ARCHS = VC-WIN64-ARM linux64-loongarch64
1919

2020
CC = gcc
2121
FAKE_GCC = ../config/fake_gcc.pl
@@ -41,9 +41,9 @@ GEN_HEADERS = asn1 asn1t bio comp cmp cms conf configuration core_names crmf \
4141
crypto ct err ess fipskey lhash ocsp opensslv pkcs12 pkcs7 \
4242
safestack srp ssl ui x509_acert x509 x509v3 x509_vfy
4343

44-
INTERNAL_GEN_HEADERS = param_names
44+
INTERNAL_GEN_HEADERS =
4545

46-
CRYPTO_GEN_HEADERS = bn_conf dso_conf
46+
CRYPTO_GEN_HEADERS = dso_conf
4747

4848
PHONY = all clean replace generate_headers
4949
.PHONY: $(PHONY)

0 commit comments

Comments
 (0)