Files

27 lines
1.3 KiB
Markdown
Raw Permalink 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.
---
title: UDX710 构建与目标 ABI 规则
type: rule
permalink: main/projects/4f53c06a-c6c3-40ec-b2fc-5f019ea45fc0/udx710-构建与目标-abi-规则
stable_id: 8c6276e6-d7db-409d-a3cd-5570c2d8fdc5
scope: project
project_id: 4f53c06a-c6c3-40ec-b2fc-5f019ea45fc0
memory_type: rule
status: active
revision: 1
restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2
created_at: '2026-09-23T14:54:49.967570+00:00'
updated_at: '2026-09-23T14:54:49.967631+00:00'
tags:
- build
- docker
- aarch64
- glibc
- windows
---
- 开发主机是 Windows,但后端不得以 Windows 本机编译结果作为设备发布依据,必须使用 Linux Docker 构建。
- 设备目标是 aarch64-unknown-linux-gnu,动态加载器 /lib/ld-linux-aarch64.so.1,glibc 2.27;禁止用 musl 目标或较新宿主直接链接发布二进制。
- 后端使用 docker/gnu-builder.Dockerfile(Ubuntu 18.04)和 project-cpe-gnu-builder 镜像;发布后检查 ELF 架构及最高 GLIBC 符号不超过 2.27。
- 前端使用 Node 24、pnpm 9,执行 lint、TypeScript 检查和 Vite 生产构建。
- 保留 project-cpe-pnpm-build、project-cpe-cargo-registry、backend/target 和 .cache/frpc/0.70.1,避免重复下载依赖。
- shell 脚本必须保持 LF;CRLF 会导致 Linux 容器执行失败。