blob: 90c90bd05f0bfcc27680b2041ab61eda2d92707d [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
13RUN apt-get update && apt-get install -y gnupg2 wget xz-utils && rm -rf /var/lib/apt/lists/*
14RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
Tom Rinie752a3a2024-03-10 15:59:28 -040015RUN 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 -040016
Tom Rini3bd5ed72023-08-25 13:21:26 -040017# Manually install the kernel.org "Crosstool" based toolchains for gcc-13.2.0
18RUN 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
19RUN 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
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-arm-linux-gnueabi.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-i386-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-m68k-linux.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-mips-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-microblaze-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-nios2-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-powerpc-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-riscv64-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-riscv32-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-sh2-linux.tar.xz | tar -C /opt -xJ
Tom Rinif3fb9cd2024-11-27 11:17:21 -060030RUN 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 -040031
32# Manually install other toolchains
Tom Rini0a78bc32021-07-02 10:41:58 -040033RUN 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 -040034
35# Update and install things from apt now
36RUN apt-get update && apt-get install -y \
37 automake \
38 autopoint \
39 bc \
40 binutils-dev \
41 bison \
42 build-essential \
Simon Glassbe17cb32023-08-24 13:55:46 -060043 cgpt \
Tom Rinie752a3a2024-03-10 15:59:28 -040044 clang-17 \
Tom Rini04549e92021-03-15 13:19:01 -040045 coreutils \
46 cpio \
Tom Rini04549e92021-03-15 13:19:01 -040047 curl \
48 device-tree-compiler \
49 dosfstools \
50 e2fsprogs \
51 efitools \
Huang Jianan11e04432022-02-26 15:05:51 +080052 erofs-utils \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010053 expect \
Tom Rini04549e92021-03-15 13:19:01 -040054 fakeroot \
55 flex \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010056 gawk \
Tom Rini04549e92021-03-15 13:19:01 -040057 gdisk \
Tom Rini12248ed2024-11-27 11:17:23 -060058 gettext \
Tom Rini04549e92021-03-15 13:19:01 -040059 git \
60 gnu-efi \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010061 gnutls-dev \
Tom Rini04549e92021-03-15 13:19:01 -040062 graphviz \
Tom Rini04549e92021-03-15 13:19:01 -040063 help2man \
64 iasl \
65 imagemagick \
66 iputils-ping \
Tom Riniac6c3332023-01-11 12:24:57 -050067 libc6-i386 \
Bin Mengf551a532021-08-26 23:33:33 +080068 libconfuse-dev \
Tom Rinic8982d22021-06-10 10:57:36 -040069 libgit2-dev \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010070 libjson-glib-dev \
Tom Rini04549e92021-03-15 13:19:01 -040071 libguestfs-tools \
AKASHI Takahiro3edc3472022-02-01 10:32:36 +090072 libgnutls28-dev \
73 libgnutls30 \
Tom Rini04549e92021-03-15 13:19:01 -040074 liblz4-tool \
75 libpixman-1-dev \
Tom Rinic8982d22021-06-10 10:57:36 -040076 libpython3-dev \
Tom Rini04549e92021-03-15 13:19:01 -040077 libsdl1.2-dev \
78 libsdl2-dev \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010079 libseccomp-dev \
Tom Rini83da2322023-07-13 10:16:28 -040080 libslirp-dev \
Tom Rini04549e92021-03-15 13:19:01 -040081 libssl-dev \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010082 libtool \
Tom Rini04549e92021-03-15 13:19:01 -040083 libudev-dev \
84 libusb-1.0-0-dev \
Alper Nebi Yasak5d249e92021-06-21 21:51:54 +030085 linux-image-kvm \
Tom Rini04549e92021-03-15 13:19:01 -040086 lzma-alone \
87 lzop \
88 mount \
89 mtd-utils \
90 mtools \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010091 net-tools \
Bin Meng00afccd2021-08-26 23:33:32 +080092 ninja-build \
Tom Rini04549e92021-03-15 13:19:01 -040093 openssl \
94 picocom \
95 parted \
96 pkg-config \
Tom Rinic8982d22021-06-10 10:57:36 -040097 python-is-python3 \
98 python2.7 \
99 python3 \
100 python3-dev \
Tom Rini04549e92021-03-15 13:19:01 -0400101 python3-pip \
Simon Glassb955cd22022-10-13 06:25:57 -0600102 python3-pyelftools \
Tom Rini04549e92021-03-15 13:19:01 -0400103 python3-sphinx \
Tom Rinic8982d22021-06-10 10:57:36 -0400104 python3-virtualenv \
Tom Rini04549e92021-03-15 13:19:01 -0400105 rpm2cpio \
106 sbsigntool \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +0100107 socat \
108 softhsm2 \
Tom Rini04549e92021-03-15 13:19:01 -0400109 sparse \
110 srecord \
111 sudo \
112 swig \
Heinrich Schuchardtc2c98ea2022-12-30 05:41:01 +0100113 texinfo \
Tom Rini04549e92021-03-15 13:19:01 -0400114 util-linux \
115 uuid-dev \
116 virtualenv \
Simon Glassbe17cb32023-08-24 13:55:46 -0600117 vboot-kernel-utils \
118 vboot-utils \
Heinrich Schuchardt905d0752024-02-28 08:23:09 +0100119 xilinx-bootgen \
Tom Rini0a78bc32021-07-02 10:41:58 -0400120 xxd \
Tom Rini04549e92021-03-15 13:19:01 -0400121 zip \
122 && rm -rf /var/lib/apt/lists/*
123
Alper Nebi Yasak5d249e92021-06-21 21:51:54 +0300124# Make kernels readable for libguestfs tools to work correctly
125RUN chmod +r /boot/vmlinu*
126
Tom Rini04549e92021-03-15 13:19:01 -0400127# Build GRUB UEFI targets for ARM & RISC-V, 32-bit and 64-bit
128RUN git clone git://git.savannah.gnu.org/grub.git /tmp/grub && \
129 cd /tmp/grub && \
Tom Rini12248ed2024-11-27 11:17:23 -0600130 git checkout grub-2.12 && \
Tom Rini77d48f12022-11-22 12:31:58 -0500131 git config --global user.name "GitLab CI Runner" && \
132 git config --global user.email trini@konsulko.com && \
Tom Rini04549e92021-03-15 13:19:01 -0400133 ./bootstrap && \
134 mkdir -p /opt/grub && \
135 ./configure --target=aarch64 --with-platform=efi \
136 CC=gcc \
Tom Rini3bd5ed72023-08-25 13:21:26 -0400137 TARGET_CC=/opt/gcc-13.2.0-nolibc/aarch64-linux/bin/aarch64-linux-gcc \
138 TARGET_OBJCOPY=/opt/gcc-13.2.0-nolibc/aarch64-linux/bin/aarch64-linux-objcopy \
139 TARGET_STRIP=/opt/gcc-13.2.0-nolibc/aarch64-linux/bin/aarch64-linux-strip \
140 TARGET_NM=/opt/gcc-13.2.0-nolibc/aarch64-linux/bin/aarch64-linux-nm \
141 TARGET_RANLIB=/opt/gcc-13.2.0-nolibc/aarch64-linux/bin/aarch64-linux-ranlib && \
Tom Rini4bac0392024-11-27 11:17:22 -0600142 make -j$(nproc) && \
Tom Rini04549e92021-03-15 13:19:01 -0400143 ./grub-mkimage -O arm64-efi -o /opt/grub/grubaa64.efi --prefix= -d \
144 grub-core cat chain configfile echo efinet ext2 fat halt help linux \
145 lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot \
146 search search_fs_file search_fs_uuid search_label serial sleep test \
147 true && \
148 make clean && \
149 ./configure --target=arm --with-platform=efi \
150 CC=gcc \
Tom Rini3bd5ed72023-08-25 13:21:26 -0400151 TARGET_CC=/opt/gcc-13.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc \
152 TARGET_OBJCOPY=/opt/gcc-13.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-objcopy \
153 TARGET_STRIP=/opt/gcc-13.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-strip \
154 TARGET_NM=/opt/gcc-13.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-nm \
155 TARGET_RANLIB=/opt/gcc-13.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-ranlib && \
Tom Rini4bac0392024-11-27 11:17:22 -0600156 make -j$(nproc) && \
Tom Rini04549e92021-03-15 13:19:01 -0400157 ./grub-mkimage -O arm-efi -o /opt/grub/grubarm.efi --prefix= -d \
158 grub-core cat chain configfile echo efinet ext2 fat halt help linux \
159 lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot \
160 search search_fs_file search_fs_uuid search_label serial sleep test \
161 true && \
162 make clean && \
163 ./configure --target=riscv64 --with-platform=efi \
164 CC=gcc \
Tom Rini3bd5ed72023-08-25 13:21:26 -0400165 TARGET_CC=/opt/gcc-13.2.0-nolibc/riscv64-linux/bin/riscv64-linux-gcc \
166 TARGET_OBJCOPY=/opt/gcc-13.2.0-nolibc/riscv64-linux/bin/riscv64-linux-objcopy \
167 TARGET_STRIP=/opt/gcc-13.2.0-nolibc/riscv64-linux/bin/riscv64-linux-strip \
168 TARGET_NM=/opt/gcc-13.2.0-nolibc/riscv64-linux/bin/riscv64-linux-nm \
169 TARGET_RANLIB=/opt/gcc-13.2.0-nolibc/riscv64-linux/bin/riscv64-linux-ranlib && \
Tom Rini4bac0392024-11-27 11:17:22 -0600170 make -j$(nproc) && \
Tom Rini04549e92021-03-15 13:19:01 -0400171 ./grub-mkimage -O riscv64-efi -o /opt/grub/grubriscv64.efi --prefix= -d \
172 grub-core cat chain configfile echo efinet ext2 fat halt help linux \
173 lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot \
174 search search_fs_file search_fs_uuid search_label serial sleep test \
175 true && \
Tom Rinie8403a92024-11-27 11:17:24 -0600176 make clean && \
177 ./configure --target=i386 --with-platform=efi \
178 CC=gcc \
179 TARGET_CC=/opt/gcc-13.2.0-nolibc/i386-linux/bin/i386-linux-gcc \
180 TARGET_OBJCOPY=/opt/gcc-13.2.0-nolibc/i386-linux/bin/i386-linux-objcopy \
181 TARGET_STRIP=/opt/gcc-13.2.0-nolibc/i386-linux/bin/i386-linux-strip \
182 TARGET_NM=/opt/gcc-13.2.0-nolibc/i386-linux/bin/i386-linux-nm \
183 TARGET_RANLIB=/opt/gcc-13.2.0-nolibc/i386-linux/bin/i386-linux-ranlib && \
184 make -j$(nproc) && \
185 ./grub-mkimage -O i386-efi -o /opt/grub/grub_x86.efi --prefix= -d \
186 grub-core normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd && \
187 make clean && \
188 ./configure --target=x86_64 --with-platform=efi \
189 CC=gcc \
190 TARGET_CC=/opt/gcc-13.2.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc \
191 TARGET_OBJCOPY=/opt/gcc-13.2.0-nolibc/x86_64-linux/bin/x86_64-linux-objcopy \
192 TARGET_STRIP=/opt/gcc-13.2.0-nolibc/x86_64-linux/bin/x86_64-linux-strip \
193 TARGET_NM=/opt/gcc-13.2.0-nolibc/x86_64-linux/bin/x86_64-linux-nm \
194 TARGET_RANLIB=/opt/gcc-13.2.0-nolibc/x86_64-linux/bin/x86_64-linux-ranlib && \
195 make -j$(nproc) && \
196 ./grub-mkimage -O x86_64-efi -o /opt/grub/grub_x64.efi --prefix= -d \
197 grub-core normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd && \
Tom Rini04549e92021-03-15 13:19:01 -0400198 rm -rf /tmp/grub
199
Tom Rinib60c1d72023-02-07 12:50:13 -0500200RUN git clone https://gitlab.com/qemu-project/qemu.git /tmp/qemu && \
Tom Rini04549e92021-03-15 13:19:01 -0400201 cd /tmp/qemu && \
Heinrich Schuchardt24069c22024-01-12 03:17:57 +0100202 git checkout v8.2.0 && \
Bin Meng00afccd2021-08-26 23:33:32 +0800203 # config user.name and user.email to make 'git am' happy
204 git config user.name u-boot && \
205 git config user.email u-boot@denx.de && \
Heinrich Schuchardt24069c22024-01-12 03:17:57 +0100206 git format-patch 0c7ffc977195~..0c7ffc977195 && \
207 git am 0001-hw-net-cadence_gem-Fix-MDIO_OP_xxx-values.patch && \
Tom Rini139e9952024-03-11 10:02:43 -0400208 git cherry-pick d3c79c3974 && \
Tom Rini26a41832023-03-21 15:28:00 -0400209 ./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 -0400210 make -j$(nproc) all install && \
211 rm -rf /tmp/qemu
212
Heinrich Schuchardt2b4a6562024-02-28 08:43:11 +0100213# Build fiptool
214RUN git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git /tmp/tf-a && \
215 cd /tmp/tf-a/ && \
216 git checkout v2.10.0 && \
217 cd tools/fiptool && \
Tom Rini4bac0392024-11-27 11:17:22 -0600218 make -j$(nproc) && \
Heinrich Schuchardt2b4a6562024-02-28 08:43:11 +0100219 mkdir -p /usr/local/bin && \
220 cp fiptool /usr/local/bin && \
221 rm -rf /tmp/tf-a
222
Bin Mengf551a532021-08-26 23:33:33 +0800223# Build genimage (required by some targets to generate disk images)
224RUN wget -O - https://github.com/pengutronix/genimage/releases/download/v14/genimage-14.tar.xz | tar -C /tmp -xJ && \
225 cd /tmp/genimage-14 && \
226 ./configure && \
227 make -j$(nproc) && \
228 make install && \
229 rm -rf /tmp/genimage-14
230
Heinrich Schuchardt4e202672021-11-09 19:51:20 +0100231# Build libtpms
232RUN git clone https://github.com/stefanberger/libtpms /tmp/libtpms && \
233 cd /tmp/libtpms && \
234 ./autogen.sh && \
235 ./configure && \
236 make -j$(nproc) && \
237 make install && \
238 ldconfig && \
239 rm -rf /tmp/libtpms
240
241# Build swtpm
242RUN git clone https://github.com/stefanberger/swtpm /tmp/swtpm && \
243 cd /tmp/swtpm && \
244 ./autogen.sh && \
245 ./configure && \
246 make -j$(nproc) && \
247 make install && \
248 rm -rf /tmp/swtpm
249
Simon Glass523cb6d2023-01-15 14:15:59 -0700250# Build trace-cmd
251RUN mkdir /tmp/trace && \
252 git clone https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git /tmp/trace/libtraceevent && \
253 cd /tmp/trace/libtraceevent && \
254 make -j$(nproc) && \
255 sudo make install && \
256 git clone https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git /tmp/trace/libtracefs && \
257 cd /tmp/trace/libtracefs && \
258 make -j$(nproc) && \
259 sudo make install && \
260 git clone https://github.com/rostedt/trace-cmd.git /tmp/trace/trace-cmd && \
261 cd /tmp/trace/trace-cmd && \
262 make -j$(nproc) && \
263 sudo make install && \
264 rm -rf /tmp/trace
265
Tom Rini9e2b09e2024-02-13 09:39:26 -0500266# Build coreboot
Simon Glass78b9c8a2024-10-14 16:32:05 -0600267RUN wget -O - https://coreboot.org/releases/coreboot-24.08.tar.xz | tar -C /tmp -xJ && \
268 cd /tmp/coreboot-24.08 && \
Tom Rini9e2b09e2024-02-13 09:39:26 -0500269 make crossgcc-i386 CPUS=$(nproc) && \
270 make -C payloads/coreinfo olddefconfig && \
271 make -C payloads/coreinfo && \
272 make olddefconfig && \
Simon Glass78b9c8a2024-10-14 16:32:05 -0600273 echo CONFIG_GENERIC_LINEAR_FRAMEBUFFER=y | tee -a .config && \
274 echo CONFIG_USE_OPTION_TABLE=y | tee -a .config && \
275 make olddefconfig && \
Tom Rini9e2b09e2024-02-13 09:39:26 -0500276 make -j $(nproc) && \
277 sudo mkdir /opt/coreboot && \
278 sudo cp build/coreboot.rom build/cbfstool /opt/coreboot/
279
Tom Rini04549e92021-03-15 13:19:01 -0400280# Create our user/group
281RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot
282RUN useradd -m -U uboot
283USER uboot:uboot
284
Tom Rini54573e02023-03-23 14:57:58 -0400285# Populate the cache for pip to use. Get these via wget as the
286# COPY / ADD directives don't work as we need them to.
287RUN wget -O /tmp/pytest-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/test/py/requirements.txt
288RUN 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 -0500289RUN 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 -0400290RUN virtualenv -p /usr/bin/python3 /tmp/venv && \
291 . /tmp/venv/bin/activate && \
292 pip install -r /tmp/pytest-requirements.txt \
Tom Rini763160f2024-01-18 12:10:07 -0500293 -r /tmp/sphinx-requirements.txt \
294 -r /tmp/buildman-requirements.txt && \
Tom Rini54573e02023-03-23 14:57:58 -0400295 deactivate && \
Tom Rini763160f2024-01-18 12:10:07 -0500296 rm -rf /tmp/venv /tmp/*-requirements.txt
Tom Rini54573e02023-03-23 14:57:58 -0400297
Tom Rini04549e92021-03-15 13:19:01 -0400298# Create the buildman config file
299RUN /bin/echo -e "[toolchain]\nroot = /usr" > ~/.buildman
Tom Rini3bd5ed72023-08-25 13:21:26 -0400300RUN /bin/echo -e "kernelorg = /opt/gcc-13.2.0-nolibc/*" >> ~/.buildman
Tom Rini0a78bc32021-07-02 10:41:58 -0400301RUN /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 -0400302RUN /bin/echo -e "\n[toolchain-alias]\nsh = sh2" >> ~/.buildman
Tom Rini04549e92021-03-15 13:19:01 -0400303RUN /bin/echo -e "\nx86 = i386" >> ~/.buildman;
Safae Ouajihaaa366f2023-02-06 00:50:21 +0100304
305# Add mkbootimg tool
306RUN git clone https://android.googlesource.com/platform/system/tools/mkbootimg /home/uboot/mkbootimg
307ENV PYTHONPATH "${PYTHONPATH}:/home/uboot/mkbootimg"