Lines Matching +full:ninja +full:- +full:linux +full:- +full:aarch64
1 # Copyright (c) 2020-2022 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
28 …linux-x86_64/llvm/bin/clang -D_XOPEN_SOURCE=700 -DOHOS_DEBUG -D__LITEOS__ -D__LITEOS_A__ -Oz -flto…
29 …# [OHOS ERROR] ../../../third_party/openssl/engines/e_afalg.c:27:10: fatal error: 'linux/version.h…
30 # [OHOS ERROR] #include <linux/version.h>
53 if (current_cpu == "arm" && !(current_os == "linux" || host_os == "mac")) {
54 print("openssl selected linux-armv4")
55 openssl_selected_platform = "linux-armv4"
57 (!(current_os == "linux" || host_os == "mac") ||
59 (current_os == "linux" || host_os == "linux"))) {
60 print("openssl selected linux-aarch64")
61 openssl_selected_platform = "linux-aarch64"
65 print("openssl selected darwin64-x86_64-cc")
66 openssl_selected_platform = "darwin64-x86_64-cc"
70 print("openssl selected darwin64-arm64-cc")
71 openssl_selected_platform = "darwin64-arm64-cc"
74 print("openssl selected linux-x86_64")
75 openssl_selected_platform = "linux-x86_64"
80 print("openssl selected linux-armv4")
81 openssl_selected_platform = "linux-armv4"
83 print("openssl selected linux-aarch64")
84 openssl_selected_platform = "linux-aarch64"
86 print("openssl selected linux64-loongarch64")
87 openssl_selected_platform = "linux64-loongarch64"
96 "${build_all_generated_path}/crypto/aes/aes-armv4.S",
97 "${build_all_generated_path}/crypto/aes/aesv8-armx.S",
98 "${build_all_generated_path}/crypto/aes/bsaes-armv7.S",
100 "${build_all_generated_path}/crypto/bn/armv4-gf2m.S",
101 "${build_all_generated_path}/crypto/bn/armv4-mont.S",
102 "${build_all_generated_path}/crypto/chacha/chacha-armv4.S",
103 "${build_all_generated_path}/crypto/ec/ecp_nistz256-armv4.S",
104 "${build_all_generated_path}/crypto/modes/ghash-armv4.S",
105 "${build_all_generated_path}/crypto/modes/ghashv8-armx.S",
106 "${build_all_generated_path}/crypto/poly1305/poly1305-armv4.S",
107 "${build_all_generated_path}/crypto/sha/keccak1600-armv4.S",
108 "${build_all_generated_path}/crypto/sha/sha1-armv4-large.S",
109 "${build_all_generated_path}/crypto/sha/sha256-armv4.S",
110 "${build_all_generated_path}/crypto/sha/sha512-armv4.S",
115 "${build_all_generated_path}/crypto/aes/aesv8-armx.S",
116 "${build_all_generated_path}/crypto/aes/vpaes-armv8.S",
118 "${build_all_generated_path}/crypto/bn/armv8-mont.S",
119 "${build_all_generated_path}/crypto/chacha/chacha-armv8.S",
120 "${build_all_generated_path}/crypto/ec/ecp_nistz256-armv8.S",
121 "${build_all_generated_path}/crypto/modes/aes-gcm-armv8_64.S",
122 "${build_all_generated_path}/crypto/modes/ghashv8-armx.S",
123 "${build_all_generated_path}/crypto/poly1305/poly1305-armv8.S",
124 "${build_all_generated_path}/crypto/sha/keccak1600-armv8.S",
125 "${build_all_generated_path}/crypto/sha/sha1-armv8.S",
126 "${build_all_generated_path}/crypto/sha/sha256-armv8.S",
127 "${build_all_generated_path}/crypto/sha/sha512-armv8.S",
132 "${build_all_generated_path}/crypto/aes/aes-x86_64.s",
133 "${build_all_generated_path}/crypto/aes/aesni-mb-x86_64.s",
134 "${build_all_generated_path}/crypto/aes/aesni-sha1-x86_64.s",
135 "${build_all_generated_path}/crypto/aes/aesni-sha256-x86_64.s",
136 "${build_all_generated_path}/crypto/aes/aesni-x86_64.s",
137 "${build_all_generated_path}/crypto/aes/bsaes-x86_64.s",
138 "${build_all_generated_path}/crypto/aes/vpaes-x86_64.s",
139 "${build_all_generated_path}/crypto/bn/rsaz-avx2.s",
140 "${build_all_generated_path}/crypto/bn/rsaz-avx512.s",
141 "${build_all_generated_path}/crypto/bn/rsaz-x86_64.s",
142 "${build_all_generated_path}/crypto/bn/x86_64-gf2m.s",
143 "${build_all_generated_path}/crypto/bn/x86_64-mont.s",
144 "${build_all_generated_path}/crypto/bn/x86_64-mont5.s",
145 "${build_all_generated_path}/crypto/camellia/cmll-x86_64.s",
146 "${build_all_generated_path}/crypto/chacha/chacha-x86_64.s",
147 "${build_all_generated_path}/crypto/ec/ecp_nistz256-x86_64.s",
148 "${build_all_generated_path}/crypto/ec/x25519-x86_64.s",
149 "${build_all_generated_path}/crypto/md5/md5-x86_64.s",
150 "${build_all_generated_path}/crypto/modes/aesni-gcm-x86_64.s",
151 "${build_all_generated_path}/crypto/modes/ghash-x86_64.s",
152 "${build_all_generated_path}/crypto/poly1305/poly1305-x86_64.s",
153 "${build_all_generated_path}/crypto/rc4/rc4-md5-x86_64.s",
154 "${build_all_generated_path}/crypto/rc4/rc4-x86_64.s",
155 "${build_all_generated_path}/crypto/sha/keccak1600-x86_64.s",
156 "${build_all_generated_path}/crypto/sha/sha1-mb-x86_64.s",
157 "${build_all_generated_path}/crypto/sha/sha1-x86_64.s",
158 "${build_all_generated_path}/crypto/sha/sha256-mb-x86_64.s",
159 "${build_all_generated_path}/crypto/sha/sha256-x86_64.s",
160 "${build_all_generated_path}/crypto/sha/sha512-x86_64.s",
161 "${build_all_generated_path}/crypto/whrlpool/wp-x86_64.s",
166 [ "${build_all_generated_path}/engines/e_padlock-x86_64.s" ]
171 "${build_all_generated_path}/crypto/aes/aesv8-armx.S",
172 "${build_all_generated_path}/crypto/aes/vpaes-armv8.S",
174 "${build_all_generated_path}/crypto/bn/armv8-mont.S",
175 "${build_all_generated_path}/crypto/chacha/chacha-armv8.S",
176 "${build_all_generated_path}/crypto/ec/ecp_nistz256-armv8.S",
177 "${build_all_generated_path}/crypto/modes/aes-gcm-armv8_64.S",
178 "${build_all_generated_path}/crypto/modes/ghashv8-armx.S",
179 "${build_all_generated_path}/crypto/poly1305/poly1305-armv8.S",
180 "${build_all_generated_path}/crypto/sha/keccak1600-armv8.S",
181 "${build_all_generated_path}/crypto/sha/sha1-armv8.S",
182 "${build_all_generated_path}/crypto/sha/sha256-armv8.S",
183 "${build_all_generated_path}/crypto/sha/sha512-armv8.S",
188 "${build_all_generated_path}/crypto/aes/aes-x86_64.s",
189 "${build_all_generated_path}/crypto/aes/aesni-mb-x86_64.s",
190 "${build_all_generated_path}/crypto/aes/aesni-sha1-x86_64.s",
191 "${build_all_generated_path}/crypto/aes/aesni-sha256-x86_64.s",
192 "${build_all_generated_path}/crypto/aes/aesni-x86_64.s",
193 "${build_all_generated_path}/crypto/aes/bsaes-x86_64.s",
194 "${build_all_generated_path}/crypto/aes/vpaes-x86_64.s",
195 "${build_all_generated_path}/crypto/bn/rsaz-avx2.s",
196 "${build_all_generated_path}/crypto/bn/rsaz-avx512.s",
197 "${build_all_generated_path}/crypto/bn/rsaz-x86_64.s",
198 "${build_all_generated_path}/crypto/bn/x86_64-gf2m.s",
199 "${build_all_generated_path}/crypto/bn/x86_64-mont.s",
200 "${build_all_generated_path}/crypto/bn/x86_64-mont5.s",
201 "${build_all_generated_path}/crypto/camellia/cmll-x86_64.s",
202 "${build_all_generated_path}/crypto/chacha/chacha-x86_64.s",
203 "${build_all_generated_path}/crypto/ec/ecp_nistz256-x86_64.s",
204 "${build_all_generated_path}/crypto/ec/x25519-x86_64.s",
205 "${build_all_generated_path}/crypto/md5/md5-x86_64.s",
206 "${build_all_generated_path}/crypto/modes/aesni-gcm-x86_64.s",
207 "${build_all_generated_path}/crypto/modes/ghash-x86_64.s",
208 "${build_all_generated_path}/crypto/poly1305/poly1305-x86_64.s",
209 "${build_all_generated_path}/crypto/rc4/rc4-md5-x86_64.s",
210 "${build_all_generated_path}/crypto/rc4/rc4-x86_64.s",
211 "${build_all_generated_path}/crypto/sha/keccak1600-x86_64.s",
212 "${build_all_generated_path}/crypto/sha/sha1-mb-x86_64.s",
213 "${build_all_generated_path}/crypto/sha/sha1-x86_64.s",
214 "${build_all_generated_path}/crypto/sha/sha256-mb-x86_64.s",
215 "${build_all_generated_path}/crypto/sha/sha256-x86_64.s",
216 "${build_all_generated_path}/crypto/sha/sha512-x86_64.s",
217 "${build_all_generated_path}/crypto/whrlpool/wp-x86_64.s",
222 [ "${build_all_generated_path}/engines/e_padlock-x86_64.s" ]
228 "${build_all_generated_path}/crypto/md5/md5-loongarch64.S",
233 "${build_all_generated_path}/crypto/aes/aes-x86_64.s",
234 "${build_all_generated_path}/crypto/aes/aesni-mb-x86_64.s",
235 "${build_all_generated_path}/crypto/aes/aesni-sha1-x86_64.s",
236 "${build_all_generated_path}/crypto/aes/aesni-sha256-x86_64.s",
237 "${build_all_generated_path}/crypto/aes/aesni-x86_64.s",
238 "${build_all_generated_path}/crypto/aes/bsaes-x86_64.s",
239 "${build_all_generated_path}/crypto/aes/vpaes-x86_64.s",
240 "${build_all_generated_path}/crypto/bn/rsaz-avx2.s",
241 "${build_all_generated_path}/crypto/bn/rsaz-avx512.s",
242 "${build_all_generated_path}/crypto/bn/rsaz-x86_64.s",
243 "${build_all_generated_path}/crypto/bn/x86_64-gf2m.s",
244 "${build_all_generated_path}/crypto/bn/x86_64-mont.s",
245 "${build_all_generated_path}/crypto/bn/x86_64-mont5.s",
246 "${build_all_generated_path}/crypto/camellia/cmll-x86_64.s",
247 "${build_all_generated_path}/crypto/chacha/chacha-x86_64.s",
248 "${build_all_generated_path}/crypto/ec/ecp_nistz256-x86_64.s",
249 "${build_all_generated_path}/crypto/ec/x25519-x86_64.s",
250 "${build_all_generated_path}/crypto/md5/md5-x86_64.s",
251 "${build_all_generated_path}/crypto/modes/aesni-gcm-x86_64.s",
252 "${build_all_generated_path}/crypto/modes/ghash-x86_64.s",
253 "${build_all_generated_path}/crypto/poly1305/poly1305-x86_64.s",
254 "${build_all_generated_path}/crypto/rc4/rc4-md5-x86_64.s",
255 "${build_all_generated_path}/crypto/rc4/rc4-x86_64.s",
256 "${build_all_generated_path}/crypto/sha/keccak1600-x86_64.s",
257 "${build_all_generated_path}/crypto/sha/sha1-mb-x86_64.s",
258 "${build_all_generated_path}/crypto/sha/sha1-x86_64.s",
259 "${build_all_generated_path}/crypto/sha/sha256-mb-x86_64.s",
260 "${build_all_generated_path}/crypto/sha/sha256-x86_64.s",
261 "${build_all_generated_path}/crypto/sha/sha512-x86_64.s",
262 "${build_all_generated_path}/crypto/whrlpool/wp-x86_64.s",
267 [ "${build_all_generated_path}/engines/e_padlock-x86_64.s" ]
271 if (openssl_selected_platform == "linux-armv4") {
274 } else if (openssl_selected_platform == "linux-aarch64") {
277 } else if (openssl_selected_platform == "darwin64-x86_64-cc") {
280 } else if (openssl_selected_platform == "darwin64-arm64-cc") {
283 } else if (openssl_selected_platform == "linux-x86_64") {
289 } else if (openssl_selected_platform == "linux64-loongarch64") {
312 # The exec_script in the global area will be executed before ninja command,
348 "-Wall",
350 …ompatible integer to pointer conversion assigning to 'char *' from 'int' [-Werror,-Wint-conversion]
353 "-Wno-error=int-conversion",
355 …nsigned long' changes value from 10000000000000000000 to 2313682944 [-Werror,-Wconstant-conversion]
358 "-Wno-error=constant-conversion",
360 …ssl/crypto/bn/bn_exp.c:382:38: error: shift count >= width of type [-Werror,-Wshift-count-overflow]
361 # if (m->d[j - 1] & (((BN_ULONG)1) << (BN_BITS2 - 1))) {
363 "-Wno-error=shift-count-overflow",
365 …rty/openssl/crypto/conf/conf_def.c:31:11: error: 'stat' macro redefined [-Werror,-Wmacro-redefined]
368 …# ../../prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/include/sys/stat.h:27…
372 "-Wno-error=macro-redefined",
374 "-Wno-error=implicit-fallthrough",
375 "-Wno-error=sign-compare",
379 # Fix llvm-15 build error
380 "-Wno-unused-but-set-variable",
385 openssl_internal_cflags -= [
386 "-Wno-error=constant-conversion",
387 "-Wno-error=macro-redefined",
393 # -I args from Makefile
436 "-Wa,--noexecstack",
437 "-DNDEBUG",
438 "-DOPENSSL_BUILDING_OPENSSL",
439 "-DOPENSSL_CPUID_OBJ",
440 "-DOPENSSL_PIC",
442 # use `openssl version -a` cmd to see runtime OPENSSLDIR, ENGINESDIR, MODULESDIR value
445 # linux-armv4, linux-aarch64, darwin64-x86_64-cc, darwin64-arm64-cc
446 # /usr/local/lib/engines-3
447 # linux-x86_64, mingw64
448 # /usr/local/lib64/engines-3
449 "-DENGINESDIR=\"\"",
452 # linux-armv4, linux-aarch64, darwin64-x86_64-cc, darwin64-arm64-cc
453 # /usr/local/lib/ossl-modules
454 # linux-x86_64, mingw64
455 # /usr/local/lib64/ossl-modules
456 "-DMODULESDIR=\"\"",
461 "-DOPENSSLDIR=\"/system/etc\"",
464 crypto_config_common_cflags += [ "-DSTATIC_LEGACY" ]
469 "-DOPENSSL_USE_NODELETE",
470 "-fPIC",
471 "-pthread",
473 "-DAES_ASM",
474 "-DBSAES_ASM",
475 "-DECP_NISTZ256_ASM",
476 "-DGHASH_ASM",
477 "-DKECCAK1600_ASM",
478 "-DOPENSSL_BN_ASM_GF2m",
479 "-DOPENSSL_BN_ASM_MONT",
480 "-DPOLY1305_ASM",
481 "-DSHA1_ASM",
482 "-DSHA256_ASM",
483 "-DSHA512_ASM",
488 "-DOPENSSL_USE_NODELETE",
489 "-fPIC",
490 "-pthread",
492 "-DECP_NISTZ256_ASM",
493 "-DKECCAK1600_ASM",
494 "-DOPENSSL_BN_ASM_MONT",
495 "-DPOLY1305_ASM",
496 "-DSHA1_ASM",
497 "-DSHA256_ASM",
498 "-DSHA512_ASM",
499 "-DVPAES_ASM",
504 "-fPIC",
505 "-DL_ENDIAN",
506 "-D_REENTRANT",
507 "-DOPENSSL_IA32_SSE2",
509 "-DAES_ASM",
510 "-DBSAES_ASM",
511 "-DCMLL_ASM",
512 "-DECP_NISTZ256_ASM",
513 "-DGHASH_ASM",
514 "-DKECCAK1600_ASM",
515 "-DMD5_ASM",
516 "-DOPENSSL_BN_ASM_GF2m",
517 "-DOPENSSL_BN_ASM_MONT",
518 "-DOPENSSL_BN_ASM_MONT5",
519 "-DPOLY1305_ASM",
520 "-DSHA1_ASM",
521 "-DSHA256_ASM",
522 "-DSHA512_ASM",
523 "-DVPAES_ASM",
524 "-DWHIRLPOOL_ASM",
525 "-DX25519_ASM",
528 crypto_config_darwin64_x86_64_cc_cflags += [ "-DPADLOCK_ASM" ]
533 "-DL_ENDIAN",
534 "-D_REENTRANT",
535 "-fPIC",
537 "-DECP_NISTZ256_ASM",
538 "-DKECCAK1600_ASM",
539 "-DOPENSSL_BN_ASM_MONT",
540 "-DPOLY1305_ASM",
541 "-DSHA1_ASM",
542 "-DSHA256_ASM",
543 "-DSHA512_ASM",
544 "-DVPAES_ASM",
549 "-DL_ENDIAN",
550 "-DOPENSSL_IA32_SSE2",
551 "-DOPENSSL_USE_NODELETE",
552 "-fPIC",
553 "-m64",
554 "-pthread",
556 "-DAES_ASM",
557 "-DBSAES_ASM",
558 "-DCMLL_ASM",
559 "-DECP_NISTZ256_ASM",
560 "-DGHASH_ASM",
561 "-DKECCAK1600_ASM",
562 "-DMD5_ASM",
563 "-DOPENSSL_BN_ASM_GF2m",
564 "-DOPENSSL_BN_ASM_MONT",
565 "-DOPENSSL_BN_ASM_MONT5",
566 "-DPOLY1305_ASM",
567 "-DSHA1_ASM",
568 "-DSHA256_ASM",
569 "-DSHA512_ASM",
570 "-DVPAES_ASM",
571 "-DWHIRLPOOL_ASM",
572 "-DX25519_ASM",
575 crypto_config_linux_x86_64_cflags += [ "-DPADLOCK_ASM" ]
580 "-D_MT",
581 "-D_UNICODE",
582 "-DL_ENDIAN",
583 "-DOPENSSL_IA32_SSE2",
584 "-DUNICODE",
585 "-DWIN32_LEAN_AND_MEAN",
586 "-m64",
588 "-DAES_ASM",
589 "-DBSAES_ASM",
590 "-DCMLL_ASM",
591 "-DECP_NISTZ256_ASM",
592 "-DGHASH_ASM",
593 "-DKECCAK1600_ASM",
594 "-DMD5_ASM",
595 "-DOPENSSL_BN_ASM_GF2m",
596 "-DOPENSSL_BN_ASM_MONT",
597 "-DOPENSSL_BN_ASM_MONT5",
598 "-DPOLY1305_ASM",
599 "-DSHA1_ASM",
600 "-DSHA256_ASM",
601 "-DSHA512_ASM",
602 "-DVPAES_ASM",
603 "-DWHIRLPOOL_ASM",
604 "-DX25519_ASM",
607 crypto_config_mingw64_cflags += [ "-DPADLOCK_ASM" ]
611 "-DOPENSSL_USE_NODELETE",
612 "-fPIC",
613 "-pthread",
614 "-Wall",
615 "-O3",
616 "-DNDEBUG",
617 "-MMD",
618 "-MF",
619 "-DOPENSSL_BUILDING_OPENSSL",
620 "-DOPENSSL_PIC",
624 if (openssl_selected_platform == "linux-armv4") {
626 } else if (openssl_selected_platform == "linux-aarch64") {
628 } else if (openssl_selected_platform == "darwin64-x86_64-cc") {
631 } else if (openssl_selected_platform == "darwin64-arm64-cc") {
634 } else if (openssl_selected_platform == "linux-x86_64") {
638 } else if (openssl_selected_platform == "linux64-loongarch64") {
646 …mingw32_libs_path += [ "//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib…
1599 if (openssl_selected_platform == "linux-armv4") {
1614 } else if (openssl_selected_platform == "linux-aarch64") {
1630 } else if (openssl_selected_platform == "darwin64-x86_64-cc") {
1633 "crypto/bn/asm/x86_64-gcc.c",
1637 } else if (openssl_selected_platform == "darwin64-arm64-cc") {
1650 } else if (openssl_selected_platform == "linux-x86_64") {
1653 "crypto/bn/asm/x86_64-gcc.c",
1663 "crypto/bn/asm/x86_64-gcc.c",
1667 } else if (openssl_selected_platform == "linux64-loongarch64") {
1689 sources -= [
1750 "-Wl",
1751 "-install_name",
1896 "-Wl",
1897 "-install_name",