mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
tests/lcitool: append user setting stanza to dockerfiles
For the cross-compilation use-case it is important to add the host user to the dockerfile so we can map them to the docker environment when cross-building files. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20230228190653.1602033-19-alex.bennee@linaro.org>
This commit is contained in:
parent
60f999b7f2
commit
5b8bcf6b6c
18 changed files with 100 additions and 0 deletions
|
@ -168,3 +168,8 @@ ENV ABI "aarch64-linux-gnu"
|
|||
ENV MESON_OPTS "--cross-file=aarch64-linux-gnu"
|
||||
ENV QEMU_CONFIGURE_OPTS --cross-prefix=aarch64-linux-gnu-
|
||||
ENV DEF_TARGET_LIST aarch64-softmmu,aarch64-linux-user
|
||||
# As a final step configure the user (if env is defined)
|
||||
ARG USER
|
||||
ARG UID
|
||||
RUN if [ "${USER}" ]; then \
|
||||
id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue