From patchwork Fri Jul 23 17:03:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 484646 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1522566jao; Fri, 23 Jul 2021 10:12:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwp94TCVFxkE2DzvsIMmF7Ow2K0hIgE19bA+KaA9RVj1ZnxHfqQ5CeWIN4i3YLqeehx5Wrf X-Received: by 2002:a5d:65cb:: with SMTP id e11mr6642054wrw.105.1627060355060; Fri, 23 Jul 2021 10:12:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627060355; cv=none; d=google.com; s=arc-20160816; b=xPumifoRpAQNGgAo12eFxDvx26sMrdRCeNuWtQJ9SfVUy8lKZY0kEuf7eDFqmTvJ6H w0N+n3nHrogknBnyh+tJfiIay1EjY4Zllsvj+F5+BwNVLgF9RwFYHg6nIJHXOsEOVLCm /dd80+fmCbKBp7+v0UKy5axJ8BJd/zN7auX+ldyTYWGHorkfN2dWmhuCEvU1gPB8jWQL I1LibXu4oX4wNM6w5SDV/WwRxCfvF2GzGRFD/kBLCDeXQ9+7z+aSu3dVI0ulZINy6uRl aRw26g4iG1/OR/9ePaVeIIpkOYluTkh/weVt4h2M8jra1/ZdxinYrBE3CWFLQfwLhFe2 164A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Jx7A6ir3Pd5IqO8pTL8XUcRpiT40w3NiQ1bVTzzR3Gg=; b=L32pK5Jkkm1rC4pKXF86esAI4XFR/QJOcMWgY41a9/sTU0+xNPgc/gYSQJDl3oQ0j9 dWmHHgDxeRSIacB8cNnnFwsG+DFTb99yRdUQhM5MuCwiYXqQzPORiLAinwo8kLbUV0pv 2ayHoh0o40UKnhmJ9b5adGwprECMrJV8/0DldPQQ6O/iPBBvGm8xikIERQDni4mzEZvQ yxfhACxLeb/alHLF2htWSbWyJGSRv9ThdODBvCdf4u9+CppSoWcEnzenF+7EGuNZ9+Y3 wl+OZX4P9GzOQaJbGHxF7Wta7U9p3gHufrY6XEyfPsm0aqWoy4RfvoXhnayHxGzCk7jk nlqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QKEd5Jnk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f3si10614548wri.100.2021.07.23.10.12.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Jul 2021 10:12:35 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QKEd5Jnk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:33520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6yiw-0001UN-2R for patch@linaro.org; Fri, 23 Jul 2021 13:12:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6ybu-0002dv-Ek for qemu-devel@nongnu.org; Fri, 23 Jul 2021 13:05:18 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:43688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6ybq-0005vy-QB for qemu-devel@nongnu.org; Fri, 23 Jul 2021 13:05:18 -0400 Received: by mail-wm1-x32d.google.com with SMTP id m20-20020a05600c4f54b029024e75a15716so1075031wmq.2 for ; Fri, 23 Jul 2021 10:05:14 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=Jx7A6ir3Pd5IqO8pTL8XUcRpiT40w3NiQ1bVTzzR3Gg=; b=QKEd5JnkXSPJwPZaYxrkks7zWinNS3eEDFFZMl+LHQ/ioj0DIZrqPz5RoFiGS8gDgQ sNKNSe/795oUcGT6iVzaiPg0tV1r2ZMx9lPh0PtXWCyjRamMQz1KFGN0sBxwPvbwytla n6Mjrz7xilYnJs7vg0TDbrgdZ7UnSb3cCF64CPkEK1F1VfYsdXuSsD/pW8wcTwJmSohK oZOkq1kUYg8bnDKAxVCBAYZt4A7AcKEFaVkR2cNe/IJ8cHeNz+0RpQ47fqkcm8tOCSk9 jahuabok4f2Vp6qrFEyEJT1B6iYpiAJLU0/JX9NNcFFDeDGWM5wIjX+1kTpOZcqT6JwL gRpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Jx7A6ir3Pd5IqO8pTL8XUcRpiT40w3NiQ1bVTzzR3Gg=; b=DWc1UrUwDr1bRe21r62Ijku3/jBzMLK4N5gFyl1xkEOBZk+zlpDNaxKS9vu2W3rBo7 PSvKFIpFEgIJ2w8wsjicmKDm7hNrlDyMeNUCcOckdaisRj5Wy4W6w0wEX61pyOd5RQO5 DWKZPaqVJUPW2Br4vYGKOcL7Gw3w8bUKMUjRyEDBdTqWJ24B5nedlD1+m9/68kbEUc0k 1v6PQh+HVHi3nxXclsKp6b8xW+vwdGJxFshxAPU5fr5evHATw3qG8G5VHOJewUSPC4LX A3y4z+H+Iti3udHe/+StzW4nmFmCB6OroRJZwcfOU66kh2L8Zy/Pp4nWjrLkejey0N9T sN7w== X-Gm-Message-State: AOAM532eVDCqbVwKHKJTN+y4yd93IrLf+1KUXFJOel5AHXV1iRYzq1u0 5D1jajeW2cWXTxydEmd9MHKchQ== X-Received: by 2002:a05:600c:47c4:: with SMTP id l4mr14925568wmo.125.1627059913587; Fri, 23 Jul 2021 10:05:13 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id p9sm32559104wrx.59.2021.07.23.10.04.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jul 2021 10:04:40 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 938BF1FFB3; Fri, 23 Jul 2021 18:03:56 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 26/28] gitlab: enable a very minimal build with the tricore container Date: Fri, 23 Jul 2021 18:03:52 +0100 Message-Id: <20210723170354.18975-27-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210723170354.18975-1-alex.bennee@linaro.org> References: <20210723170354.18975-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32d.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 , qemu-devel@nongnu.org, Wainer dos Santos Moschetta , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= , Willian Rampazzo , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Rather than base of the shared Debian 10 container which would require us to bring in even more dependencies just bring in what is needed for building tricore-softmmu in GitLab. We don't even remove the container from the DOCKER_PARTIAL_IMAGES lest we cause more confusion. Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth Reviewed-by: Willian Rampazzo Message-Id: <20210720232703.10650-28-alex.bennee@linaro.org> -- 2.20.1 diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index 89df51517c..48cb45a783 100644 --- a/.gitlab-ci.d/buildtest.yml +++ b/.gitlab-ci.d/buildtest.yml @@ -354,6 +354,17 @@ build-some-softmmu: TARGETS: xtensa-softmmu arm-softmmu aarch64-softmmu alpha-softmmu MAKE_CHECK_ARGS: check-tcg +# We build tricore in a very minimal tricore only container +build-tricore-softmmu: + extends: .native_build_job_template + needs: + job: tricore-debian-cross-container + variables: + IMAGE: debian-tricore-cross + CONFIGURE_ARGS: --disable-tools --disable-fdt --enable-debug + TARGETS: tricore-softmmu + MAKE_CHECK_ARGS: check-tcg + clang-system: extends: .native_build_job_template needs: diff --git a/tests/docker/dockerfiles/debian-tricore-cross.docker b/tests/docker/dockerfiles/debian-tricore-cross.docker index 985925134c..d8df2c6117 100644 --- a/tests/docker/dockerfiles/debian-tricore-cross.docker +++ b/tests/docker/dockerfiles/debian-tricore-cross.docker @@ -1,23 +1,47 @@ # # Docker TriCore cross-compiler target # -# This docker target builds on the debian Stretch base image. +# This docker target builds on the Debian Buster base image but +# doesn't inherit from the common one to avoid bringing in unneeded +# dependencies. # # Copyright (c) 2018 Philippe Mathieu-Daudé # # SPDX-License-Identifier: GPL-2.0-or-later # -FROM qemu/debian10 +FROM docker.io/library/debian:buster-slim MAINTAINER Philippe Mathieu-Daudé +RUN apt update && \ + DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \ + DEBIAN_FRONTEND=noninteractive eatmydata apt install -yy \ + bzip2 \ + ca-certificates \ + ccache \ + g++ \ + gcc \ + git \ + libglib2.0-dev \ + libpixman-1-dev \ + libtest-harness-perl \ + locales \ + make \ + ninja-build \ + perl-base \ + pkgconf \ + python3-pip \ + python3-setuptools \ + python3-wheel + RUN git clone --single-branch \ https://github.com/bkoppelmann/tricore-binutils.git \ /usr/src/binutils && \ cd /usr/src/binutils && chmod +x missing && \ - CFLAGS=-w ./configure --prefix=/usr --disable-nls --target=tricore && \ + CFLAGS=-w ./configure --prefix=/usr/local --disable-nls --target=tricore && \ make && make install && \ rm -rf /usr/src/binutils -# This image isn't designed for building QEMU but building tests -ENV QEMU_CONFIGURE_OPTS --disable-system --disable-user +# This image can only build a very minimal QEMU as well as the tests +ENV DEF_TARGET_LIST tricore-softmmu +ENV QEMU_CONFIGURE_OPTS --disable-user --disable-tools --disable-fdt