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=-17.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable 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 8590DC433FE for ; Mon, 7 Dec 2020 12:55:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 38E1023428 for ; Mon, 7 Dec 2020 12:55:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726130AbgLGMzV (ORCPT ); Mon, 7 Dec 2020 07:55:21 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:57782 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725799AbgLGMzU (ORCPT ); Mon, 7 Dec 2020 07:55:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607345633; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8jQXhZcYJDxQ+pyrZJ9955D0Y/b7j+Ci1hyg9wiMJqU=; b=B5mNN6ssD+k8xdQceVG3A/oXt1xDCPvwExE0Jo6i1pil8ftFR8M/oq/lmJWRyRInCsV7L7 ICPVXXqSqRbPvi8nbyB5seKrq0wXUGWiU+8xSsm+DMHdHK/IQcv9zI7wHqivS1wnK00oKX lyacLPihPVns0fG0bueqa6bE5hqWXow= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-224-U4KudxG_Mm2YXq2Gy0GzoA-1; Mon, 07 Dec 2020 07:53:52 -0500 X-MC-Unique: U4KudxG_Mm2YXq2Gy0GzoA-1 Received: by mail-wr1-f69.google.com with SMTP id o4so1146436wrw.19 for ; Mon, 07 Dec 2020 04:53:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8jQXhZcYJDxQ+pyrZJ9955D0Y/b7j+Ci1hyg9wiMJqU=; b=ccjUDyon/noxKwucCC8EV9j1zg2GC2ZWPqKIbQJFnINsDUwrxp9MxtWbSJ/5tms9Wt Kk6ZmoIhMO/1OFb+tP58nOczAvjRZFG7JDREQBCZ+85Vx3YIKRjieFfgf4mBmwV8RHq6 5Vqq3jyGgY8xnvxVGhwJM9T/k7jsD7IVOSquOZYYD4JvLzNzqZRasDZiMc+UBMbWzqjS MIUdWbxYb4dBwiME5Oj/xzSOVn0KzrN5wPkU0ms5TdUrEkvU8vsDu9bNY+tgeu0y8kkz 4o1dDzBSJ/L4F7vCtsOOv7jE8uy6LuR1vYhgPM5SfO02KU/4HkNSR3Uxxy3S3T0t/WaV cKXQ== X-Gm-Message-State: AOAM532LddTWjBv8ZzfPuGZZvjetEb5VCCHWVC7+e9+NmSORPU7WtlNc Vbah4pK87jruEDYmN8H0PgouK0JoqOg2SGQi4EiTBdoUpzgquBLP77aPSbHVj3GzKWIo3cisf+M Z6ChOoBo4qO1u X-Received: by 2002:adf:e547:: with SMTP id z7mr16664435wrm.283.1607345630921; Mon, 07 Dec 2020 04:53:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwL3U84FFw+0qFmC+nPsQaUjHyjhjpgeVy6OSntbXqxnSM9myKiFBtd0teG8BcdiMc8S14tKw== X-Received: by 2002:adf:e547:: with SMTP id z7mr16664424wrm.283.1607345630765; Mon, 07 Dec 2020 04:53:50 -0800 (PST) Received: from [192.168.1.36] (101.red-88-21-206.staticip.rima-tde.net. [88.21.206.101]) by smtp.gmail.com with ESMTPSA id h15sm15059392wrw.15.2020.12.07.04.53.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Dec 2020 04:53:50 -0800 (PST) Subject: Re: [PATCH v2 3/5] gitlab-ci: Introduce 'cross_accel_build_job' template To: Thomas Huth , qemu-devel@nongnu.org Cc: Halil Pasic , Christian Borntraeger , Cornelia Huck , Claudio Fontana , Willian Rampazzo , qemu-s390x@nongnu.org, Anthony Perard , =?UTF-8?Q?Alex_Benn=c3=a9e?= , Wainer dos Santos Moschetta , xen-devel@lists.xenproject.org, Paul Durrant , Marcelo Tosatti , Paolo Bonzini , kvm@vger.kernel.org, Stefano Stabellini References: <20201207112353.3814480-1-philmd@redhat.com> <20201207112353.3814480-4-philmd@redhat.com> <93d186c0-feea-8e47-2a03-5276fb898bff@redhat.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: <39d13e9c-1fb4-2fa9-6cf4-01086ad920aa@redhat.com> Date: Mon, 7 Dec 2020 13:53:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <93d186c0-feea-8e47-2a03-5276fb898bff@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 12/7/20 12:37 PM, Thomas Huth wrote: > On 07/12/2020 12.23, Philippe Mathieu-Daudé wrote: >> Introduce a job template to cross-build accelerator specific >> jobs (enable a specific accelerator, disabling the others). >> >> The specific accelerator is selected by the $ACCEL environment >> variable (default to KVM). >> >> Extra options such disabling other accelerators are passed >> via the $ACCEL_CONFIGURE_OPTS environment variable. >> >> Signed-off-by: Philippe Mathieu-Daudé >> --- >> .gitlab-ci.d/crossbuilds.yml | 17 +++++++++++++++++ >> 1 file changed, 17 insertions(+) >> >> diff --git a/.gitlab-ci.d/crossbuilds.yml b/.gitlab-ci.d/crossbuilds.yml >> index 099949aaef3..d8685ade376 100644 >> --- a/.gitlab-ci.d/crossbuilds.yml >> +++ b/.gitlab-ci.d/crossbuilds.yml >> @@ -13,6 +13,23 @@ >> xtensa-softmmu" >> - make -j$(expr $(nproc) + 1) all check-build >> >> +# Job to cross-build specific accelerators. >> +# >> +# Set the $ACCEL variable to select the specific accelerator (default to >> +# KVM), and set extra options (such disabling other accelerators) via the >> +# $ACCEL_CONFIGURE_OPTS variable. >> +.cross_accel_build_job: >> + stage: build >> + image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest >> + timeout: 30m >> + script: >> + - mkdir build >> + - cd build >> + - PKG_CONFIG_PATH=$PKG_CONFIG_PATH >> + ../configure --enable-werror $QEMU_CONFIGURE_OPTS --disable-tools >> + --enable-${ACCEL:-kvm} --target-list="$TARGETS" $ACCEL_CONFIGURE_OPTS >> + - make -j$(expr $(nproc) + 1) all check-build >> + >> .cross_user_build_job: >> stage: build >> image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest > > I wonder whether we could also simply use the .cross_user_build_job - e.g. > by adding a $EXTRA_CONFIGURE_OPTS variable in the "../configure ..." line so > that the accel-jobs could use that for their --enable... and --disable... > settings? Well cross_user_build_job build tools (I'm not sure that desired). > Anyway, I've got no strong opinion on that one, and I'm also fine if we add > this new template, so: > > Reviewed-by: Thomas Huth Thanks, we can improve on top.