From nobody Sat May 18 03:46:17 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 1626782468358920.7171966344416; Tue, 20 Jul 2021 05:01:08 -0700 (PDT) Received: from localhost ([::1]:47814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5oQt-0004bl-8s for importer@patchew.org; Tue, 20 Jul 2021 08:01:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36170) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5o7S-0005M8-GJ for qemu-devel@nongnu.org; Tue, 20 Jul 2021 07:41:02 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:35570) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5o7Q-0008Ce-PI for qemu-devel@nongnu.org; Tue, 20 Jul 2021 07:41:02 -0400 Received: by mail-wr1-x434.google.com with SMTP id m2so25679847wrq.2 for ; Tue, 20 Jul 2021 04:41:00 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id y3sm23723340wrh.16.2021.07.20.04.40.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 04:40:58 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 7EE7E1FF87; Tue, 20 Jul 2021 12:40:57 +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:in-reply-to:references :mime-version:content-transfer-encoding; bh=wkNQQ20XngujXOPbEcV2yi1EM3N0Z3ZePdpIQQkCKpc=; b=hKDBLUKMgsYsdYp+PFvbYslYu3CkZ2bJLCVGyAk3DGPvoJuGr4YdBpWc2jBH4QT7lZ wR7H14bzvzvNSj/4EjtYJWb4J+b0FFeKcLppeaYnaE80Gc6/oJsDuQHD+/Aay5cloBse q1UAqLwDpRL/qoomhcsHPzp6g1ElKsr+EgrOi9kuOMK6vPTO2vKEqwPtREdy6yKGZvFL x1qZJXawzt7hBSAwQnEA4f/xhD0/AomOvBAP+h3TcStQhkECjILysK/MnxE8nTSEpefM Hrx/Juwy3cymmZRERTbYfBoveKwp/ZXOcsamFTbX1UHaM7/1qjsXXGkY7zmZdkSKyB/J qJlQ== 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=wkNQQ20XngujXOPbEcV2yi1EM3N0Z3ZePdpIQQkCKpc=; b=TWZ7YpmTL+iCT3DYHBfIFcaPv5y2I20qZPZ/RobIXBqdvf0X0X/XAj9wap9enEm+0F IqL+ORIQXzTQgUe8f0JVDX7vGWOX19xd1c5pQ+2zmZIouIBlEuUFBfCXu4V8pogHzhEQ Cpc+mN59M3lyxe3RSlfmODrzQP2Ij0vNWQjxDjg1s3b2CUmdDKPDSv3UWQsVzvRsDjdP KcUJwz8I4VfiFJQtaXw3nTgusBtCvwKMLcdWc2H/jloRYyl/ZPhX3CnOXiy8hNUh5ZBk t/0hKB1tceDwTCojSLmGqk3ywS4K7yCyQGeIfoniqi2H5y8sKtllUCE1vWNr+zRZWfTl 4rNw== X-Gm-Message-State: AOAM533r5yBYl+1SvngoT00qVB3hu58cZi9PE/xo5gtXtXvcND62Bdev 6RXN7ARQSS2S3IpCL3N6SE0BBA== X-Google-Smtp-Source: ABdhPJxtLkXoQ242Yk1PczGjYTr4SVCbqQ4/5vRmIXVLV8N7sa4slklMCoTiqSHSCr+i5UIxuGwLVA== X-Received: by 2002:adf:f6c9:: with SMTP id y9mr1825994wrp.265.1626781258810; Tue, 20 Jul 2021 04:40:58 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 1/3] hw/tricore: fix inclusion of tricore_testboard Date: Tue, 20 Jul 2021 12:40:55 +0100 Message-Id: <20210720114057.32053-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.32.0.264.g75ae10bc75 In-Reply-To: <20210720114057.32053-1-alex.bennee@linaro.org> References: <20210720114057.32053-1-alex.bennee@linaro.org> 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::434; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x434.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: Peter Maydell , Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= , f4bug@amsat.org, Bastian Koppelmann 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: 1626782492245100001 We inadvertently added a symbol clash causing the build not to include the testboard needed for check-tcg. Fixes: f4063f9c31 ("meson: Introduce target-specific Kconfig") Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Peter Maydell Reviewed-by: Richard Henderson Signed-off-by: Alex Benn=C3=A9e --- v3 - rename to CONFIG_TRICORE_TESTBOARD --- configs/devices/tricore-softmmu/default.mak | 1 + hw/tricore/Kconfig | 3 +-- hw/tricore/meson.build | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configs/devices/tricore-softmmu/default.mak b/configs/devices/= tricore-softmmu/default.mak index 5cc91cebce..cb8fc286eb 100644 --- a/configs/devices/tricore-softmmu/default.mak +++ b/configs/devices/tricore-softmmu/default.mak @@ -1 +1,2 @@ +CONFIG_TRICORE_TESTBOARD=3Dy CONFIG_TRIBOARD=3Dy diff --git a/hw/tricore/Kconfig b/hw/tricore/Kconfig index 506e6183c1..33c1e852c3 100644 --- a/hw/tricore/Kconfig +++ b/hw/tricore/Kconfig @@ -1,9 +1,8 @@ -config TRICORE +config TRICORE_TESTBOARD bool =20 config TRIBOARD bool - select TRICORE select TC27X_SOC =20 config TC27X_SOC diff --git a/hw/tricore/meson.build b/hw/tricore/meson.build index 47e36bb077..7e3585daf8 100644 --- a/hw/tricore/meson.build +++ b/hw/tricore/meson.build @@ -1,6 +1,6 @@ tricore_ss =3D ss.source_set() -tricore_ss.add(when: 'CONFIG_TRICORE', if_true: files('tricore_testboard.c= ')) -tricore_ss.add(when: 'CONFIG_TRICORE', if_true: files('tricore_testdevice.= c')) +tricore_ss.add(when: 'CONFIG_TRICORE_TESTBOARD', if_true: files('tricore_t= estboard.c')) +tricore_ss.add(when: 'CONFIG_TRICORE_TESTBOARD', if_true: files('tricore_t= estdevice.c')) tricore_ss.add(when: 'CONFIG_TRIBOARD', if_true: files('triboard.c')) tricore_ss.add(when: 'CONFIG_TC27X_SOC', if_true: files('tc27x_soc.c')) =20 --=20 2.32.0.264.g75ae10bc75 From nobody Sat May 18 03:46:17 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 1626782146078764.8790090838114; Tue, 20 Jul 2021 04:55:46 -0700 (PDT) Received: from localhost ([::1]:58008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5oLg-0000jA-T1 for importer@patchew.org; Tue, 20 Jul 2021 07:55:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5o7U-0005Qi-Ip for qemu-devel@nongnu.org; Tue, 20 Jul 2021 07:41:04 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:34797) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5o7S-0008EL-WB for qemu-devel@nongnu.org; Tue, 20 Jul 2021 07:41:04 -0400 Received: by mail-wr1-x430.google.com with SMTP id u1so25702923wrs.1 for ; Tue, 20 Jul 2021 04:41:02 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id n5sm16699189wrp.80.2021.07.20.04.40.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 04:40:58 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9404E1FF8C; Tue, 20 Jul 2021 12:40:57 +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:in-reply-to:references :mime-version:content-transfer-encoding; bh=AQYO1Y0AJh/tmas1GISkGsXZ+3UIAJXf/zORob+fY34=; b=AHQ/8PKXqUMRCH1FXdZvEst+XNYqD52/72NCSX9ijIn3BiAHDkGdQT09jVR5YTy1YW xTeWa413A6qILkbzZNiCi9oT9Hrcrj5MXDfPpP1OekOW22JhhmW5/fuNN82wJ5NfgYF2 eK1cHuDam6Ct+KRbOiBrhns+h2s9rwrDbpbuUSe0die/xEPUIlZWfaJ8NjTHxGSCclk+ aO9TXK5Afw+XG5lWxlCWOGCfiQri/oLq8fCLKYVmrcUXoxP7ZoUfVhpMaHM7NszZ/cwT ABIFiX1bv5dT/ol8kbXzM/qmLwkcq7G22xe1hR23mXjBMwx0njHSeMn1bd4ZvhxXsBfP rpZw== 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=AQYO1Y0AJh/tmas1GISkGsXZ+3UIAJXf/zORob+fY34=; b=Glt0ekxMr6l0adCSAuPwYE4VCuIco8ROHjcigwfX6Rg00Yrt7yY+b6z4uGpdYPSiAG fEXplnMiSv2druyukoSwNwSv0d6bf5Kve4mBSeYIuC4LgKWImBy8Sb3ARoe0NxXBEfLy qrv/8KrkSr6gV5hdPtrxhiQowH5+rC81D+5bw/qB+tVqouHMVDxJWKinmOX29XyWFryk 9/8beFm2oOtxFROzqZKX/JIydlRWIu7XjeDXxJRKVlwv0zz8246tMo851tPUEGziD6Kn 3vHPK3KmldbbXgANc6SisAmzXfj1uc1sNcw+fdFDc/5zXhK98fRaE51FD5qFNyym4ySN e9Jg== X-Gm-Message-State: AOAM532xsPVDBIaFyQRDb3mHZaZY92MyOo402XJcUXYjE85iIr+w5bG0 wLAqPUjfFxHUm3VXrXuMkz0e7g== X-Google-Smtp-Source: ABdhPJxifV5/B2Qu2WbvNjo94YQSRXlpiezPlBwKi4LPuN1qRp7IiyXXaz4+GZGnNZkuDVmUyAgbuA== X-Received: by 2002:a5d:4d4b:: with SMTP id a11mr35729051wru.325.1626781261434; Tue, 20 Jul 2021 04:41:01 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 2/3] tests/tcg/configure.sh: add handling for assembler only builds Date: Tue, 20 Jul 2021 12:40:56 +0100 Message-Id: <20210720114057.32053-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.32.0.264.g75ae10bc75 In-Reply-To: <20210720114057.32053-1-alex.bennee@linaro.org> References: <20210720114057.32053-1-alex.bennee@linaro.org> 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: =?UTF-8?q?Alex=20Benn=C3=A9e?= , f4bug@amsat.org 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: 1626782147501100001 Up until this point we only handled local compilers or assumed we had everything in the container. This falls down when we are building QEMU inside the container. This special handling only affects tricore for now but I put it in a case just in case we add any other "special" targets. Setting CROSS_CC_GUEST is a bit of a hack just to ensure the test runs as we gate on a detected compiler even though the Makefile won't actually use it. It also means we display something sane in the configure output. Signed-off-by: Alex Benn=C3=A9e --- tests/tcg/configure.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index aa7c24328a..1f985ccfc0 100755 --- a/tests/tcg/configure.sh +++ b/tests/tcg/configure.sh @@ -72,6 +72,10 @@ fi : ${cross_cc_x86_64=3D"x86_64-linux-gnu-gcc"} : ${cross_cc_cflags_x86_64=3D"-m64"} =20 +# tricore is special as it doesn't have a compiler +: ${cross_as_tricore=3D"tricore-as"} +: ${cross_ld_tricore=3D"tricore-ld"} + for target in $target_list; do arch=3D${target%%-*} =20 @@ -247,6 +251,20 @@ for target in $target_list; do fi fi fi + + # Special handling for assembler only tests + eval "target_as=3D\"\${cross_as_$arch}\"" + eval "target_ld=3D\"\${cross_ld_$arch}\"" + if has $target_as && has $target_ld; then + case $target in + tricore-softmmu) + echo "CROSS_CC_GUEST=3D$target_as" >> $config_target_mak + echo "CROSS_AS_GUEST=3D$target_as" >> $config_target_mak + echo "CROSS_LD_GUEST=3D$target_ld" >> $config_target_mak + got_cross_cc=3Dyes + ;; + esac + fi fi =20 if test $got_cross_cc =3D yes; then --=20 2.32.0.264.g75ae10bc75 From nobody Sat May 18 03:46:17 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 1626781772567897.8604210708911; Tue, 20 Jul 2021 04:49:32 -0700 (PDT) Received: from localhost ([::1]:36294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5oFf-0002xW-Gu for importer@patchew.org; Tue, 20 Jul 2021 07:49:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5o7W-0005VG-FR for qemu-devel@nongnu.org; Tue, 20 Jul 2021 07:41:06 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:33408) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5o7U-0008FM-Hy for qemu-devel@nongnu.org; Tue, 20 Jul 2021 07:41:06 -0400 Received: by mail-wr1-x42d.google.com with SMTP id d2so25707255wrn.0 for ; Tue, 20 Jul 2021 04:41:04 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id y6sm19223920wma.48.2021.07.20.04.40.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 04:41:01 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id AD1411FF8F; Tue, 20 Jul 2021 12:40:57 +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:in-reply-to:references :mime-version:content-transfer-encoding; bh=y0+GPJUpv/2AzF0aBnfTMkoDpWD3ukBFAJPYuPusAuc=; b=S2YN4hCFJ5yz3o7Dvzdrh7WaIb7wgHrLD70bWWIQTCeAOdzaZjhS3m0gdcRU2j8tGz oXs6RIMYR5lKq99aajxQ3VfKW0SSc/lC3lxyVfZQH4GenCoauZNbiICdJNFVoLAa+L7V CLeR9hGQMFLoM2GMDUL3yOayxkPU9APZ2Bi2Ar8RDLtphMqY7VaEacEJlx0ICE2YCzkv vp/JA5xM1/xn1AAFOMj2uJWj4VNRBN+6yhYXgjsEYBCCwuUPOU15fQQRNGSESRjgmHQs WBFFITStY3aaGMfzMMouucQktgbLlN2ZbLYQnBRQFmXw4Xks145JEePCXlh4ERUM+TgO OQlA== 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=y0+GPJUpv/2AzF0aBnfTMkoDpWD3ukBFAJPYuPusAuc=; b=rUOoHPHZ1K93LJ0dsaNkWiCo4hQ5HRGcuEnHp/n0wKn2nxVTz1E8PF335K8t1sxleh CDK41pT/5YRlxf6Z6k8mF1+WU4g1N2h8LSM0olsaDl5BfbIZlVHWToZTtumb/q9thOs5 5mzYpXMWgmi5nPR5jm0JDEabJCBrSwYuHv/mt1WE4jO6VlFWFxdcm8kgaLE6Z+mHJOC/ Cmwu62opGH3PxdMaOUic+4k+PEsYy1ocrP8C2ezqhflBDp2yX0qkz2oAYc+Ij1FvvUuJ 3hebIAkonR5iOolcJTQUXATmCqPjBZRMcjpuwOaChWY/oE+3MT4Kxr5CEPh1ynlEXpLY eJMA== X-Gm-Message-State: AOAM533Egln0zk/JC/Eqo5F2yxq0nRaWfhOeHA81XaxOUdlTlqyKI4ih 3dRekW6+2634jIJ0exT5vo+/Cg== X-Google-Smtp-Source: ABdhPJzMYNFiJWf5S+ByhfL3EVOdFeBGkZGOJkXX4FHKnZQ4x5diyNDBoymJXQpgRDkcZXYikeKsrw== X-Received: by 2002:adf:facf:: with SMTP id a15mr35053871wrs.39.1626781263149; Tue, 20 Jul 2021 04:41:03 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 3/3] gitlab: enable a very minimal build with the tricore container Date: Tue, 20 Jul 2021 12:40:57 +0100 Message-Id: <20210720114057.32053-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.32.0.264.g75ae10bc75 In-Reply-To: <20210720114057.32053-1-alex.bennee@linaro.org> References: <20210720114057.32053-1-alex.bennee@linaro.org> 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::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.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: Willian Rampazzo , Thomas Huth , =?UTF-8?q?Alex=20Benn=C3=A9e?= , f4bug@amsat.org, Wainer dos Santos Moschetta 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: 1626781773513100002 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=C3=A9e --- v3 - make a uni-container (but not based from common code) --- .gitlab-ci.d/buildtest.yml | 11 ++++++ .../dockerfiles/debian-tricore-cross.docker | 34 ++++++++++++++++--- 2 files changed, 40 insertions(+), 5 deletions(-) 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 =20 +# 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/d= ocker/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=C3=A9 # # SPDX-License-Identifier: GPL-2.0-or-later # -FROM qemu/debian10 +FROM docker.io/library/debian:buster-slim =20 MAINTAINER Philippe Mathieu-Daud=C3=A9 =20 +RUN apt update && \ + DEBIAN_FRONTEND=3Dnoninteractive apt install -yy eatmydata && \ + DEBIAN_FRONTEND=3Dnoninteractive 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=3D-w ./configure --prefix=3D/usr --disable-nls --target=3Dtrico= re && \ + CFLAGS=3D-w ./configure --prefix=3D/usr/local --disable-nls --target= =3Dtricore && \ make && make install && \ rm -rf /usr/src/binutils =20 -# 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 --=20 2.32.0.264.g75ae10bc75