From nobody Sat May 18 04:13:35 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1632323810268722.4338937102582; Wed, 22 Sep 2021 08:16:50 -0700 (PDT) Received: from localhost ([::1]:56296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mT3zN-0000Kb-5o for importer@patchew.org; Wed, 22 Sep 2021 11:16:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mT3yO-0007to-NN for qemu-devel@nongnu.org; Wed, 22 Sep 2021 11:15:49 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:34369) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mT3yH-0005aW-A9 for qemu-devel@nongnu.org; Wed, 22 Sep 2021 11:15:47 -0400 Received: by mail-wr1-x430.google.com with SMTP id t8so8015808wri.1 for ; Wed, 22 Sep 2021 08:15:38 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id z5sm6857058wmp.26.2021.09.22.08.15.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Sep 2021 08:15:35 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 611461FF96; Wed, 22 Sep 2021 16:15:34 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LWlwonPv52RW4xdQ6KuhV9HP9phCb3hl23YysT8XHdM=; b=Ei5VbExmn+6wJN8QI51tHYFMgtZ6AWnWg35xt3BFvg9ZlyyjKeRpaC7h/UwihurP9V McAzilIo0/2j2Zpm0FjI7oLyKYSjWWvK608v8nQJtlwkI6cxm/EHEIgXKvguKIPfEIf3 5/M9FEjZssLFsVYkeNKo2SuIHgRwMFK0TX8wAnJauIYLDrsoheveRwHPxlGvpYblSgHy 3v1matpzQyrwH3fCnWREONtGZkx/yaXAHxleb15lpIcMLvVBq3SluBMnSoK5RYupg5yi obos2ny4gVUiyTx5BczWRGW7P+guLcjTmNUa6jpMhNkmMp4LBzexmTfI4/zXl+a9SQXM t9VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LWlwonPv52RW4xdQ6KuhV9HP9phCb3hl23YysT8XHdM=; b=KJW50lp6sRfZOc7BUKlsnh4DHahGi80VgSvtttuBbOhubYaN8Z4U2UDMxf3OQeNsyY 5hxHjOFgcWO8/NNYn9Fzw3YsvoDHWBc7ug4MyeZQ306DKmNrDgXh7AIwgF4tlqhgWfR6 E08WAbqxUh5zrsDs5Sv6C6eQHexetCzflC/P0WwFa6BudZbE2G6HTroz0+ShlNjWBl4m I0uOiAjNkPKbB6H3tMCNKGnmGtciNWbUyvWTCRr1yx6EfcnFtpeb+ggaLCcm0/NEIyY4 pnn02OBVCV1W/CS8P/enVHCoW/p14Q7NCCacp5/+Ftd5/KqY+Tm7Ag8nI6UYpFdgSa7Q bvGQ== X-Gm-Message-State: AOAM531OeRFLQ4Zg22vyWraqhqLZfcRAp6JfjBmibhNqAhgpD+z5lQLi waqHWFwAhRKbqE8JkGrMZId4yw== X-Google-Smtp-Source: ABdhPJyRcbUDWLaWw61+wQEJmd2as/K23O6c2+4JiiVmOIMKv4f1UE+g+INPOcQ7+igvE5uV81pw5A== X-Received: by 2002:a1c:4e11:: with SMTP id g17mr10768727wmh.130.1632323737003; Wed, 22 Sep 2021 08:15:37 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [RFC PATCH] tests/docker: add a debian-native image and make available Date: Wed, 22 Sep 2021 16:15:27 +0100 Message-Id: <20210922151528.2192966-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x430.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , Anders Roxell , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Willian Rampazzo , =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1632323812933100001 This image is intended for building whatever the native versions of QEMU are for the host architecture. This will hopefully be an aid for 3rd parties who want to be able to build QEMU themselves without redoing all the dependencies themselves. We disable the registry because we currently don't have multi-arch support there. Signed-off-by: Alex Benn=C3=A9e Cc: Anders Roxell Acked-by: Willian Rampazzo Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Anders Roxell Tested-by: Philippe Mathieu-Daud=C3=A9 --- tests/docker/Makefile.include | 4 ++ tests/docker/common.rc | 10 +++- tests/docker/dockerfiles/debian-native.docker | 49 +++++++++++++++++++ 3 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 tests/docker/dockerfiles/debian-native.docker diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 3b03763186..2f276cc4b2 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -145,6 +145,10 @@ docker-image-debian-s390x-cross: docker-image-debian10 docker-image-debian-sh4-cross: docker-image-debian10 docker-image-debian-sparc64-cross: docker-image-debian10 =20 +# The native build should never use the registry +docker-image-debian-native: DOCKER_REGISTRY=3D + + # # The build rule for hexagon-cross is special in so far for most of # the time we don't want to build it. While dockers caching does avoid diff --git a/tests/docker/common.rc b/tests/docker/common.rc index c5cc33d366..e6f8cee0d6 100755 --- a/tests/docker/common.rc +++ b/tests/docker/common.rc @@ -12,8 +12,14 @@ # the top-level directory. =20 # This might be set by ENV of a docker container... it is always -# overriden by TARGET_LIST if the user sets it. -DEF_TARGET_LIST=3D${DEF_TARGET_LIST:-"x86_64-softmmu,aarch64-softmmu"} +# overriden by TARGET_LIST if the user sets it. We special case +# "none" to allow for other options like --disable-tcg to restrict the +# builds we eventually do. +if test "$DEF_TARGET_LIST" =3D "none"; then + DEF_TARGET_LIST=3D"" +else + DEF_TARGET_LIST=3D${DEF_TARGET_LIST:-"x86_64-softmmu,aarch64-softmmu"} +fi =20 requires_binary() { diff --git a/tests/docker/dockerfiles/debian-native.docker b/tests/docker/d= ockerfiles/debian-native.docker new file mode 100644 index 0000000000..efd55cb6e0 --- /dev/null +++ b/tests/docker/dockerfiles/debian-native.docker @@ -0,0 +1,49 @@ +# +# Docker Debian Native +# +# This this intended to build QEMU on native host systems. Debian is +# chosen due to the broadest range on supported host systems for QEMU. +# +# This docker target is based on the docker.io Debian Bullseye base +# image rather than QEMU's base because we would otherwise confuse the +# build grabbing stuff from the registry built for other +# architectures. +# +FROM docker.io/library/debian:bullseye-slim +MAINTAINER Alex Benn=C3=A9e + +# Duplicate deb line as deb-src +RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sourc= es.list + +# Install common build utilities +RUN apt update && \ + DEBIAN_FRONTEND=3Dnoninteractive apt install -yy eatmydata + +RUN apt update && \ + DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ + apt build-dep -yy --arch-only qemu + +RUN apt update && \ + DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ + apt install -y --no-install-recommends \ + cscope \ + genisoimage \ + exuberant-ctags \ + global \ + libbz2-dev \ + liblzo2-dev \ + libgcrypt20-dev \ + libfdt-dev \ + librdmacm-dev \ + libsasl2-dev \ + libsnappy-dev \ + libvte-dev \ + netcat-openbsd \ + ninja-build \ + openssh-client \ + python3-numpy \ + python3-opencv \ + python3-venv + +ENV QEMU_CONFIGURE_OPTS $QEMU_CONFIGURE_OPTS +ENV DEF_TARGET_LIST "none" --=20 2.30.2