Skip to content

Commit 29bf0b1

Browse files
committed
Script for linux_ppc64le
1 parent 28469f6 commit 29bf0b1

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

aws-lc-sys/builder/cc_builder.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,14 @@ fn identify_sources() -> Vec<&'static str> {
7272
source_files.append(&mut Vec::from(linux_arm::CRYPTO_LIBRARY));
7373
} else if target_arch() == "x86" {
7474
source_files.append(&mut Vec::from(linux_x86::CRYPTO_LIBRARY));
75-
} else if target_arch() == "powerpc64le" {
75+
} else if target_arch() == "ppc64le" {
7676
source_files.append(&mut Vec::from(linux_ppc64le::CRYPTO_LIBRARY));
77+
} else {
78+
emit_warning(format!(
79+
"No target-specific source found: {}-{}",
80+
target_os(),
81+
target_arch()
82+
));
7783
}
7884
source_files
7985
}

aws-lc-sys/builder/cc_builder/linux_ppc64le.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR ISC
3+
// Fri Oct 17 20:03:08 UTC 2025
34

45
pub(super) const CRYPTO_LIBRARY: &[&str] = &[
56
"generated-src/linux-ppc64le/crypto/fipsmodule/aesp8-ppc.S",

aws-lc-sys/scripts/cc_builder/linux_ppc64le.sh

100644100755
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ source "${SCRIPT_DIR}/_common.sh"
1111

1212
pushd "${AWS_LC_DIR}"
1313
declare -a SOURCE_FILES
14-
SOURCE_FILES=("generated-src/err_data.c")
15-
mapfile -O 1 -t SOURCE_FILES < <(find crypto -name "*.c" -type f | rg --pcre2 -v 'crypto/fipsmodule/(?!(bcm.c|cpucap/cpucap.c))' | rg --pcre2 -v 'crypto/kyber/pqcrystals_kyber_ref_common/(?!fips202.c)' | rg --pcre2 -v '_test\.c$' | sort -f)
16-
echo "${SOURCE_FILES[@]}"
17-
mapfile -O ${#SOURCE_FILES[@]} -t SOURCE_FILES < <(find third_party/jitterentropy/jitterentropy-library/src -type f -name "*.c" | sort -f)
14+
SOURCE_FILES=( )
15+
mapfile -O ${#SOURCE_FILES[@]} -t SOURCE_FILES < <(find generated-src/linux-ppc64le/crypto -name "*.S" -type f | sort -f)
1816
echo "${SOURCE_FILES[@]}"
17+
1918
popd
2019

2120
# Sort SOURCE_FILES array

0 commit comments

Comments
 (0)