Some checks failed
Basic Checks / license-check (push) Has been cancelled
Basic Checks / include-check (push) Has been cancelled
Basic Checks / style-check (push) Has been cancelled
Basic Checks / docs-check (push) Has been cancelled
Basic Checks / python-tests (push) Has been cancelled
Basic Checks / pin-validation (push) Has been cancelled
Basic Checks / cmake-checks (push) Has been cancelled
Basic Checks / frozen-tools-check (push) Has been cancelled
Publish or Update docker image for head of branch / prepare-tags (push) Has been cancelled
Release or update docker image for a released mbed-os version / prepare-tags (push) Has been cancelled
Publish or Update docker image for head of branch / build-container (push) Has been cancelled
Publish or Update docker image for head of branch / test-container (linux/amd64) (push) Has been cancelled
Publish or Update docker image for head of branch / test-container (linux/arm64) (push) Has been cancelled
Publish or Update docker image for head of branch / deploy-container (push) Has been cancelled
Release or update docker image for a released mbed-os version / build-container (push) Has been cancelled
Release or update docker image for a released mbed-os version / test-container (linux/amd64) (push) Has been cancelled
Release or update docker image for a released mbed-os version / test-container (linux/arm64) (push) Has been cancelled
Release or update docker image for a released mbed-os version / deploy-container (push) Has been cancelled
Prune temporary docker images / prune-images (push) Has been cancelled
43 lines
890 B
Bash
43 lines
890 B
Bash
#!/bin/sh
|
|
#
|
|
# This file is part of mbed TLS (https://tls.mbed.org)
|
|
#
|
|
# Copyright (c) 2018, ARM Limited, All Rights Reserved
|
|
#
|
|
# Purpose
|
|
#
|
|
# Comments and uncomments #define lines in the given configuration header file
|
|
# to configure the file for use in mbed OS.
|
|
#
|
|
# Usage: adjust-no-entropy-config.sh [path to config script] [path to no-entropy config file]
|
|
#
|
|
set -eu
|
|
|
|
if [ $# -ne 2 ]; then
|
|
echo "Usage: $0 path/to/config.pl path/to/config.h" >&2
|
|
exit 1
|
|
fi
|
|
|
|
SCRIPT=$1
|
|
FILE=$2
|
|
|
|
conf() {
|
|
$SCRIPT -o -f $FILE $@
|
|
}
|
|
|
|
add_code() {
|
|
MATCH_PATTERN="$1"
|
|
shift
|
|
CODE=$(IFS=""; printf "%s" "$*")
|
|
|
|
perl -i -pe \
|
|
"s/$MATCH_PATTERN/$MATCH_PATTERN$CODE/igs" \
|
|
"$FILE"
|
|
}
|
|
|
|
conf set MBEDTLS_CMAC_C
|
|
conf unset MBEDTLS_CIPHER_MODE_XTS
|
|
|
|
# potentially save flash space by not enabling self-tests by default
|
|
conf unset MBEDTLS_SELF_TEST
|