mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
tools: docker: Build and install genimage
genimage [1] is a tool to create flash/disk images. This is required by some targets, e.g.: sifive_unleashed, to generate sdcard or spi-nor images for real hardware, as well as U-Boot CI testing. [1] https://github.com/pengutronix/genimage Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
a30e53cc37
commit
3283a05275
@ -60,6 +60,7 @@ RUN apt-get update && apt-get install -y \
|
|||||||
iasl \
|
iasl \
|
||||||
imagemagick \
|
imagemagick \
|
||||||
iputils-ping \
|
iputils-ping \
|
||||||
|
libconfuse-dev \
|
||||||
libgit2-dev \
|
libgit2-dev \
|
||||||
libguestfs-tools \
|
libguestfs-tools \
|
||||||
liblz4-tool \
|
liblz4-tool \
|
||||||
@ -177,6 +178,14 @@ RUN git clone git://git.qemu.org/qemu.git /tmp/qemu && \
|
|||||||
make -j$(nproc) all install && \
|
make -j$(nproc) all install && \
|
||||||
rm -rf /tmp/qemu
|
rm -rf /tmp/qemu
|
||||||
|
|
||||||
|
# Build genimage (required by some targets to generate disk images)
|
||||||
|
RUN wget -O - https://github.com/pengutronix/genimage/releases/download/v14/genimage-14.tar.xz | tar -C /tmp -xJ && \
|
||||||
|
cd /tmp/genimage-14 && \
|
||||||
|
./configure && \
|
||||||
|
make -j$(nproc) && \
|
||||||
|
make install && \
|
||||||
|
rm -rf /tmp/genimage-14
|
||||||
|
|
||||||
# Create our user/group
|
# Create our user/group
|
||||||
RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot
|
RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot
|
||||||
RUN useradd -m -U uboot
|
RUN useradd -m -U uboot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user