[PATCH v2 5/9] docker: Drop grub for arm64
Simon Glass
sjg at chromium.org
Tue Nov 5 17:07:34 CET 2024
This doesn't build on arm64 at present, so drop it for now. We only
expect to run sandbox tests, so perhaps it isn't needed.
The error seems to be due to not using the correct toolchains:
./configure: line 32517: /opt/gcc-13.2.0-nolibc/aarch64-linux/
bin/aarch64-linux-gcc: No such file or directory
checking for options to get soft-float... no
configure: error: could not force soft-float
That is at the top of the file, and needs adjusting.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v2:
- Expand commit-message to show the problem
tools/docker/Dockerfile | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile
index 84661b036c6..458deb7c1ad 100644
--- a/tools/docker/Dockerfile
+++ b/tools/docker/Dockerfile
@@ -139,7 +139,9 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
RUN chmod +r /boot/vmlinu*
# Build GRUB UEFI targets for ARM & RISC-V, 32-bit and 64-bit
-RUN git clone git://git.savannah.gnu.org/grub.git /tmp/grub && \
+# This fails on arm64
+RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
+ git clone git://git.savannah.gnu.org/grub.git /tmp/grub && \
cd /tmp/grub && \
git checkout grub-2.06 && \
git config --global user.name "GitLab CI Runner" && \
@@ -189,7 +191,8 @@ RUN git clone git://git.savannah.gnu.org/grub.git /tmp/grub && \
lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot \
search search_fs_file search_fs_uuid search_label serial sleep test \
true && \
- rm -rf /tmp/grub
+ rm -rf /tmp/grub; \
+ fi
RUN git clone https://gitlab.com/qemu-project/qemu.git /tmp/qemu && \
cd /tmp/qemu && \
--
2.34.1
More information about the U-Boot
mailing list