blob: b99796ab6899a816d8fa097d939ff38979e638b1 [file] [log] [blame]
Tom Rini04549e92021-03-15 13:19:01 -04001# SPDX-License-Identifier: GPL-2.0+
2# This Dockerfile is used to build an image containing basic stuff to be used
3# to build U-Boot and run our test suites.
4
Tom Rini344bdb12024-12-08 11:07:32 -06005FROM ubuntu:jammy-20240911.1
Tom Rini92160da2024-08-19 15:07:19 -06006LABEL org.opencontainers.image.authors="Tom Rini <trini@konsulko.com>"
7LABEL org.opencontainers.image.description=" This image is for building U-Boot inside a container"
Tom Rini04549e92021-03-15 13:19:01 -04008
Simon Glass7aafac02024-11-27 11:17:26 -06009# Used by docker to set the target platform: valid values are linux/arm64/v8
10# and linux/amd64
11ARG TARGETPLATFORM
12
13# Used by docker to set the build platform: the only valid value is linux/amd64
14ARG BUILDPLATFORM
15
Tom Rini04549e92021-03-15 13:19:01 -040016# Make sure apt is happy
17ENV DEBIAN_FRONTEND=noninteractive
18
Simon Glassef4ca582024-11-27 11:17:29 -060019# Set architectures to build for (leaving out ARM which is an exception)
20ENV ARCHS="aarch64 arc i386 m68k mips microblaze nios2 powerpc riscv64 riscv32 sh2 x86_64"
21
22# Mirror containing the toolchains
23ENV MIRROR=https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin
24
25# Toolchain version
Tom Rinib76fa132025-01-28 17:02:05 -060026ENV TCVER=14.2.0
Simon Glassef4ca582024-11-27 11:17:29 -060027
Simon Glass7aafac02024-11-27 11:17:26 -060028RUN echo "Building on $BUILDPLATFORM, for target $TARGETPLATFORM"
29
Tom Rini04549e92021-03-15 13:19:01 -040030# Add LLVM repository
Tom Rini3f88c792024-11-27 11:17:25 -060031RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
32 --mount=type=cache,target=/var/lib/apt,sharing=locked \
33 apt-get update && apt-get install -y gnupg2 wget xz-utils
Tom Rini04549e92021-03-15 13:19:01 -040034RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
Tom Rinib76fa132025-01-28 17:02:05 -060035RUN echo deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main | tee /etc/apt/sources.list.d/llvm.list
Tom Rini04549e92021-03-15 13:19:01 -040036
Simon Glassef4ca582024-11-27 11:17:29 -060037# Create a list of URLs to process, then pass them into a 'while read' loop
38RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then HOSTARCH=x86_64; else HOSTARCH=arm64; fi; ( \
39 # Manually install the kernel.org "Crosstool"-based toolchains
40 for arch in $ARCHS; do \
41 echo $MIRROR/$HOSTARCH/$TCVER/${HOSTARCH}-gcc-$TCVER-nolibc-${arch}-linux.tar.xz; \
42 done; \
43 \
44 # Deal with ARM, which has a 'gnueabi' suffix
45 echo $MIRROR/${HOSTARCH}/$TCVER/${HOSTARCH}-gcc-$TCVER-nolibc-arm-linux-gnueabi.tar.xz; \
46 \
47 ) | while read url; do \
48 # Read the URL and unpack it into /opt
49 wget -O - $url | tar -C /opt -xJ; \
50 done
Tom Rini04549e92021-03-15 13:19:01 -040051
52# Manually install other toolchains
Simon Glassef4ca582024-11-27 11:17:29 -060053RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
54 wget -O - https://github.com/foss-xtensa/toolchain/releases/download/2020.07/x86_64-2020.07-xtensa-dc233c-elf.tar.gz | tar -C /opt -xz; \
55 fi
Tom Rini04549e92021-03-15 13:19:01 -040056
57# Update and install things from apt now
Tom Rini3f88c792024-11-27 11:17:25 -060058RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
59 --mount=type=cache,target=/var/lib/apt,sharing=locked \
60 apt-get update && apt-get install -y \
Tom Rini04549e92021-03-15 13:19:01 -040061 automake \
62 autopoint \
63 bc \
64 binutils-dev \
65 bison \
66 build-essential \
Simon Glassbe17cb32023-08-24 13:55:46 -060067 cgpt \
Tom Rinib76fa132025-01-28 17:02:05 -060068 clang-18 \
Tom Rini04549e92021-03-15 13:19:01 -040069 coreutils \
70 cpio \
Tom Rini04549e92021-03-15 13:19:01 -040071 curl \
72 device-tree-compiler \
73 dosfstools \
74 e2fsprogs \
75 efitools \
Huang Jianan11e04432022-02-26 15:05:51 +080076 erofs-utils \
Marek Vasut60b83672025-03-17 04:12:50 +010077 exfatprogs \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010078 expect \
Tom Rini04549e92021-03-15 13:19:01 -040079 fakeroot \
80 flex \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010081 gawk \
Tom Rini04549e92021-03-15 13:19:01 -040082 gdisk \
Tom Rini12248ed2024-11-27 11:17:23 -060083 gettext \
Tom Rini04549e92021-03-15 13:19:01 -040084 git \
85 gnu-efi \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010086 gnutls-dev \
Tom Rini04549e92021-03-15 13:19:01 -040087 graphviz \
Tom Rini04549e92021-03-15 13:19:01 -040088 help2man \
89 iasl \
90 imagemagick \
91 iputils-ping \
Bin Mengf551a532021-08-26 23:33:33 +080092 libconfuse-dev \
Tom Rinic8982d22021-06-10 10:57:36 -040093 libgit2-dev \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010094 libjson-glib-dev \
AKASHI Takahiro3edc3472022-02-01 10:32:36 +090095 libgnutls28-dev \
96 libgnutls30 \
Tom Rini04549e92021-03-15 13:19:01 -040097 liblz4-tool \
98 libpixman-1-dev \
Tom Rinic8982d22021-06-10 10:57:36 -040099 libpython3-dev \
Tom Rini04549e92021-03-15 13:19:01 -0400100 libsdl1.2-dev \
101 libsdl2-dev \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +0100102 libseccomp-dev \
Tom Rini83da2322023-07-13 10:16:28 -0400103 libslirp-dev \
Tom Rini04549e92021-03-15 13:19:01 -0400104 libssl-dev \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +0100105 libtool \
Tom Rini04549e92021-03-15 13:19:01 -0400106 libudev-dev \
107 libusb-1.0-0-dev \
108 lzma-alone \
109 lzop \
110 mount \
111 mtd-utils \
112 mtools \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +0100113 net-tools \
Bin Meng00afccd2021-08-26 23:33:32 +0800114 ninja-build \
Tom Rini04549e92021-03-15 13:19:01 -0400115 openssl \
116 picocom \
117 parted \
118 pkg-config \
Tom Rinic8982d22021-06-10 10:57:36 -0400119 python-is-python3 \
120 python2.7 \
121 python3 \
122 python3-dev \
Tom Rini04549e92021-03-15 13:19:01 -0400123 python3-pip \
124 python3-sphinx \
Tom Rinic8982d22021-06-10 10:57:36 -0400125 python3-virtualenv \
Tom Rini04549e92021-03-15 13:19:01 -0400126 rpm2cpio \
127 sbsigntool \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +0100128 socat \
129 softhsm2 \
Tom Rini04549e92021-03-15 13:19:01 -0400130 sparse \
131 srecord \
132 sudo \
133 swig \
Heinrich Schuchardtc2c98ea2022-12-30 05:41:01 +0100134 texinfo \
Tom Rini04549e92021-03-15 13:19:01 -0400135 util-linux \
136 uuid-dev \
137 virtualenv \
Simon Glassbe17cb32023-08-24 13:55:46 -0600138 vboot-kernel-utils \
139 vboot-utils \
Heinrich Schuchardt905d0752024-02-28 08:23:09 +0100140 xilinx-bootgen \
Tom Rini0a78bc32021-07-02 10:41:58 -0400141 xxd \
Tom Rini3f88c792024-11-27 11:17:25 -0600142 zip
Tom Rini04549e92021-03-15 13:19:01 -0400143
Tom Rini04549e92021-03-15 13:19:01 -0400144# Build GRUB UEFI targets for ARM & RISC-V, 32-bit and 64-bit
145RUN git clone git://git.savannah.gnu.org/grub.git /tmp/grub && \
146 cd /tmp/grub && \
Tom Rini12248ed2024-11-27 11:17:23 -0600147 git checkout grub-2.12 && \
Tom Rini77d48f12022-11-22 12:31:58 -0500148 git config --global user.name "GitLab CI Runner" && \
149 git config --global user.email trini@konsulko.com && \
Tom Rini04549e92021-03-15 13:19:01 -0400150 ./bootstrap && \
151 mkdir -p /opt/grub && \
152 ./configure --target=aarch64 --with-platform=efi \
153 CC=gcc \
Tom Rini69349882024-12-08 11:07:25 -0600154 TARGET_CC=/opt/gcc-${TCVER}-nolibc/aarch64-linux/bin/aarch64-linux-gcc \
155 TARGET_OBJCOPY=/opt/gcc-${TCVER}-nolibc/aarch64-linux/bin/aarch64-linux-objcopy \
156 TARGET_STRIP=/opt/gcc-${TCVER}-nolibc/aarch64-linux/bin/aarch64-linux-strip \
157 TARGET_NM=/opt/gcc-${TCVER}-nolibc/aarch64-linux/bin/aarch64-linux-nm \
158 TARGET_RANLIB=/opt/gcc-${TCVER}-nolibc/aarch64-linux/bin/aarch64-linux-ranlib && \
Tom Rini4bac0392024-11-27 11:17:22 -0600159 make -j$(nproc) && \
Tom Rini04549e92021-03-15 13:19:01 -0400160 ./grub-mkimage -O arm64-efi -o /opt/grub/grubaa64.efi --prefix= -d \
161 grub-core cat chain configfile echo efinet ext2 fat halt help linux \
162 lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot \
163 search search_fs_file search_fs_uuid search_label serial sleep test \
164 true && \
165 make clean && \
166 ./configure --target=arm --with-platform=efi \
167 CC=gcc \
Tom Rini69349882024-12-08 11:07:25 -0600168 TARGET_CC=/opt/gcc-${TCVER}-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc \
169 TARGET_OBJCOPY=/opt/gcc-${TCVER}-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-objcopy \
170 TARGET_STRIP=/opt/gcc-${TCVER}-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-strip \
171 TARGET_NM=/opt/gcc-${TCVER}-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-nm \
172 TARGET_RANLIB=/opt/gcc-${TCVER}-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-ranlib && \
Tom Rini4bac0392024-11-27 11:17:22 -0600173 make -j$(nproc) && \
Tom Rini04549e92021-03-15 13:19:01 -0400174 ./grub-mkimage -O arm-efi -o /opt/grub/grubarm.efi --prefix= -d \
175 grub-core cat chain configfile echo efinet ext2 fat halt help linux \
176 lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot \
177 search search_fs_file search_fs_uuid search_label serial sleep test \
178 true && \
179 make clean && \
Tom Rinib76fa132025-01-28 17:02:05 -0600180 grub_cv_cc_mcmodel=no ./configure --target=riscv64 --with-platform=efi \
Tom Rini04549e92021-03-15 13:19:01 -0400181 CC=gcc \
Tom Rini69349882024-12-08 11:07:25 -0600182 TARGET_CC=/opt/gcc-${TCVER}-nolibc/riscv64-linux/bin/riscv64-linux-gcc \
183 TARGET_OBJCOPY=/opt/gcc-${TCVER}-nolibc/riscv64-linux/bin/riscv64-linux-objcopy \
184 TARGET_STRIP=/opt/gcc-${TCVER}-nolibc/riscv64-linux/bin/riscv64-linux-strip \
185 TARGET_NM=/opt/gcc-${TCVER}-nolibc/riscv64-linux/bin/riscv64-linux-nm \
186 TARGET_RANLIB=/opt/gcc-${TCVER}-nolibc/riscv64-linux/bin/riscv64-linux-ranlib && \
Tom Rini4bac0392024-11-27 11:17:22 -0600187 make -j$(nproc) && \
Tom Rini04549e92021-03-15 13:19:01 -0400188 ./grub-mkimage -O riscv64-efi -o /opt/grub/grubriscv64.efi --prefix= -d \
189 grub-core cat chain configfile echo efinet ext2 fat halt help linux \
190 lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot \
191 search search_fs_file search_fs_uuid search_label serial sleep test \
192 true && \
Tom Rinie8403a92024-11-27 11:17:24 -0600193 make clean && \
194 ./configure --target=i386 --with-platform=efi \
195 CC=gcc \
Tom Rini69349882024-12-08 11:07:25 -0600196 TARGET_CC=/opt/gcc-${TCVER}-nolibc/i386-linux/bin/i386-linux-gcc \
197 TARGET_OBJCOPY=/opt/gcc-${TCVER}-nolibc/i386-linux/bin/i386-linux-objcopy \
198 TARGET_STRIP=/opt/gcc-${TCVER}-nolibc/i386-linux/bin/i386-linux-strip \
199 TARGET_NM=/opt/gcc-${TCVER}-nolibc/i386-linux/bin/i386-linux-nm \
200 TARGET_RANLIB=/opt/gcc-${TCVER}-nolibc/i386-linux/bin/i386-linux-ranlib && \
Tom Rinie8403a92024-11-27 11:17:24 -0600201 make -j$(nproc) && \
202 ./grub-mkimage -O i386-efi -o /opt/grub/grub_x86.efi --prefix= -d \
203 grub-core normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd && \
204 make clean && \
205 ./configure --target=x86_64 --with-platform=efi \
206 CC=gcc \
Tom Rini69349882024-12-08 11:07:25 -0600207 TARGET_CC=/opt/gcc-${TCVER}-nolibc/x86_64-linux/bin/x86_64-linux-gcc \
208 TARGET_OBJCOPY=/opt/gcc-${TCVER}-nolibc/x86_64-linux/bin/x86_64-linux-objcopy \
209 TARGET_STRIP=/opt/gcc-${TCVER}-nolibc/x86_64-linux/bin/x86_64-linux-strip \
210 TARGET_NM=/opt/gcc-${TCVER}-nolibc/x86_64-linux/bin/x86_64-linux-nm \
211 TARGET_RANLIB=/opt/gcc-${TCVER}-nolibc/x86_64-linux/bin/x86_64-linux-ranlib && \
Tom Rinie8403a92024-11-27 11:17:24 -0600212 make -j$(nproc) && \
213 ./grub-mkimage -O x86_64-efi -o /opt/grub/grub_x64.efi --prefix= -d \
214 grub-core normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd && \
Tom Rini04549e92021-03-15 13:19:01 -0400215 rm -rf /tmp/grub
216
Tom Rinib60c1d72023-02-07 12:50:13 -0500217RUN git clone https://gitlab.com/qemu-project/qemu.git /tmp/qemu && \
Tom Rini04549e92021-03-15 13:19:01 -0400218 cd /tmp/qemu && \
Heinrich Schuchardt24069c22024-01-12 03:17:57 +0100219 git checkout v8.2.0 && \
Bin Meng00afccd2021-08-26 23:33:32 +0800220 # config user.name and user.email to make 'git am' happy
221 git config user.name u-boot && \
222 git config user.email u-boot@denx.de && \
Heinrich Schuchardt24069c22024-01-12 03:17:57 +0100223 git format-patch 0c7ffc977195~..0c7ffc977195 && \
224 git am 0001-hw-net-cadence_gem-Fix-MDIO_OP_xxx-values.patch && \
Tom Rini139e9952024-03-11 10:02:43 -0400225 git cherry-pick d3c79c3974 && \
Tom Rini26a41832023-03-21 15:28:00 -0400226 ./configure --prefix=/opt/qemu --target-list="aarch64-softmmu,arm-softmmu,i386-softmmu,m68k-softmmu,mips-softmmu,mips64-softmmu,mips64el-softmmu,mipsel-softmmu,ppc-softmmu,riscv32-softmmu,riscv64-softmmu,sh4-softmmu,x86_64-softmmu,xtensa-softmmu" && \
Tom Rini04549e92021-03-15 13:19:01 -0400227 make -j$(nproc) all install && \
228 rm -rf /tmp/qemu
229
Heinrich Schuchardt2b4a6562024-02-28 08:43:11 +0100230# Build fiptool
231RUN git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git /tmp/tf-a && \
232 cd /tmp/tf-a/ && \
233 git checkout v2.10.0 && \
234 cd tools/fiptool && \
Tom Rini4bac0392024-11-27 11:17:22 -0600235 make -j$(nproc) && \
Heinrich Schuchardt2b4a6562024-02-28 08:43:11 +0100236 mkdir -p /usr/local/bin && \
237 cp fiptool /usr/local/bin && \
238 rm -rf /tmp/tf-a
239
Bin Mengf551a532021-08-26 23:33:33 +0800240# Build genimage (required by some targets to generate disk images)
241RUN wget -O - https://github.com/pengutronix/genimage/releases/download/v14/genimage-14.tar.xz | tar -C /tmp -xJ && \
242 cd /tmp/genimage-14 && \
243 ./configure && \
244 make -j$(nproc) && \
245 make install && \
246 rm -rf /tmp/genimage-14
247
Heinrich Schuchardt4e202672021-11-09 19:51:20 +0100248# Build libtpms
249RUN git clone https://github.com/stefanberger/libtpms /tmp/libtpms && \
250 cd /tmp/libtpms && \
251 ./autogen.sh && \
252 ./configure && \
253 make -j$(nproc) && \
254 make install && \
255 ldconfig && \
256 rm -rf /tmp/libtpms
257
258# Build swtpm
259RUN git clone https://github.com/stefanberger/swtpm /tmp/swtpm && \
260 cd /tmp/swtpm && \
261 ./autogen.sh && \
262 ./configure && \
263 make -j$(nproc) && \
264 make install && \
265 rm -rf /tmp/swtpm
266
Simon Glass523cb6d2023-01-15 14:15:59 -0700267# Build trace-cmd
268RUN mkdir /tmp/trace && \
269 git clone https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git /tmp/trace/libtraceevent && \
270 cd /tmp/trace/libtraceevent && \
271 make -j$(nproc) && \
272 sudo make install && \
273 git clone https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git /tmp/trace/libtracefs && \
274 cd /tmp/trace/libtracefs && \
275 make -j$(nproc) && \
276 sudo make install && \
277 git clone https://github.com/rostedt/trace-cmd.git /tmp/trace/trace-cmd && \
278 cd /tmp/trace/trace-cmd && \
279 make -j$(nproc) && \
280 sudo make install && \
281 rm -rf /tmp/trace
282
Tom Rini9e2b09e2024-02-13 09:39:26 -0500283# Build coreboot
Simon Glass78b9c8a2024-10-14 16:32:05 -0600284RUN wget -O - https://coreboot.org/releases/coreboot-24.08.tar.xz | tar -C /tmp -xJ && \
285 cd /tmp/coreboot-24.08 && \
Tom Rini9e2b09e2024-02-13 09:39:26 -0500286 make crossgcc-i386 CPUS=$(nproc) && \
287 make -C payloads/coreinfo olddefconfig && \
288 make -C payloads/coreinfo && \
289 make olddefconfig && \
Simon Glass78b9c8a2024-10-14 16:32:05 -0600290 echo CONFIG_GENERIC_LINEAR_FRAMEBUFFER=y | tee -a .config && \
291 echo CONFIG_USE_OPTION_TABLE=y | tee -a .config && \
292 make olddefconfig && \
Tom Rini9e2b09e2024-02-13 09:39:26 -0500293 make -j $(nproc) && \
294 sudo mkdir /opt/coreboot && \
Tom Rini1994e542025-02-12 16:24:15 -0600295 sudo cp build/coreboot.rom build/cbfstool /opt/coreboot/ && \
296 rm -rf /tmp/coreboot-24.08
Tom Rini9e2b09e2024-02-13 09:39:26 -0500297
Tom Rini04549e92021-03-15 13:19:01 -0400298# Create our user/group
299RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot
300RUN useradd -m -U uboot
301USER uboot:uboot
302
Tom Rini54573e02023-03-23 14:57:58 -0400303# Populate the cache for pip to use. Get these via wget as the
304# COPY / ADD directives don't work as we need them to.
305RUN wget -O /tmp/pytest-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/test/py/requirements.txt
306RUN wget -O /tmp/sphinx-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/doc/sphinx/requirements.txt
Tom Rini9a4b1112025-02-04 17:12:09 -0600307RUN wget -O /tmp/binman-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/tools/binman/requirements.txt
Tom Rini763160f2024-01-18 12:10:07 -0500308RUN wget -O /tmp/buildman-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/tools/buildman/requirements.txt
Tom Rini9a4b1112025-02-04 17:12:09 -0600309RUN wget -O /tmp/patman-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/tools/patman/requirements.txt
310RUN wget -O /tmp/u_boot_pylib-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/tools/u_boot_pylib/requirements.txt
Tom Rini54573e02023-03-23 14:57:58 -0400311RUN virtualenv -p /usr/bin/python3 /tmp/venv && \
312 . /tmp/venv/bin/activate && \
313 pip install -r /tmp/pytest-requirements.txt \
Tom Rini763160f2024-01-18 12:10:07 -0500314 -r /tmp/sphinx-requirements.txt \
Tom Rini9a4b1112025-02-04 17:12:09 -0600315 -r /tmp/binman-requirements.txt \
316 -r /tmp/buildman-requirements.txt \
317 -r /tmp/patman-requirements.txt \
318 -r /tmp/u_boot_pylib-requirements.txt && \
Tom Rini54573e02023-03-23 14:57:58 -0400319 deactivate && \
Tom Rini763160f2024-01-18 12:10:07 -0500320 rm -rf /tmp/venv /tmp/*-requirements.txt
Tom Rini54573e02023-03-23 14:57:58 -0400321
Tom Rini04549e92021-03-15 13:19:01 -0400322# Create the buildman config file
Tom Rinif1b9e2a2024-12-08 11:07:30 -0600323RUN /bin/echo -e "[toolchain]\nkernelorg = /opt/gcc-${TCVER}-nolibc/*" > ~/.buildman
324RUN /bin/echo -e "root = /usr" >> ~/.buildman
Tom Rini5d18a672024-12-08 11:07:24 -0600325RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
326 /bin/echo -e "\n[toolchain-prefix]\nxtensa = /opt/2020.07/xtensa-dc233c-elf/bin/xtensa-dc233c-elf-" >> ~/.buildman; \
327 fi
Tom Rini64d32672024-12-08 11:07:29 -0600328RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
329 /bin/echo -e "\n[toolchain-prefix]\naarch64 = /opt/gcc-${TCVER}-nolibc/aarch64-linux/bin/aarch64-linux-" >> ~/.buildman; \
330 fi
Tom Rini04549e92021-03-15 13:19:01 -0400331RUN /bin/echo -e "\n[toolchain-alias]\nsh = sh2" >> ~/.buildman
Tom Rini04549e92021-03-15 13:19:01 -0400332RUN /bin/echo -e "\nx86 = i386" >> ~/.buildman;
Safae Ouajihaaa366f2023-02-06 00:50:21 +0100333
334# Add mkbootimg tool
335RUN git clone https://android.googlesource.com/platform/system/tools/mkbootimg /home/uboot/mkbootimg
Simon Glassf8e20122024-11-27 11:17:28 -0600336ENV PYTHONPATH="${PYTHONPATH}:/home/uboot/mkbootimg"