Files
ssw-tds-test/card/build.sh
T
ssw-tds-test e4e5faa55e init: ssw-tds-test 可信数据空间部署测试工程
初始提交,沉淀 k8s-tenant-wuguirong 租户下完整可信数据空间
的部署、真机/真数据/真多方验证成果。

包含:
- CLAUDE.md / docs/:工程入口、armv7 glibc 兼容性整改规格、
  ssw-platform#1(armv7 stdout=文件即 exit 100)issue 正文
- build/:TDS 服务端 + tdc-connector 交叉构建脚本、cube 沙箱
  编排、三方拓扑/真机验收脚本、ELF 符号扫描工具
- card/:软卡(softcard)源码与预编译产物(local/amd64/armv7)
- evidence/:验收报告、三方真实结果、armv7 stdout 矩阵复现证据
- .workbuddy/memory/:工作日志

排除:ssw-tds/ 与 ssw-acz7015/ 为上游源码独立仓库(含 .git,
体积大);build/ 下 ctx-*/dist/pglite-* 等可重建中间产物;
build/.env.*、tdc-conn-key/、.tdc-identity-secret 等明文密钥。
2026-11-13 10:19:19 +08:00

21 lines
726 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# 交叉编译软卡:linux/amd64(AMD/海光)+ linux/armv7(ZYNQ,静态,无 CGO)。
# 用法: bash card/build.sh
set -euo pipefail
cd "$(dirname "$0")"
mkdir -p dist
export CGO_ENABLED=0
echo "=== 本机自检 ==="
go build -trimpath -o dist/softcard-local .
./dist/softcard-local --self-test
echo "=== linux/amd64 ==="
GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o dist/softcard-linux-amd64 .
echo "=== linux/armv7 (GOARM=7, 静态) ==="
GOOS=linux GOARCH=arm GOARM=7 go build -trimpath -ldflags="-s -w" -o dist/softcard-linux-armv7 .
echo "=== 产物 ==="
file dist/softcard-linux-amd64 dist/softcard-linux-armv7
ls -lh dist/softcard-linux-amd64 dist/softcard-linux-armv7