Skip to content

Commit 425fd42

Browse files
committed
Use EXTRA_BUILD_DEPS for OP-TEE dependencies instead of runtime apt-get
1 parent 88a20e7 commit 425fd42

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

config/sources/families/nuvoton-ma35d1.conf

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ declare -g OPTEE_DIR="optee-os-ma35d1"
4848
declare -g OPTEE_BRANCH="branch:master"
4949
declare -g OPTEE_COMPILER="aarch64-linux-gnu-"
5050

51+
# Host dependencies for OP-TEE build (pycryptodome for signing, pyelftools for ELF parsing)
52+
function add_host_dependencies__ma35d1_optee_deps() {
53+
display_alert "Adding MA35D1 OP-TEE host dependencies" "python3-pycryptodome python3-pyelftools" "info"
54+
declare -g EXTRA_BUILD_DEPS="${EXTRA_BUILD_DEPS} python3-pycryptodome python3-pyelftools"
55+
}
56+
5157
# DDR configuration DTB - 512MB for IoT board
5258
# Available options: ma35d1-cpu800-wb-512m, ma35d1-cpu1g-wb-512m, etc.
5359
declare -g MA35D1_DDR_DTB="${MA35D1_DDR_DTB:-ma35d1-cpu800-wb-512m}"
@@ -186,12 +192,8 @@ compile_optee_ma35d1() {
186192
run_host_command_logged git clone --depth 1 -b "${OPTEE_BRANCH##*:}" "${OPTEE_SOURCE}" "${optee_src_dir}"
187193
fi
188194

189-
# Install OP-TEE build dependencies (via apt, pip3 not available in container)
190-
# pycryptodome: for signing scripts
191-
# pyelftools: for gen_ldelf_hex.py (ELF parsing)
192-
display_alert "Installing OP-TEE build dependencies" "pycryptodome, pyelftools" "info"
193-
run_host_command_logged apt-get update -qq
194-
run_host_command_logged apt-get install -y -qq python3-pycryptodome python3-pyelftools
195+
# Note: Build dependencies (python3-pycryptodome, python3-pyelftools) are
196+
# declared via add_host_dependencies__ma35d1_optee_deps() for proper Armbian framework handling
195197

196198
# Determine cross compiler - use system compiler directly
197199
local cross_compile="aarch64-linux-gnu-"

0 commit comments

Comments
 (0)