From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC8D1C433F5 for ; Wed, 22 Sep 2021 15:16:46 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8FCD4610A0 for ; Wed, 22 Sep 2021 15:16:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8FCD4610A0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:56296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mT3zJ-0000Kb-L6 for qemu-devel@archiver.kernel.org; Wed, 22 Sep 2021 11:16:45 -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) 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) 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) 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: 8bit 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" 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ée Cc: Anders Roxell --- 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 +# The native build should never use the registry +docker-image-debian-native: DOCKER_REGISTRY= + + # # 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. # 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=${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" = "none"; then + DEF_TARGET_LIST="" +else + DEF_TARGET_LIST=${DEF_TARGET_LIST:-"x86_64-softmmu,aarch64-softmmu"} +fi requires_binary() { diff --git a/tests/docker/dockerfiles/debian-native.docker b/tests/docker/dockerfiles/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ée + +# Duplicate deb line as deb-src +RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list + +# Install common build utilities +RUN apt update && \ + DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata + +RUN apt update && \ + DEBIAN_FRONTEND=noninteractive eatmydata \ + apt build-dep -yy --arch-only qemu + +RUN apt update && \ + DEBIAN_FRONTEND=noninteractive 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" -- 2.30.2