blob: 9d10de5b8926cc54765808272afc9b697a4ee09f [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
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 Glass7aafac02024-11-27 11:17:26 -060019RUN echo "Building on $BUILDPLATFORM, for target $TARGETPLATFORM"
20
Tom Rini04549e92021-03-15 13:19:01 -040021# Add LLVM repository
Tom Rini3f88c792024-11-27 11:17:25 -060022RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
23 --mount=type=cache,target=/var/lib/apt,sharing=locked \
24 apt-get update && apt-get install -y gnupg2 wget xz-utils
Tom Rini04549e92021-03-15 13:19:01 -040025RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
Tom Rinie752a3a2024-03-10 15:59:28 -040026RUN 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 -040027
Tom Rini3bd5ed72023-08-25 13:21:26 -040028# Manually install the kernel.org "Crosstool" based toolchains for gcc-13.2.0
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-aarch64-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-arc-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-arm-linux-gnueabi.tar.xz | tar -C /opt -xJ
32RUN 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
33RUN 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
34RUN 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
35RUN 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
36RUN 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
37RUN 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
38RUN 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
39RUN 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
40RUN 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 -060041RUN 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 -040042
43# Manually install other toolchains
Tom Rini0a78bc32021-07-02 10:41:58 -040044RUN 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 -040045
46# Update and install things from apt now
Tom Rini3f88c792024-11-27 11:17:25 -060047RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
48 --mount=type=cache,target=/var/lib/apt,sharing=locked \
49 apt-get update && apt-get install -y \
Tom Rini04549e92021-03-15 13:19:01 -040050 automake \
51 autopoint \
52 bc \
53 binutils-dev \
54 bison \
55 build-essential \
Simon Glassbe17cb32023-08-24 13:55:46 -060056 cgpt \
Tom Rinie752a3a2024-03-10 15:59:28 -040057 clang-17 \
Tom Rini04549e92021-03-15 13:19:01 -040058 coreutils \
59 cpio \
Tom Rini04549e92021-03-15 13:19:01 -040060 curl \
61 device-tree-compiler \
62 dosfstools \
63 e2fsprogs \
64 efitools \
Huang Jianan11e04432022-02-26 15:05:51 +080065 erofs-utils \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010066 expect \
Tom Rini04549e92021-03-15 13:19:01 -040067 fakeroot \
68 flex \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010069 gawk \
Tom Rini04549e92021-03-15 13:19:01 -040070 gdisk \
Tom Rini12248ed2024-11-27 11:17:23 -060071 gettext \
Tom Rini04549e92021-03-15 13:19:01 -040072 git \
73 gnu-efi \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010074 gnutls-dev \
Tom Rini04549e92021-03-15 13:19:01 -040075 graphviz \
Tom Rini04549e92021-03-15 13:19:01 -040076 help2man \
77 iasl \
78 imagemagick \
79 iputils-ping \
Bin Mengf551a532021-08-26 23:33:33 +080080 libconfuse-dev \
Tom Rinic8982d22021-06-10 10:57:36 -040081 libgit2-dev \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010082 libjson-glib-dev \
Tom Rini04549e92021-03-15 13:19:01 -040083 libguestfs-tools \
AKASHI Takahiro3edc3472022-02-01 10:32:36 +090084 libgnutls28-dev \
85 libgnutls30 \
Tom Rini04549e92021-03-15 13:19:01 -040086 liblz4-tool \
87 libpixman-1-dev \
Tom Rinic8982d22021-06-10 10:57:36 -040088 libpython3-dev \
Tom Rini04549e92021-03-15 13:19:01 -040089 libsdl1.2-dev \
90 libsdl2-dev \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010091 libseccomp-dev \
Tom Rini83da2322023-07-13 10:16:28 -040092 libslirp-dev \
Tom Rini04549e92021-03-15 13:19:01 -040093 libssl-dev \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +010094 libtool \
Tom Rini04549e92021-03-15 13:19:01 -040095 libudev-dev \
96 libusb-1.0-0-dev \
Simon Glass86baff12024-11-27 11:17:27 -060097 linux-image-generic \
Tom Rini04549e92021-03-15 13:19:01 -040098 lzma-alone \
99 lzop \
100 mount \
101 mtd-utils \
102 mtools \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +0100103 net-tools \
Bin Meng00afccd2021-08-26 23:33:32 +0800104 ninja-build \
Tom Rini04549e92021-03-15 13:19:01 -0400105 openssl \
106 picocom \
107 parted \
108 pkg-config \
Tom Rinic8982d22021-06-10 10:57:36 -0400109 python-is-python3 \
110 python2.7 \
111 python3 \
112 python3-dev \
Tom Rini04549e92021-03-15 13:19:01 -0400113 python3-pip \
Simon Glassb955cd22022-10-13 06:25:57 -0600114 python3-pyelftools \
Tom Rini04549e92021-03-15 13:19:01 -0400115 python3-sphinx \
Tom Rinic8982d22021-06-10 10:57:36 -0400116 python3-virtualenv \
Tom Rini04549e92021-03-15 13:19:01 -0400117 rpm2cpio \
118 sbsigntool \
Heinrich Schuchardt4e202672021-11-09 19:51:20 +0100119 socat \
120 softhsm2 \
Tom Rini04549e92021-03-15 13:19:01 -0400121 sparse \
122 srecord \
123 sudo \
124 swig \
Heinrich Schuchardtc2c98ea2022-12-30 05:41:01 +0100125 texinfo \
Tom Rini04549e92021-03-15 13:19:01 -0400126 util-linux \
127 uuid-dev \
128 virtualenv \
Simon Glassbe17cb32023-08-24 13:55:46 -0600129 vboot-kernel-utils \
130 vboot-utils \
Heinrich Schuchardt905d0752024-02-28 08:23:09 +0100131 xilinx-bootgen \
Tom Rini0a78bc32021-07-02 10:41:58 -0400132 xxd \
Tom Rini3f88c792024-11-27 11:17:25 -0600133 zip
Tom Rini04549e92021-03-15 13:19:01 -0400134
Alper Nebi Yasak5d249e92021-06-21 21:51:54 +0300135# Make kernels readable for libguestfs tools to work correctly
136RUN chmod +r /boot/vmlinu*
137
Tom Rini04549e92021-03-15 13:19:01 -0400138# Build GRUB UEFI targets for ARM & RISC-V, 32-bit and 64-bit
139RUN git clone git://git.savannah.gnu.org/grub.git /tmp/grub && \
140 cd /tmp/grub && \
Tom Rini12248ed2024-11-27 11:17:23 -0600141 git checkout grub-2.12 && \
Tom Rini77d48f12022-11-22 12:31:58 -0500142 git config --global user.name "GitLab CI Runner" && \
143 git config --global user.email trini@konsulko.com && \
Tom Rini04549e92021-03-15 13:19:01 -0400144 ./bootstrap && \
145 mkdir -p /opt/grub && \
146 ./configure --target=aarch64 --with-platform=efi \
147 CC=gcc \
Tom Rini3bd5ed72023-08-25 13:21:26 -0400148 TARGET_CC=/opt/gcc-13.2.0-nolibc/aarch64-linux/bin/aarch64-linux-gcc \
149 TARGET_OBJCOPY=/opt/gcc-13.2.0-nolibc/aarch64-linux/bin/aarch64-linux-objcopy \
150 TARGET_STRIP=/opt/gcc-13.2.0-nolibc/aarch64-linux/bin/aarch64-linux-strip \
151 TARGET_NM=/opt/gcc-13.2.0-nolibc/aarch64-linux/bin/aarch64-linux-nm \
152 TARGET_RANLIB=/opt/gcc-13.2.0-nolibc/aarch64-linux/bin/aarch64-linux-ranlib && \
Tom Rini4bac0392024-11-27 11:17:22 -0600153 make -j$(nproc) && \
Tom Rini04549e92021-03-15 13:19:01 -0400154 ./grub-mkimage -O arm64-efi -o /opt/grub/grubaa64.efi --prefix= -d \
155 grub-core cat chain configfile echo efinet ext2 fat halt help linux \
156 lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot \
157 search search_fs_file search_fs_uuid search_label serial sleep test \
158 true && \
159 make clean && \
160 ./configure --target=arm --with-platform=efi \
161 CC=gcc \
Tom Rini3bd5ed72023-08-25 13:21:26 -0400162 TARGET_CC=/opt/gcc-13.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc \
163 TARGET_OBJCOPY=/opt/gcc-13.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-objcopy \
164 TARGET_STRIP=/opt/gcc-13.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-strip \
165 TARGET_NM=/opt/gcc-13.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-nm \
166 TARGET_RANLIB=/opt/gcc-13.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-ranlib && \
Tom Rini4bac0392024-11-27 11:17:22 -0600167 make -j$(nproc) && \
Tom Rini04549e92021-03-15 13:19:01 -0400168 ./grub-mkimage -O arm-efi -o /opt/grub/grubarm.efi --prefix= -d \
169 grub-core cat chain configfile echo efinet ext2 fat halt help linux \
170 lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot \
171 search search_fs_file search_fs_uuid search_label serial sleep test \
172 true && \
173 make clean && \
174 ./configure --target=riscv64 --with-platform=efi \
175 CC=gcc \
Tom Rini3bd5ed72023-08-25 13:21:26 -0400176 TARGET_CC=/opt/gcc-13.2.0-nolibc/riscv64-linux/bin/riscv64-linux-gcc \
177 TARGET_OBJCOPY=/opt/gcc-13.2.0-nolibc/riscv64-linux/bin/riscv64-linux-objcopy \
178 TARGET_STRIP=/opt/gcc-13.2.0-nolibc/riscv64-linux/bin/riscv64-linux-strip \
179 TARGET_NM=/opt/gcc-13.2.0-nolibc/riscv64-linux/bin/riscv64-linux-nm \
180 TARGET_RANLIB=/opt/gcc-13.2.0-nolibc/riscv64-linux/bin/riscv64-linux-ranlib && \
Tom Rini4bac0392024-11-27 11:17:22 -0600181 make -j$(nproc) && \
Tom Rini04549e92021-03-15 13:19:01 -0400182 ./grub-mkimage -O riscv64-efi -o /opt/grub/grubriscv64.efi --prefix= -d \
183 grub-core cat chain configfile echo efinet ext2 fat halt help linux \
184 lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot \
185 search search_fs_file search_fs_uuid search_label serial sleep test \
186 true && \
Tom Rinie8403a92024-11-27 11:17:24 -0600187 make clean && \
188 ./configure --target=i386 --with-platform=efi \
189 CC=gcc \
190 TARGET_CC=/opt/gcc-13.2.0-nolibc/i386-linux/bin/i386-linux-gcc \
191 TARGET_OBJCOPY=/opt/gcc-13.2.0-nolibc/i386-linux/bin/i386-linux-objcopy \
192 TARGET_STRIP=/opt/gcc-13.2.0-nolibc/i386-linux/bin/i386-linux-strip \
193 TARGET_NM=/opt/gcc-13.2.0-nolibc/i386-linux/bin/i386-linux-nm \
194 TARGET_RANLIB=/opt/gcc-13.2.0-nolibc/i386-linux/bin/i386-linux-ranlib && \
195 make -j$(nproc) && \
196 ./grub-mkimage -O i386-efi -o /opt/grub/grub_x86.efi --prefix= -d \
197 grub-core normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd && \
198 make clean && \
199 ./configure --target=x86_64 --with-platform=efi \
200 CC=gcc \
201 TARGET_CC=/opt/gcc-13.2.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc \
202 TARGET_OBJCOPY=/opt/gcc-13.2.0-nolibc/x86_64-linux/bin/x86_64-linux-objcopy \
203 TARGET_STRIP=/opt/gcc-13.2.0-nolibc/x86_64-linux/bin/x86_64-linux-strip \
204 TARGET_NM=/opt/gcc-13.2.0-nolibc/x86_64-linux/bin/x86_64-linux-nm \
205 TARGET_RANLIB=/opt/gcc-13.2.0-nolibc/x86_64-linux/bin/x86_64-linux-ranlib && \
206 make -j$(nproc) && \
207 ./grub-mkimage -O x86_64-efi -o /opt/grub/grub_x64.efi --prefix= -d \
208 grub-core normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd && \
Tom Rini04549e92021-03-15 13:19:01 -0400209 rm -rf /tmp/grub
210
Tom Rinib60c1d72023-02-07 12:50:13 -0500211RUN git clone https://gitlab.com/qemu-project/qemu.git /tmp/qemu && \
Tom Rini04549e92021-03-15 13:19:01 -0400212 cd /tmp/qemu && \
Heinrich Schuchardt24069c22024-01-12 03:17:57 +0100213 git checkout v8.2.0 && \
Bin Meng00afccd2021-08-26 23:33:32 +0800214 # config user.name and user.email to make 'git am' happy
215 git config user.name u-boot && \
216 git config user.email u-boot@denx.de && \
Heinrich Schuchardt24069c22024-01-12 03:17:57 +0100217 git format-patch 0c7ffc977195~..0c7ffc977195 && \
218 git am 0001-hw-net-cadence_gem-Fix-MDIO_OP_xxx-values.patch && \
Tom Rini139e9952024-03-11 10:02:43 -0400219 git cherry-pick d3c79c3974 && \
Tom Rini26a41832023-03-21 15:28:00 -0400220 ./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 -0400221 make -j$(nproc) all install && \
222 rm -rf /tmp/qemu
223
Heinrich Schuchardt2b4a6562024-02-28 08:43:11 +0100224# Build fiptool
225RUN git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git /tmp/tf-a && \
226 cd /tmp/tf-a/ && \
227 git checkout v2.10.0 && \
228 cd tools/fiptool && \
Tom Rini4bac0392024-11-27 11:17:22 -0600229 make -j$(nproc) && \
Heinrich Schuchardt2b4a6562024-02-28 08:43:11 +0100230 mkdir -p /usr/local/bin && \
231 cp fiptool /usr/local/bin && \
232 rm -rf /tmp/tf-a
233
Bin Mengf551a532021-08-26 23:33:33 +0800234# Build genimage (required by some targets to generate disk images)
235RUN wget -O - https://github.com/pengutronix/genimage/releases/download/v14/genimage-14.tar.xz | tar -C /tmp -xJ && \
236 cd /tmp/genimage-14 && \
237 ./configure && \
238 make -j$(nproc) && \
239 make install && \
240 rm -rf /tmp/genimage-14
241
Heinrich Schuchardt4e202672021-11-09 19:51:20 +0100242# Build libtpms
243RUN git clone https://github.com/stefanberger/libtpms /tmp/libtpms && \
244 cd /tmp/libtpms && \
245 ./autogen.sh && \
246 ./configure && \
247 make -j$(nproc) && \
248 make install && \
249 ldconfig && \
250 rm -rf /tmp/libtpms
251
252# Build swtpm
253RUN git clone https://github.com/stefanberger/swtpm /tmp/swtpm && \
254 cd /tmp/swtpm && \
255 ./autogen.sh && \
256 ./configure && \
257 make -j$(nproc) && \
258 make install && \
259 rm -rf /tmp/swtpm
260
Simon Glass523cb6d2023-01-15 14:15:59 -0700261# Build trace-cmd
262RUN mkdir /tmp/trace && \
263 git clone https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git /tmp/trace/libtraceevent && \
264 cd /tmp/trace/libtraceevent && \
265 make -j$(nproc) && \
266 sudo make install && \
267 git clone https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git /tmp/trace/libtracefs && \
268 cd /tmp/trace/libtracefs && \
269 make -j$(nproc) && \
270 sudo make install && \
271 git clone https://github.com/rostedt/trace-cmd.git /tmp/trace/trace-cmd && \
272 cd /tmp/trace/trace-cmd && \
273 make -j$(nproc) && \
274 sudo make install && \
275 rm -rf /tmp/trace
276
Tom Rini9e2b09e2024-02-13 09:39:26 -0500277# Build coreboot
Simon Glass78b9c8a2024-10-14 16:32:05 -0600278RUN wget -O - https://coreboot.org/releases/coreboot-24.08.tar.xz | tar -C /tmp -xJ && \
279 cd /tmp/coreboot-24.08 && \
Tom Rini9e2b09e2024-02-13 09:39:26 -0500280 make crossgcc-i386 CPUS=$(nproc) && \
281 make -C payloads/coreinfo olddefconfig && \
282 make -C payloads/coreinfo && \
283 make olddefconfig && \
Simon Glass78b9c8a2024-10-14 16:32:05 -0600284 echo CONFIG_GENERIC_LINEAR_FRAMEBUFFER=y | tee -a .config && \
285 echo CONFIG_USE_OPTION_TABLE=y | tee -a .config && \
286 make olddefconfig && \
Tom Rini9e2b09e2024-02-13 09:39:26 -0500287 make -j $(nproc) && \
288 sudo mkdir /opt/coreboot && \
289 sudo cp build/coreboot.rom build/cbfstool /opt/coreboot/
290
Tom Rini04549e92021-03-15 13:19:01 -0400291# Create our user/group
292RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot
293RUN useradd -m -U uboot
294USER uboot:uboot
295
Tom Rini54573e02023-03-23 14:57:58 -0400296# Populate the cache for pip to use. Get these via wget as the
297# COPY / ADD directives don't work as we need them to.
298RUN wget -O /tmp/pytest-requirements.txt https://source.denx.de/u-boot/u-boot/-/raw/master/test/py/requirements.txt
299RUN 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 -0500300RUN 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 -0400301RUN virtualenv -p /usr/bin/python3 /tmp/venv && \
302 . /tmp/venv/bin/activate && \
303 pip install -r /tmp/pytest-requirements.txt \
Tom Rini763160f2024-01-18 12:10:07 -0500304 -r /tmp/sphinx-requirements.txt \
305 -r /tmp/buildman-requirements.txt && \
Tom Rini54573e02023-03-23 14:57:58 -0400306 deactivate && \
Tom Rini763160f2024-01-18 12:10:07 -0500307 rm -rf /tmp/venv /tmp/*-requirements.txt
Tom Rini54573e02023-03-23 14:57:58 -0400308
Tom Rini04549e92021-03-15 13:19:01 -0400309# Create the buildman config file
310RUN /bin/echo -e "[toolchain]\nroot = /usr" > ~/.buildman
Tom Rini3bd5ed72023-08-25 13:21:26 -0400311RUN /bin/echo -e "kernelorg = /opt/gcc-13.2.0-nolibc/*" >> ~/.buildman
Tom Rini0a78bc32021-07-02 10:41:58 -0400312RUN /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 -0400313RUN /bin/echo -e "\n[toolchain-alias]\nsh = sh2" >> ~/.buildman
Tom Rini04549e92021-03-15 13:19:01 -0400314RUN /bin/echo -e "\nx86 = i386" >> ~/.buildman;
Safae Ouajihaaa366f2023-02-06 00:50:21 +0100315
316# Add mkbootimg tool
317RUN git clone https://android.googlesource.com/platform/system/tools/mkbootimg /home/uboot/mkbootimg
Simon Glassf8e20122024-11-27 11:17:28 -0600318ENV PYTHONPATH="${PYTHONPATH}:/home/uboot/mkbootimg"