public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Greg Malysa <malysagreg@gmail.com>
To: u-boot@lists.denx.de
Cc: adsp-linux@analog.com, Greg Malysa <malysagreg@gmail.com>,
	Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Marek Vasut <marex@denx.de>, Raymond Mao <raymondmaoca@gmail.com>,
	Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>
Subject: [PATCH 05/12] docker: add Analog Devices tools to docker image
Date: Thu, 11 Dec 2025 03:03:56 -0500	[thread overview]
Message-ID: <20251211080414.5363-6-malysagreg@gmail.com> (raw)
In-Reply-To: <20251211080414.5363-1-malysagreg@gmail.com>

The boot ROM on Analog Devices ADSP-SC5xx SoCs requires code packaged
in the LDR format. Normally this is available as part of
our yocto-derived toolchain but, it is not a part of any other pre-made
toolchain anymore, so it is otherwise unavailable in the docker image
for CI. This patch adds a source build from the ADI maintained github
repository. In the future, a package available for install via apt will
be available, but currently there is no arm64 build upstream, so we must
build from source for the time being to support CI on both amd64 and
arm64 runners. The same ldr tool is used for arm and arm64 for all of
our boards with names adjusted to match the expected $(CROSS_COMPILE)
for these boards.

Signed-off-by: Greg Malysa <malysagreg@gmail.com>

---

Changes in v3:
 - Update repository url to match ADI's preferred name
 - Switch to --depth=1 and check out a specific tag

Changes in v2:
 - Clarifications in commit message
 - Update to use meson rather than autotools due to changes in ldr

 tools/docker/Dockerfile | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile
index 8ab1cff5584..fb6c65c6388 100644
--- a/tools/docker/Dockerfile
+++ b/tools/docker/Dockerfile
@@ -342,6 +342,22 @@ RUN wget -O - https://coreboot.org/releases/coreboot-25.03.tar.xz | tar -C /tmp
     sudo cp build/coreboot.rom build/cbfstool /opt/coreboot/ && \
     rm -rf /tmp/coreboot-25.03
 
+# Build ldr tool for Analog Devices boards and create prefixed symlinks to match
+# $(CROSS_COMPILE) as used by different supported platforms
+RUN git clone --depth=1 -b v1.0.2 https://github.com/analogdevicesinc/adsp-ldr.git /opt/adi-adsp-ldr && \
+	cd /opt/adi-adsp-ldr && \
+	python3 -m venv venv && \
+	. venv/bin/activate && \
+	pip install meson && \
+	meson setup build && \
+	cd build && \
+	meson compile && \
+	cd .. && \
+	ln -s build/ldr arm-linux-gnueabi-ldr && \
+	ln -s build/ldr aarch64-linux-ldr && \
+	deactivate
+ENV PATH="${PATH}:/opt/adi-adsp-ldr"
+
 # Create our user/group
 RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot
 RUN useradd -m -U uboot
-- 
2.49.1


  parent reply	other threads:[~2025-12-11  8:06 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-11  8:03 [PATCH 00/12] sc5xx: Add complete board support for all ADI SC5xx boards Greg Malysa
2025-12-11  8:03 ` [PATCH 01/12] mach-sc5xx: Introduce Kconfig symbols for image addresses Greg Malysa
2025-12-11  8:03 ` [PATCH 02/12] mach-sc5xx: Rename SC_BOOT_MODE Greg Malysa
2025-12-11  8:03 ` [PATCH 03/12] mach-sc5xx: Kconfig: Make EZKIT and EZLITE carriers mutually exclusive Greg Malysa
2025-12-11  8:03 ` [PATCH 04/12] mach-sc5xx: Add preliminary support for binman Greg Malysa
2025-12-11  8:03 ` Greg Malysa [this message]
2025-12-11  8:03 ` [PATCH 06/12] board: adi: Add SOMCRR infrastructure Greg Malysa
2025-12-11  8:03 ` [PATCH 07/12] board: adi: Add support for SC573-ezkit Greg Malysa
2025-12-11  8:03 ` [PATCH 08/12] board: adi: Add support for SC589 boards Greg Malysa
2025-12-11  8:04 ` [PATCH 09/12] board: adi: Add support for SC584-ezkit Greg Malysa
2025-12-11  8:04 ` [PATCH 10/12] board: adi: Add support for SC598 Greg Malysa
2025-12-11  8:04 ` [PATCH 11/12] board: adi: Add support for SC594 Greg Malysa
2025-12-11  8:04 ` [PATCH 12/12] MAINTAINERS: Update ADI entries for new boards Greg Malysa
2026-01-23 22:33 ` [PATCH 00/12] sc5xx: Add complete board support for all ADI SC5xx boards Tom Rini
  -- strict thread matches above, loose matches on Subject: below --
2025-11-18  6:39 Greg Malysa
2025-11-18  6:39 ` [PATCH 05/12] docker: add Analog Devices tools to docker image Greg Malysa
2025-11-18 14:39   ` Tom Rini
2025-11-20 18:20     ` Greg Malysa
2025-11-20 21:13       ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251211080414.5363-6-malysagreg@gmail.com \
    --to=malysagreg@gmail.com \
    --cc=adsp-linux@analog.com \
    --cc=marex@denx.de \
    --cc=raymondmaoca@gmail.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox