Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion config/sources/families/nuvoton-ma35d1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ function uboot_custom_postprocess() {

local cross_compile="aarch64-linux-gnu-"

# Check if linker supports --no-warn-rwx-segments (binutils 2.39+)
# Workaround for ubuntu:jammy older toolchain
local ldflags=""
if ${cross_compile}ld --help 2>&1 | grep -q "no-warn-rwx-segments"; then
ldflags="--no-warn-rwx-segments"
fi

run_host_command_logged make -C "${optee_src_dir}" clean PLATFORM=nuvoton-MA35D1 2>/dev/null || true

display_alert "Building OP-TEE" "PLATFORM=nuvoton-MA35D1" "info"
Expand All @@ -125,7 +132,7 @@ function uboot_custom_postprocess() {
PLATFORM=nuvoton-MA35D1 \
CFG_ARM64_core=y \
CFG_TEE_CORE_LOG_LEVEL=1 \
LDFLAGS="--no-warn-rwx-segments" \
LDFLAGS="${ldflags}" \
NOWERROR=1 \
-j$(nproc)

Expand Down