From nobody Mon Feb 9 17:07:25 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass(p=quarantine dis=none) header.from=amd.com ARC-Seal: i=2; a=rsa-sha256; t=1666358623; cv=pass; d=zohomail.com; s=zohoarc; b=XdkGUJWRPQix+tHbC59KTEKu207H9jrSJ6nYHAr4g2uSEKvb4dqPyKVgiewXOAGs1wtFrKi9DEE3y5G3kDePFI10MTpA29JUBAZKp+Sgeua1S6TwxM1FXgUAO4bfSaLwZxTk2/rPbz0LW84xOAkTFu3zvJgE8hSUtfWAyyyf/mk= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1666358623; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=42HDqeoTp2iFQDneQaRiYdhWYX5iZ0QaGLIVWemtNg4=; b=SsGHwHSq6U53Wx3PyJMiEGKFInhBijgZWvlA61mvQpKe+UxYUvlfKtxJJ6NWJSuiZT4Ovj202u24ARgZHqS/e8R8hOErvCy0h0K2Y1pkcQeUoLNOPMVYJVIYAvJGukVwz7j6NiRWA0OOzK7OD0lCeqp+qs+/gFfCapmnhNvxgP4= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1666358623906328.38926103181166; Fri, 21 Oct 2022 06:23:43 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.427688.676979 (Exim 4.92) (envelope-from ) id 1olrzW-0007pT-JI; Fri, 21 Oct 2022 13:23:14 +0000 Received: by outflank-mailman (output) from mailman id 427688.676979; Fri, 21 Oct 2022 13:23:14 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1olrzW-0007pM-GX; Fri, 21 Oct 2022 13:23:14 +0000 Received: by outflank-mailman (input) for mailman id 427688; Fri, 21 Oct 2022 13:23:13 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1olrzV-0007pE-6k for xen-devel@lists.xenproject.org; Fri, 21 Oct 2022 13:23:13 +0000 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2082.outbound.protection.outlook.com [40.107.212.82]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 7916f7c9-5143-11ed-8fd0-01056ac49cbb; Fri, 21 Oct 2022 15:22:56 +0200 (CEST) Received: from BN8PR07CA0007.namprd07.prod.outlook.com (2603:10b6:408:ac::20) by BY5PR12MB4885.namprd12.prod.outlook.com (2603:10b6:a03:1de::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.34; Fri, 21 Oct 2022 13:23:07 +0000 Received: from BN8NAM11FT038.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ac:cafe::d4) by BN8PR07CA0007.outlook.office365.com (2603:10b6:408:ac::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.35 via Frontend Transport; Fri, 21 Oct 2022 13:23:07 +0000 Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT038.mail.protection.outlook.com (10.13.176.246) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5746.16 via Frontend Transport; Fri, 21 Oct 2022 13:23:06 +0000 Received: from SATLEXMB07.amd.com (10.181.41.45) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 21 Oct 2022 08:23:06 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB07.amd.com (10.181.41.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 21 Oct 2022 06:23:05 -0700 Received: from XIR-MICHALO-L1.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.31 via Frontend Transport; Fri, 21 Oct 2022 08:23:04 -0500 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 7916f7c9-5143-11ed-8fd0-01056ac49cbb ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JCWgwozbxZ61cm9wexhEIwNLK8exdWF/0CdKzbEFbLYX5yhYjBjNm2NnggzbZiLK7WkqOOZsUmwQ+S2Ge4qeknxsDWGVvHDR4cKFKy03W9BemixnMiVnFACj2SvRkvmu/zCNp3OKF+9F0S4O8T+QpX6yXsalWj1zvTOmoeP4LUYzrcH9U7bNx2ZqAtnTz79AWM8ZIlOnx97H2eDjgy9tSS7O0y9MpUzM3k6O/epYZWDvSw5wHZqGKwWRaqQVyVsonp6yf4zKrGn7FvJgTL4SQKv7dtPpZ9vlEU/xQw5A9KDVCtSoioxs0J+52avmLDSpzJoPf3jgn+YDtQYXF+bNeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=42HDqeoTp2iFQDneQaRiYdhWYX5iZ0QaGLIVWemtNg4=; b=nSInzib65va4t/vWxrTOvR1iuY6YBESJr+rpjNDonsyktP/Ez8inFKDfBtmS0NWMBATxJzi485cS7SVf2luA01F7k1taln0yVPJscFypeAJl4rmDP4kF7dlsf9entpnTKPrYZ+INpEI9/rN3foDFuZLgvYjlGySVJgf7WwdfD+Obsg5PrIs+MQpRiSiF71uK/AJfvZlZQrWukQvnjHu1EoVe/e+r7B0nry7ka/VlSKe80GxZHOmhWPsOvEh67Ok0/0uEOHjg82BTpVEr3uEMV0Btc3zykVanWpoDeTPdn1B8xtNCSGcF2/p6FcAVDImL9UfAMu5ouAG1mrzIDy+Ihg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=42HDqeoTp2iFQDneQaRiYdhWYX5iZ0QaGLIVWemtNg4=; b=G9GquSI3rmYHLfZvRTA1PELyOoImejWPeSUV0CdfJKOB2XsuLmMmPwbpNSj4SyBDW2EhNCGbfbbo/YIITZoVkb3UaKPOZgMZF7xazDbxRCEvziD/3cr87FzyaS5Md5KI2aR+/GrQcf2gHm8YDinGQorw3te3mGPath7iSw3zy3w= X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C From: Michal Orzel To: CC: Michal Orzel , Doug Goldstein , Stefano Stabellini , Henry Wang Subject: [for-4.17] automation: Build Xen according to the type of the job Date: Fri, 21 Oct 2022 15:22:38 +0200 Message-ID: <20221021132238.16056-1-michal.orzel@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT038:EE_|BY5PR12MB4885:EE_ X-MS-Office365-Filtering-Correlation-Id: 70ea1f3a-1545-48e4-cf98-08dab36763fb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rkiNPgVjpEQ+A4x31gGDp0V+wdvxji3zX8SEBBLXv0xOiSihLt7ZR5aTmK+D4GIDApusfL0sDaxOKV0bBh/dX6PYalANTR+V9G5eyUoGF+G6antxwygopSgqjVRsFhc8NF+DUb1imhkQcyF9qcNXjvT5IVqKkk8K87nJQAkx/wuKvO3i27lQkRSUIPDIZLFINClrm86qC39qRW3MefOh+FsJWzrrXOFdVdSpjGJf3IpEghQM9gm4aQ+1cAqU8bcE03doUPffemBswYo+pog+au4M4H/h0CK5Tg4o+mw8T/yTnU1RPM78q4ZPoEWKU2gSsOHDL8auK8a2UbGG6PRYGYT8rvTlxK+IyLIHvyK1EAhYylo/2IDsxtEZjDkJTxSK+eus/n62d2xvKYfWoRXWfbFt2xYIhw7v9p2u67X01J1Mb3Ki0pfj53MjMKzXnguLckXgWOuBsbui2hpSMU1hcBUn/E1mQedIPZj4NpTh1gFXshDNSG/HfbRctbgEdSwiWUj9zpX89wKQZKjLA11tmlGeP/qq6ua++YTDl6XGhdjYFf4Q2D0oG6SIONBtV9T8dvDP+prLjuUdk+dZ6kxTRsiCkKP10SGdsKPF6J5DJ4NhyaEGkGPnUWD0RSRgLIJ5k2YpTNJ1R5lyHIPLBN1MWsjJoKtoImQ3jtOzXK3CjlH5YKMEigIb5D5AbgveLuZGRM9RMEMMDSr8GvUvuptQGrkViWBNIg8m1Tvn2u19tmdaLIwwysb1MaM+n5H0r2gk1jPJVLG3k5qGVfenjHrniG8zd844rNk+RgZ8vEaDZn1pp0OJtANkmdEgsyjqv7M7 X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(346002)(376002)(136003)(396003)(39860400002)(451199015)(40470700004)(36840700001)(46966006)(82740400003)(356005)(47076005)(6666004)(81166007)(86362001)(316002)(5660300002)(8676002)(8936002)(41300700001)(70206006)(26005)(40460700003)(70586007)(4326008)(40480700001)(186003)(336012)(2906002)(426003)(54906003)(6916009)(1076003)(82310400005)(44832011)(2616005)(36756003)(36860700001)(478600001)(83380400001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2022 13:23:06.6171 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 70ea1f3a-1545-48e4-cf98-08dab36763fb X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT038.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4885 X-ZohoMail-DKIM: pass (identity @amd.com) X-ZM-MESSAGEID: 1666358625194100001 Content-Type: text/plain; charset="utf-8" All the build jobs exist in two flavors: debug and non-debug, where the former sets 'debug' variable to 'y' and the latter to 'n'. This variable is only being recognized by the toolstack, because Xen requires enabling/disabling debug build via e.g. menuconfig/config file. As a corollary, we end up building/testing Xen with CONFIG_DEBUG always set to a default value ('y' for unstable and 'n' for stable branches), regardless of the type of the build job. Fix this behavior by setting CONFIG_DEBUG according to the 'debug' value. Signed-off-by: Michal Orzel Reviewed-by: Stefano Stabellini --- Xen used debug variable to control the build type before switching to Kconf= ig. Support for GitLab CI was added later, which means that this issue was alwa= ys present. This is a low risk for 4.17 with a benefit of being able to test X= en in both debug and non-debug versions. --- automation/scripts/build | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/automation/scripts/build b/automation/scripts/build index 8c0882f3aa33..a5934190634b 100755 --- a/automation/scripts/build +++ b/automation/scripts/build @@ -21,12 +21,13 @@ if [[ "${RANDCONFIG}" =3D=3D "y" ]]; then make -j$(nproc) -C xen KCONFIG_ALLCONFIG=3Dtools/kconfig/allrandom.con= fig randconfig hypervisor_only=3D"y" else + echo "CONFIG_DEBUG=3D${debug}" > xen/.config + if [[ -n "${EXTRA_XEN_CONFIG}" ]]; then - echo "${EXTRA_XEN_CONFIG}" > xen/.config - make -j$(nproc) -C xen olddefconfig - else - make -j$(nproc) -C xen defconfig + echo "${EXTRA_XEN_CONFIG}" >> xen/.config fi + + make -j$(nproc) -C xen olddefconfig fi =20 # Save the config file before building because build failure causes the sc= ript --=20 2.25.1