12 Star 1 Fork 22

src-openEuler/tpm2-tss

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
add-bootstrap-file-from-upstream.patch 3.44 KB
一键复制 编辑 原始数据 按行查看 历史
From ba537356b598515ede5d18952117a7f5d183549a Mon Sep 17 00:00:00 2001
From: chench <chench@hygon.cn>
Date: Fri, 29 Dec 2023 12:07:37 +0800
Subject: [PATCH] add bootstrap file
---
bootstrap | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 95 insertions(+)
create mode 100755 bootstrap
diff --git a/bootstrap b/bootstrap
new file mode 100755
index 0000000..c25c9a3
--- /dev/null
+++ b/bootstrap
@@ -0,0 +1,95 @@
+#!/bin/sh
+set -e
+
+#git describe --tags --always --dirty > VERSION
+
+# generate list of source files for use in Makefile.am
+# if you add new source files, you must run ./bootstrap again
+src_listvar () {
+ basedir=$1
+ suffix=$2
+ var=$3
+
+ find "${basedir}" -name "${suffix}" | LC_ALL=C sort | tr '\n' ' ' | (printf "${var} = " && cat)
+ echo ""
+}
+
+# remove source files from list if their usage depends on a configure option
+remove_src () {
+ files=$1
+ shift
+ for x in $*
+ do
+ x=$(echo "$x" | sed 's/\//\\\//g')
+ files=$(echo $files | sed -e "s/$x//")
+ done
+ echo $files
+}
+
+# generate list of eys source files for use in Makefile.am
+# if you add new source files, you must run ./bootstrap again
+# files after the var name will be elimenated from list list
+src_esys_listvar () {
+ basedir=$1;
+ shift;
+ suffix=$1
+ shift;
+ var=$1
+ shift;
+
+ files=$(find "${basedir}" -name "${suffix}" | LC_ALL=C sort | tr '\n' ' ')
+ files=$(remove_src "${files}" $*)
+ printf "${var} = ${files}"
+ echo ""
+}
+
+VARS_FILE=src_vars.mk
+AUTORECONF=${AUTORECONF:-autoreconf}
+
+echo "Generating file lists: ${VARS_FILE}"
+(
+ src_listvar "src/util" "*.c" "UTIL_C"
+ src_listvar "src/util" "*.h" "UTIL_H"
+ printf "UTIL_SRC = \$(UTIL_C) \$(UTIL_H)\n"
+
+ src_listvar "src/tss2-sys/" "*.c" "TSS2_SYS_C"
+ src_listvar "src/tss2-sys/" "*.h" "TSS2_SYS_H"
+ printf "TSS2_SYS_SRC = \$(TSS2_SYS_H) \$(TSS2_SYS_C)\n"
+
+ src_esys_listvar "src/tss2-esys/" "*.h" "TSS2_ESYS_H" src/tss2-esys/esys_crypto_ossl.h src/tss2-esys/esys_crypto_mbed.h
+ src_esys_listvar "src/tss2-esys/" "*.c" "TSS2_ESYS_C" src/tss2-esys/esys_crypto_ossl.c src/tss2-esys/esys_crypto_mbed.c
+ printf "TSS2_ESYS_SRC = \$(TSS2_ESYS_H) \$(TSS2_ESYS_C)\n"
+
+ src_listvar "src/tss2-fapi/" "*.h" "TSS2_FAPI_H"
+ src_listvar "src/tss2-fapi/" "*.c" "TSS2_FAPI_C"
+ printf "TSS2_FAPI_SRC = \$(TSS2_FAPI_H) \$(TSS2_FAPI_C)\n"
+
+ src_listvar "src/tss2-mu" "*.c" "TSS2_MU_C"
+ src_listvar "src/tss2-mu" "*.h" "TSS2_MU_H"
+ printf "TSS2_MU_SRC = \$(TSS2_MU_C) \$(TSS2_MU_H)\n"
+
+ src_listvar "src/tss2-rc" "*.c" "TSS2_RC_C"
+ src_listvar "src/tss2-rc" "*.h" "TSS2_RC_H"
+ printf "TSS2_RC_SRC = \$(TSS2_RC_C) \$(TSS2_RC_H)\n"
+
+ src_listvar "src/tss2-policy" "*.c" "TSS2_POLICY_C"
+ src_listvar "src/tss2-policy" "*.h" "TSS2_POLICY_H"
+ printf "TSS2_POLICY_SRC = \$(TSS2_POLICY_C) \$(TSS2_POLICY_H)"
+) > ${VARS_FILE}
+
+# Do not generate fuzz tests unless environment variable GEN_FUZZ is set to 1
+rm -rf Makefile-fuzz-generated.am
+if test "${GEN_FUZZ}0" -eq 10; then
+ echo "Generating fuzz tests"
+ script/gen_fuzz.py
+else
+ touch Makefile-fuzz-generated.am
+fi
+
+${AUTORECONF} --install --sym $@
+
+if grep "Invalid policy. Valid policies: git-directory, minor-version." configure >/dev/null; then
+ echo "ERROR: ax_is_release.m4 is outdated. ./configure will fail."
+ echo "Please download from http://ftpmirror.gnu.org/autoconf-archive/autoconf-archive-2019.01.06.tar.xz"
+ exit 1
+fi
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/tpm2-tss.git
git@gitee.com:src-openeuler/tpm2-tss.git
src-openeuler
tpm2-tss
tpm2-tss
master

搜索帮助