Am 2. Juni 2025 21:44:41 MESZ schrieb Greg Malysa <malysag...@gmail.com>:
>ADI processors require packaging with the ldr utility for bootrom

"ADI processors" is not self explanatory. Can we add a sentence like

"LDR files are the executable format for the Analog Devices ADSP-SCxxx on-chip 
Boot ROM. Provide the ldr compiler for ARMv7 and ARMv8."



>compatibility. Normally this is available as part of our yocto-derived
>toolchain but it is not a part of any other premade toolchain, so it is
>otherwise unavailable in the docker image for CI. This patch adds a
>source build from the ADI maintained github repository. 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 <malysag...@gmail.com>
>---
>
> tools/docker/Dockerfile | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
>diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile
>index ceb7a25ad4d..1c4a169e079 100644
>--- a/tools/docker/Dockerfile
>+++ b/tools/docker/Dockerfile
>@@ -308,6 +308,14 @@ RUN wget -O - 
>https://coreboot.org/releases/coreboot-24.08.tar.xz | tar -C /tmp
>     sudo cp build/coreboot.rom build/cbfstool /opt/coreboot/ && \
>     rm -rf /tmp/coreboot-24.08
> 
>+# Build ldr tool for ADI boards and install to match expected abi name
>+RUN git clone 
>https://github.com/analogdevicesinc/lnxdsp-arm-poky-linux-gnueabi-ldr.git 
>/tmp/lnxdsp-arm-poky-linux-gnueabi-ldr && \
>+      cd /tmp/lnxdsp-arm-poky-linux-gnueabi-ldr/src/ldr && \
>+      ./configure && \
>+      make -j $(nproc) && \
>+      cp ldr /usr/bin/arm-linux-gnueabi-ldr && \
>+      cp ldr /usr/bin/aarch64-linux-ldr

In the Docker image we tend to put such tools into a directory in /opt.

Best regards

Heinrich


>+
> # Create our user/group
> RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot
> RUN useradd -m -U uboot

Reply via email to