提交 8b0e9eca 编写于 作者: H h00416433 提交者: public tcshversion

TicketNo:DTS2020060505037

Description:return 1 when fail
Team:OTHERS
Feature or Bugfix:Bugfix
Binary Source:No
PrivateCode(Yes/No):No

Change-Id: I3e7959117a8f0fcbb8b0f43d07a7228d7b3e5487
Reviewed-on: http://mgit-tm.rnd.huawei.com/9162304Tested-by: Npublic jenkins <public_jenkins@notesmail.huawei.com>
Reviewed-by: Nhouyuezhou 00386575 <hou@huawei.com>
Reviewed-by: Nlinyibin 00246405 <linyibin@huawei.com>
上级 dfd124d6
#!/bin/sh
#!/bin/bash
# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
# Description: This script is used to generate .S files.
# Create: 2020-05-30
error()
{
echo ===========================================
echo Create asm file FAIL!
echo ===========================================
exit 1
}
success()
{
echo ===========================================
echo Create asm file Sucess!
echo ===========================================
exit 0
}
rm -rf crypto/aes/asm/arm32
rm -rf crypto/modes/asm/arm32
mkdir crypto/aes/asm/arm32
mkdir crypto/modes/asm/arm32
# for arm32:
perl crypto/aes/asm/aes-armv4.pl void crypto/aes/asm/arm32/aes-armv4.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/aes/asm/aesv8-armx.pl void crypto/aes/asm/arm32/aesv8-armx.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/aes/asm/bsaes-armv7.pl void crypto/aes/asm/arm32/bsaes-armv7.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/armv4cpuid.pl void crypto/armv4cpuid.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/bn/asm/armv4-gf2m.pl void crypto/bn/armv4-gf2m.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/bn/asm/armv4-mont.pl void crypto/bn/armv4-mont.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/chacha/asm/chacha-armv4.pl void crypto/chacha/chacha-armv4.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/ec/asm/ecp_nistz256-armv4.pl void crypto/ec/ecp_nistz256-armv4.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/modes/asm/ghash-armv4.pl void crypto/modes/asm/arm32/ghash-armv4.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/modes/asm/ghashv8-armx.pl void crypto/modes/asm/arm32/ghashv8-armx.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/poly1305/asm/poly1305-armv4.pl void crypto/poly1305/poly1305-armv4.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/sha/asm/keccak1600-armv4.pl void crypto/sha/keccak1600-armv4.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/sha/asm/sha1-armv4-large.pl void crypto/sha/sha1-armv4-large.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/sha/asm/sha256-armv4.pl void crypto/sha/sha256-armv4.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/sha/asm/sha512-armv4.pl void crypto/sha/sha512-armv4.S
if [ $? -ne 0 ]; then
error
fi
rm -rf crypto/aes/asm/arm64
rm -rf crypto/modes/asm/arm64
mkdir crypto/aes/asm/arm64
mkdir crypto/modes/asm/arm64
# for arm64:
perl crypto/aes/asm/aesv8-armx.pl linux64 crypto/aes/asm/arm64/aesv8-armx.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/aes/asm/vpaes-armv8.pl linux64 crypto/aes/asm/arm64/vpaes-armv8.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/arm64cpuid.pl linux64 crypto/arm64cpuid.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/bn/asm/armv8-mont.pl linux64 crypto/bn/armv8-mont.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/chacha/asm/chacha-armv8.pl linux64 crypto/chacha/chacha-armv8.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/ec/asm/ecp_nistz256-armv8.pl linux64 crypto/ec/ecp_nistz256-armv8.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/modes/asm/ghashv8-armx.pl linux64 crypto/modes/asm/arm64/ghashv8-armx.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/poly1305/asm/poly1305-armv8.pl linux64 crypto/poly1305/poly1305-armv8.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/sha/asm/keccak1600-armv8.pl linux64 crypto/sha/keccak1600-armv8.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/sha/asm/sha1-armv8.pl linux64 crypto/sha/sha1-armv8.S
if [ $? -ne 0 ]; then
error
fi
perl crypto/sha/asm/sha512-armv8.pl linux64 crypto/sha/sha256-armv8.S
perl crypto/sha/asm/sha512-armv8.pl linux64 crypto/sha/sha512-armv8.S
\ No newline at end of file
if [ $? -ne 0 ]; then
error
fi
perl crypto/sha/asm/sha512-armv8.pl linux64 crypto/sha/sha512-armv8.S
if [ $? -ne 0 ]; then
error
else
success
fi
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册