blob: bc8d1ebbb1e83bd30c1e271d1e106227ed0b4ae5 [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 Rinie0c84c82024-08-21 09:41:20 -06005FROM ubuntu:jammy-20240808
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
9# Make sure apt is happy
10ENV DEBIAN_FRONTEND=noninteractive
11
12# Add LLVM repository
Tom Rini3f88c792024-11-27 11:17:25 -060013RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
14 --mount=type=cache,target=/var/lib/apt,sharing=locked \
15 apt-get update && apt-get install -y gnupg2 wget xz-utils
Tom Rini04549e92021-03-15 13:19:01 -040016RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
Tom Rinie752a3a2024-03-10 15:59:28 -040017RUN echo deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main | tee /etc/apt/sources.list.d/llvm.list
Tom Rini04549e92021-03-15 13:19:01 -040018
Tom Rini3bd5ed72023-08-25 13:21:26 -040019# Manually install the kernel.org "Crosstool" based toolchains for gcc-13.2.0
20RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/13.2.0/x86_64-gcc-13.2.0-nolibc-aarch64-linux.tar.xz | tar -C /opt -xJ
21RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/13.2.0/x86_64-gcc-13.2.0-nolibc-arc-linux.tar.xz | tar -C /opt -xJ
22RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/13.2.0/x86_64-gcc-13.2.0-nolibc-arm-linux-gnueabi.tar.xz | tar -C /opt -xJ
23RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/13.2.0/x86_64-gcc-13.2.0-nolibc-i386-linux.tar.xz | tar -C /opt -xJ
24RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/13.2.0/x86_64-gcc-13.2.0-nolibc-m68k-linux.tar.xz | tar -C /opt -xJ
25RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/13.2.0/x86_64-gcc-13.2.0-nolibc-mips-linux.tar.xz | tar -C /opt -xJ
26RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/13.2.0/x86_64-gcc-13.2.0-nolibc-microblaze-linux.tar.xz | tar -C /opt -xJ
27RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/13.2.0/x86_64-gcc-13.2.0-nolibc-nios2-linux.tar.xz | tar -C /opt -xJ
28RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/13.2.0/x86_64-gcc-13.2.0-nolibc-powerpc-linux.tar.xz | tar -C /opt -xJ
29RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/13.2.0/x86_64-gcc-13.2.0-nolibc-riscv64-linux.tar.xz | tar -C /opt -xJ
30RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/13.2.0/x86_64-gcc-13.2.0-nolibc-riscv32-linux.tar.xz | tar -C /opt -xJ
31RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/13.2.0/x86_64-gcc-13.2.0-nolibc-sh2-linux.tar.xz | tar -C /opt -xJ
Tom Rinif3fb9cd2024-11-27 11:17:21 -060032RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/13.2.0/x86_64-gcc-13.2.0-nolibc-x86_64-linux.tar.xz | tar -C /opt -xJ
Tom Rini04549e92021-03-15 13:19:01 -040033
34# Manually install other toolchains
Tom Rini0a78bc32021-07-02 10:41:58 -040035RUN 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
Tom Rini04549e92021-03-15 13:19:01 -040036
37# Update and install things from apt now
Tom Rini3f88c792024-11-27 11:17:25 -060038RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
39 --mount=type=cache,target=/var/lib/apt,sharing=locked \
40 apt-get update && apt-get install -y \
Tom Rini04549e92021-03-15 13:19:01 -040041 automake \
42 autopoint \
43 bc \
44 binutils-dev \
45 bison \
46 build-essential \
Simon Glassbe17cb32023-08-24 13:55:46 -060047 cgpt \
Tom Rinie752a3a2024-03-10 15:59:28 -040048 clang-17 \
Tom Rini04549e92021-03-15 13:19:01 -040049 coreutils \
50 cpio \
Tom Rini04549e92021-03-15 13:19:01 -040051 curl \
52 device-tree-compiler \
53 dosfstools \
54 e2fsprogs \
55 efitools \
Huang Jianan11e04432022-02-26 15:05:51 +080056 erofs-utils \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010057 expect \
Tom Rini04549e92021-03-15 13:19:01 -040058 fakeroot \
59 flex \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010060 gawk \
Tom Rini04549e92021-03-15 13:19:01 -040061 gdisk \
Tom Rini12248ed2024-11-27 11:17:23 -060062 gettext \
Tom Rini04549e92021-03-15 13:19:01 -040063 git \
64 gnu-efi \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010065 gnutls-dev \
Tom Rini04549e92021-03-15 13:19:01 -040066 graphviz \
Tom Rini04549e92021-03-15 13:19:01 -040067 help2man \
68 iasl \
69 imagemagick \
70 iputils-ping \
Tom Riniac6c3332023-01-11 12:24:57 -050071 libc6-i386 \
Bin Mengf551a532021-08-26 23:33:33 +080072 libconfuse-dev \
Tom Rinic8982d22021-06-10 10:57:36 -040073 libgit2-dev \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010074 libjson-glib-dev \
Tom Rini04549e92021-03-15 13:19:01 -040075 libguestfs-tools \
AKASHI Takahiro3edc3472022-02-01 10:32:36 +090076 libgnutls28-dev \
77 libgnutls30 \
Tom Rini04549e92021-03-15 13:19:01 -040078 liblz4-tool \
79 libpixman-1-dev \
Tom Rinic8982d22021-06-10 10:57:36 -040080 libpython3-dev \
Tom Rini04549e92021-03-15 13:19:01 -040081 libsdl1.2-dev \
82 libsdl2-dev \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010083 libseccomp-dev \
Tom Rini83da2322023-07-13 10:16:28 -040084 libslirp-dev \
Tom Rini04549e92021-03-15 13:19:01 -040085 libssl-dev \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010086 libtool \
Tom Rini04549e92021-03-15 13:19:01 -040087 libudev-dev \
88 libusb-1.0-0-dev \
Alper Nebi Yasak5d249e92021-06-21 21:51:54 +030089 linux-image-kvm \
Tom Rini04549e92021-03-15 13:19:01 -040090 lzma-alone \
91 lzop \
92 mount \
93 mtd-utils \
94 mtools \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010095 net-tools \
Bin Meng00afccd2021-08-26 23:33:32 +080096 ninja-build \
Tom Rini04549e92021-03-15 13:19:01 -040097 openssl \
98 picocom \
99 parted \
100 pkg-config \
Tom Rinic8982d22021-06-10 10:57:36 -0400101 python-is-python3 \
102 python2.7 \
103 python3 \
104 python3-dev \
Tom Rini04549e92021-03-15 13:19:01 -0400105 python3-pip \
Simon Glassb955cd22022-10-13 06:25:57 -0600106 python3-pyelftools \
Tom Rini04549e92021-03-15 13:19:01 -0400107 python3-sphinx \
Tom Rinic8982d22021-06-10 10:57:36 -0400108 python3-virtualenv \
Tom Rini04549e92021-03-15 13:19:01 -0400109 rpm2cpio \
110 sbsigntool \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +0100111 socat \
112 softhsm2 \
Tom Rini04549e92021-03-15 13:19:01 -0400113 sparse \
114 srecord \
115 sudo \
116 swig \
Heinrich Schuchardtc2c98ea2022-12-30 05:41:01 +0100117 texinfo \
Tom Rini04549e92021-03-15 13:19:01 -0400118 util-linux \
119 uuid-dev \
120 virtualenv \
Simon Glassbe17cb32023-08-24 13:55:46 -0600121 vboot-kernel-utils \
122 vboot-utils \
Heinrich Schuchardt905d0752024-02-28 08:23:09 +0100123 xilinx-bootgen \
Tom Rini0a78bc32021-07-02 10:41:58 -0400124 xxd \
Tom Rini3f88c792024-11-27 11:17:25 -0600125 zip
Tom Rini04549e92021-03-15 13:19:01 -0400126
Alper Nebi Yasak5d249e92021-06-21 21:51:54 +0300127# Make kernels readable for libguestfs tools to work correctly
128RUN chmod +r /boot/vmlinu*
129
Tom Rini04549e92021-03-15 13:19:01 -0400130# Build GRUB UEFI targets for ARM & RISC-V, 32-bit and 64-bit
131RUN git clone git://git.savannah.gnu.org/grub.git /tmp/grub && \
132 cd /tmp/grub && \
Tom Rini12248ed2024-11-27 11:17:23 -0600133 git checkout grub-2.12 && \
Tom Rini77d48f12022-11-22 12:31:58 -0500134 git config --global user.name "GitLab CI Runner" && \
135 git config --global user.email trini@konsulko.com && \
Tom Rini04549e92021-03-15 13:19:01 -0400136 ./bootstrap && \
137 mkdir -p /opt/grub && \
138 ./configure --target=aarch64 --with-platform=efi \
139 CC=gcc \
Tom Rini3bd5ed72023-08-25 13:21:26 -0400140 TARGET_CC=/opt/gcc-13.2.0-nolibc/aarch64-linux/bin/aarch64-linux-gcc \
141 TARGET_OBJCOPY=/opt/gcc-13.2.0-nolibc/aarch64-linux/bin/aarch64-linux-objcopy \
142 TARGET_STRIP=/opt/gcc-13.2.0-nolibc/aarch64-linux/bin/aarch64-linux-strip \
143 TARGET_NM=/opt/gcc-13.2.0-nolibc/aarch64-linux/bin/aarch64-linux-nm \
144 TARGET_RANLIB=/opt/gcc-13.2.0-nolibc/aarch64-linux/bin/aarch64-linux-ranlib && \
Tom Rini4bac0392024-11-27 11:17:22 -0600145 make -j$(nproc) && \
Tom Rini04549e92021-03-15 13:19:01 -0400146 ./grub-mkimage -O arm64-efi -o /opt/grub/grubaa64.efi --prefix= -d \
147 grub-core cat chain configfile echo efinet ext2 fat halt help linux \
148 lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot \
149 search search_fs_file search_fs_uuid search_label serial sleep test \
150 true && \
151 make clean && \
152 ./configure --target=arm --with-platform=efi \
153 CC=gcc \
Tom Rini3bd5ed72023-08-25 13:21:26 -0400154 TARGET_CC=/opt/gcc-13.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc \
155 TARGET_OBJCOPY=/opt/gcc-13.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-objcopy \
156 TARGET_STRIP=/opt/gcc-13.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-strip \
157 TARGET_NM=/opt/gcc-13.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-nm \
158 TARGET_RANLIB=/opt/gcc-13.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-ranlib && \
Tom Rini4bac0392024-11-27 11:17:22 -0600159 make -j$(nproc) && \
Tom Rini04549e92021-03-15 13:19:01 -0400160 ./grub-mkimage -O arm-efi -o /opt/grub/grubarm.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=riscv64 --with-platform=efi \
167 CC=gcc \
Tom Rini3bd5ed72023-08-25 13:21:26 -0400168 TARGET_CC=/opt/gcc-13.2.0-nolibc/riscv64-linux/bin/riscv64-linux-gcc \
169 TARGET_OBJCOPY=/opt/gcc-13.2.0-nolibc/riscv64-linux/bin/riscv64-linux-objcopy \
170 TARGET_STRIP=/opt/gcc-13.2.0-nolibc/riscv64-linux/bin/riscv64-linux-strip \
171 TARGET_NM=/opt/gcc-13.2.0-nolibc/riscv64-linux/bin/riscv64-linux-nm \
172 TARGET_RANLIB=/opt/gcc-13.2.0-nolibc/riscv64-linux/bin/riscv64-linux-ranlib && \
Tom Rini4bac0392024-11-27 11:17:22 -0600173 make -j$(nproc) && \
Tom Rini04549e92021-03-15 13:19:01 -0400174 ./grub-mkimage -O riscv64-efi -o /opt/grub/grubriscv64.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 && \
Tom Rinie8403a92024-11-27 11:17:24 -0600179 make clean && \
180 ./configure --target=i386 --with-platform=efi \
181 CC=gcc \
182 TARGET_CC=/opt/gcc-13.2.0-nolibc/i386-linux/bin/i386-linux-gcc \
183 TARGET_OBJCOPY=/opt/gcc-13.2.0-nolibc/i386-linux/bin/i386-linux-objcopy \
184 TARGET_STRIP=/opt/gcc-13.2.0-nolibc/i386-linux/bin/i386-linux-strip \
185 TARGET_NM=/opt/gcc-13.2.0-nolibc/i386-linux/bin/i386-linux-nm \
186 TARGET_RANLIB=/opt/gcc-13.2.0-nolibc/i386-linux/bin/i386-linux-ranlib && \
187 make -j$(nproc) && \
188 ./grub-mkimage -O i386-efi -o /opt/grub/grub_x86.efi --prefix= -d \
189 grub-core normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd && \
190 make clean && \
191 ./configure --target=x86_64 --with-platform=efi \
192 CC=gcc \
193 TARGET_CC=/opt/gcc-13.2.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc \
194 TARGET_OBJCOPY=/opt/gcc-13.2.0-nolibc/x86_64-linux/bin/x86_64-linux-objcopy \
195 TARGET_STRIP=/opt/gcc-13.2.0-nolibc/x86_64-linux/bin/x86_64-linux-strip \
196 TARGET_NM=/opt/gcc-13.2.0-nolibc/x86_64-linux/bin/x86_64-linux-nm \
197 TARGET_RANLIB=/opt/gcc-13.2.0-nolibc/x86_64-linux/bin/x86_64-linux-ranlib && \
198 make -j$(nproc) && \
199 ./grub-mkimage -O x86_64-efi -o /opt/grub/grub_x64.efi --prefix= -d \
200 grub-core normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd && \
Tom Rini04549e92021-03-15 13:19:01 -0400201 rm -rf /tmp/grub
202
Tom Rinib60c1d72023-02-07 12:50:13 -0500203RUN git clone https://gitlab.com/qemu-project/qemu.git /tmp/qemu && \
Tom Rini04549e92021-03-15 13:19:01 -0400204 cd /tmp/qemu && \
Heinrich Schuchardt24069c22024-01-12 03:17:57 +0100205 git checkout v8.2.0 && \
Bin Meng00afccd2021-08-26 23:33:32 +0800206 # config user.name and user.email to make 'git am' happy
207 git config user.name u-boot && \
208 git config user.email u-boot@denx.de && \
Heinrich Schuchardt24069c22024-01-12 03:17:57 +0100209 git format-patch 0c7ffc977195~..0c7ffc977195 && \
210 git am 0001-hw-net-cadence_gem-Fix-MDIO_OP_xxx-values.patch && \
Tom Rini139e9952024-03-11 10:02:43 -0400211 git cherry-pick d3c79c3974 && \
Tom Rini26a41832023-03-21 15:28:00 -0400212 ./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 -0400213 make -j$(nproc) all install && \
214 rm -rf /tmp/qemu
215
Heinrich Schuchardt2b4a6562024-02-28 08:43:11 +0100216# Build fiptool
217RUN git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git /tmp/tf-a && \
218 cd /tmp/tf-a/ && \
219 git checkout v2.10.0 && \
220 cd tools/fiptool && \
Tom Rini4bac0392024-11-27 11:17:22 -0600221 make -j$(nproc) && \
Heinrich Schuchardt2b4a6562024-02-28 08:43:11 +0100222 mkdir -p /usr/local/bin && \
223 cp fiptool /usr/local/bin && \
224 rm -rf /tmp/tf-a
225
Bin Mengf551a532021-08-26 23:33:33 +0800226# Build genimage (required by some targets to generate disk images)
227RUN wget -O - https://github.com/pengutronix/genimage/releases/download/v14/genimage-14.tar.xz | tar -C /tmp -xJ && \
228 cd /tmp/genimage-14 && \
229 ./configure && \
230 make -j$(nproc) && \
231 make install && \
232 rm -rf /tmp/genimage-14
233
Heinrich Schuchardt4e202672021-11-09 19:51:20 +0100234# Build libtpms
235RUN git clone https://github.com/stefanberger/libtpms /tmp/libtpms && \
236 cd /tmp/libtpms && \
237 ./autogen.sh && \
238 ./configure && \
239 make -j$(nproc) && \
240 make install && \
241 ldconfig && \
242 rm -rf /tmp/libtpms
243
244# Build swtpm
245RUN git clone https://github.com/stefanberger/swtpm /tmp/swtpm && \
246 cd /tmp/swtpm && \
247 ./autogen.sh && \
248 ./configure && \
249 make -j$(nproc) && \
250 make install && \
251 rm -rf /tmp/swtpm
252
Simon Glass523cb6d2023-01-15 14:15:59 -0700253# Build trace-cmd
254RUN mkdir /tmp/trace && \
255 git clone https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git /tmp/trace/libtraceevent && \
256 cd /tmp/trace/libtraceevent && \
257 make -j$(nproc) && \
258 sudo make install && \
259 git clone https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git /tmp/trace/libtracefs && \
260 cd /tmp/trace/libtracefs && \
261 make -j$(nproc) && \
262 sudo make install && \
263 git clone https://github.com/rostedt/trace-cmd.git /tmp/trace/trace-cmd && \
264 cd /tmp/trace/trace-cmd && \
265 make -j$(nproc) && \
266 sudo make install && \
267 rm -rf /tmp/trace
268
Tom Rini9e2b09e2024-02-13 09:39:26 -0500269# Build coreboot
Simon Glass78b9c8a2024-10-14 16:32:05 -0600270RUN wget -O - https://coreboot.org/releases/coreboot-24.08.tar.xz | tar -C /tmp -xJ && \
271 cd /tmp/coreboot-24.08 && \
Tom Rini9e2b09e2024-02-13 09:39:26 -0500272 make crossgcc-i386 CPUS=$(nproc) && \
273 make -C payloads/coreinfo olddefconfig && \
274 make -C payloads/coreinfo && \
275 make olddefconfig && \
Simon Glass78b9c8a2024-10-14 16:32:05 -0600276 echo CONFIG_GENERIC_LINEAR_FRAMEBUFFER=y | tee -a .config && \
277 echo CONFIG_USE_OPTION_TABLE=y | tee -a .config && \
278 make olddefconfig && \
Tom Rini9e2b09e2024-02-13 09:39:26 -0500279 make -j $(nproc) && \
280 sudo mkdir /opt/coreboot && \
281 sudo cp build/coreboot.rom build/cbfstool /opt/coreboot/
282
Tom Rini04549e92021-03-15 13:19:01 -0400283# Create our user/group
284RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot
285RUN useradd -m -U uboot
286USER uboot:uboot
287
Tom Rini54573e02023-03-23 14:57:58 -0400288# Populate the cache for pip to use. Get these via wget as the
289# COPY / ADD directives don't work as we need them to.
290RUN wget -O /tmp/pytest-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/test/py/requirements.txt
291RUN wget -O /tmp/sphinx-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/doc/sphinx/requirements.txt
Tom Rini763160f2024-01-18 12:10:07 -0500292RUN wget -O /tmp/buildman-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/tools/buildman/requirements.txt
Tom Rini54573e02023-03-23 14:57:58 -0400293RUN virtualenv -p /usr/bin/python3 /tmp/venv && \
294 . /tmp/venv/bin/activate && \
295 pip install -r /tmp/pytest-requirements.txt \
Tom Rini763160f2024-01-18 12:10:07 -0500296 -r /tmp/sphinx-requirements.txt \
297 -r /tmp/buildman-requirements.txt && \
Tom Rini54573e02023-03-23 14:57:58 -0400298 deactivate && \
Tom Rini763160f2024-01-18 12:10:07 -0500299 rm -rf /tmp/venv /tmp/*-requirements.txt
Tom Rini54573e02023-03-23 14:57:58 -0400300
Tom Rini04549e92021-03-15 13:19:01 -0400301# Create the buildman config file
302RUN /bin/echo -e "[toolchain]\nroot = /usr" > ~/.buildman
Tom Rini3bd5ed72023-08-25 13:21:26 -0400303RUN /bin/echo -e "kernelorg = /opt/gcc-13.2.0-nolibc/*" >> ~/.buildman
Tom Rini0a78bc32021-07-02 10:41:58 -0400304RUN /bin/echo -e "\n[toolchain-prefix]\nxtensa = /opt/2020.07/xtensa-dc233c-elf/bin/xtensa-dc233c-elf-" >> ~/.buildman;
Tom Rini04549e92021-03-15 13:19:01 -0400305RUN /bin/echo -e "\n[toolchain-alias]\nsh = sh2" >> ~/.buildman
Tom Rini04549e92021-03-15 13:19:01 -0400306RUN /bin/echo -e "\nx86 = i386" >> ~/.buildman;
Safae Ouajihaaa366f2023-02-06 00:50:21 +0100307
308# Add mkbootimg tool
309RUN git clone https://android.googlesource.com/platform/system/tools/mkbootimg /home/uboot/mkbootimg
310ENV PYTHONPATH "${PYTHONPATH}:/home/uboot/mkbootimg"