feat(ncm): 网易云技术栈预研+构建验证 (agent-200) — 选型: mbedtls3.6.2裁剪(TLS+AES+MD5+RSA raw+Base64,~388KB)/jsmn(2.2KB)/qrcodegen(10.8KB)/minimp3(37.4KB), 合计~438KB; HTTPS unikey 全链路宿主+qemu-mipsel 实测通过; RSA raw 与 Python pow 逐字节一致; MP3 解码非瓶颈
vendor源码+out产物不入库(126MB, gitignore; 版本/许可/裁剪见 VENDOR_NOTES.md, build_*.sh 可复现)
This commit is contained in:
1 parent
2d93298f8a
commit
c96e912518
19 files changed
+733
No files matched your search
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# BearSSL — 官方 git(https://www.bearssl.org/git/BearSSL)。许可 MIT。
|
||||
# 使用 make lib 编译出 libbearssl.a(含 int/core/codec/ec/rsa/symcipher/ssl/x509)。
|
||||
. ./libs_common.sh
|
||||
SRC="$VENDOR/bearssl"
|
||||
D="$OUT/bearssl/mipsel"; mkdir -p "$D"
|
||||
# 在源码内建一个专用 build 目录,避免污染
|
||||
BM="$D/bm"; rm -rf "$BM"; mkdir -p "$BM"
|
||||
make -C "$SRC" lib \
|
||||
BUILD="$BM" \
|
||||
CC="$CC_MIPS" \
|
||||
AR="$AR_MIPS" \
|
||||
RANLIB="$AR_MIPS ranlib" \
|
||||
CFLAGS="-Os -Wno-unused-parameter -fno-stack-protector -ffunction-sections -fdata-sections" \
|
||||
LD="$CC_MIPS" 2>&1 | tail -15
|
||||
echo "make exit=${PIPESTATUS[0]}"
|
||||
echo "=== lib list ==="; ls -la "$BM/"
|
||||
case "x$(ls "$BM"/*.a 2>/dev/null)" in x) echo "no .a produced";; *) echo "=== BearSSL (mipsel) ==="; measure_archive "$BM/libbearssl.a";; esac
|
||||
Reference in new issue
Block a user