From nobody Tue May 7 13:47:04 2024 Delivered-To: importer@patchew.org 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; 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; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1679326161; cv=none; d=zohomail.com; s=zohoarc; b=TeKfSJe6ja2CiIrqIDfHv7zInDbbOdqjl+IQ5zvfFHae4Y3+BpGBSvtJ3a15IKG4XXkOY5NhQOkiLpYtjhe/U2OPHaRG+StWYnfj4sa0ZE9LGAsowrpxBsIhkLoeXfpalpYu3hETfVCAFM+MIqoT+DFM86XL6XDE9OceCKQdOLI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1679326161; 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=yYwrFbOn20OPlenuR4tzrPAe8TMKtSw0By1RP0gjbww=; b=Nmi/bj71O/0zzvXccbiI8C68IfR487dfTylmsIRwg66bgZRIzYUNqBESLv6vchxy42L7xn7hio70TAY4ZoG4UvugIlnZcVD6SwIgAxOJK+qCNsxtS4TI5iM9OMi2Eq4vrOkV6B51LV+RKYd0+Zy//6B3oaXMy+GjOyCZxPn8Kyk= ARC-Authentication-Results: i=1; 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; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1679326161441254.24238058582625; Mon, 20 Mar 2023 08:29:21 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.511974.791457 (Exim 4.92) (envelope-from ) id 1peHRT-0006Oq-TM; Mon, 20 Mar 2023 15:28:59 +0000 Received: by outflank-mailman (output) from mailman id 511974.791457; Mon, 20 Mar 2023 15:28:59 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1peHRT-0006Oj-P8; Mon, 20 Mar 2023 15:28:59 +0000 Received: by outflank-mailman (input) for mailman id 511974; Mon, 20 Mar 2023 15:28:58 +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 1peHRS-0006Nv-4T for xen-devel@lists.xenproject.org; Mon, 20 Mar 2023 15:28:58 +0000 Received: from esa6.hc3370-68.iphmx.com (esa6.hc3370-68.iphmx.com [216.71.155.175]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id ebeef3df-c733-11ed-b464-930f4c7d94ae; Mon, 20 Mar 2023 16:28:55 +0100 (CET) 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: ebeef3df-c733-11ed-b464-930f4c7d94ae DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1679326135; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Cae7xsatjdkk0Qd3/PgXTMzDa7IbBzEW0WkMnFrgwDc=; b=I/wuFKFdOb9G77ef6BTV0zAaHDGc3L8MNqKUZsiPgWYvv0H11ifk8Tmw AvNB1B4/O9tA+/Y67TANSEKI9fIjbeqiRfAbgHu4UdHaNEeDzwxjZQZTh 9sijN4/Ck5N2GmtxvXn7+sD/bt/T8Cw2bM3qhJRzVZvvx7YMJMUG7LJ/f 8=; Authentication-Results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none X-SBRS: 4.0 X-MesageID: 100927263 X-Ironport-Server: esa6.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.123 X-Policy: $RELAYED IronPort-Data: A9a23:D9MMD6/XEOA4d4p+Fq4IDrUD9n6TJUtcMsCJ2f8bNWPcYEJGY0x3z GAbXGGGaP7ZZTeke99+atm28R8HvsfVmNdlS1E4qyk8E34SpcT7XtnIdU2Y0wF+jCHgZBk+s 5hBMImowOQcFCK0SsKFa+C5xZVE/fjUAOG6UKicYXoZqTZMEE8JkQhkl/MynrlmiN24BxLlk d7pqojUNUTNNwRcawr40Ire7kI/1BjOkGlA5AdmPqka5AW2e0Q9V/rzG4ngdxMUfaEMdgKKb 76r5K20+Grf4yAsBruN+losWhRXKlJ6FVHmZkt+A8BOsDAbzsAB+v9T2M4nQVVWk120c+VZk 72hg3ASpTABZcUgkMxFO/VR/roX0aduoNcrKlDn2SCfItGvn9IBDJyCAWlvVbD09NqbDklkx NlDFT5XYyqquNi8xJGJaMJJjfwKeZyD0IM34hmMzBncBPciB5vCX7/L9ZlT2zJYasJmRKiEI ZBDMHw2MUqGOkcUUrsUIMtWcOOAj3/jczpeuRSNqLA++WT7xw1tyrn9dtHSf7RmQO0Mxh7J/ D2coT+R7hcyF4CY5hHYwmmVvczTnhH0BNgAEqSXz6s/6LGU7jNKU0BHPbehmtGph0j7V99BJ kg8/is1sbN05EGtVsP6XRCzvDiDpBF0c9haHvA+6QqN4rHJ+AvfDW8BJhZDddgnuckeVTEsk FiTkLvBHidzubeYTXac8La8rj6oPyURa2gYakcsUg8t89Tl5oYpgXryos1LSfDvyIevQHepn m7M9XJl71kOsSIV/4+K2Av6jWihnLH2dAQxxTf1dUeu1iosMeZJeLeUBUjnAedoddjGHwHb4 SBby6By/8hVU8jTyXXlrPElWejwuq3baGC0bUtHRcFJyti7x5K0kWm8ChlaLVwhDMsLcCSBj KT76VIIv8870JdHgMZKj2ON5ycCl/KI+SzNDKy8Uza3SsEZmPW7ENxGPxbMjwgBb3TAYYlgY MzGIK5A/F4RCLh9zSreetrxJYQDn3hkrUuKHMCT8vhS+ebGDJJjYetfYQTmgyFQxP/snTg5B P4FZpHSlUoECL2Wj+u+2dd7EG3m5EMTXfjew/G7vMbZSua6MAnN08Ps/I4= IronPort-HdrOrdr: A9a23:5074h6svGN0yGkpRxdCusWP77skDddV00zEX/kB9WHVpmwKj5q eTdZUgpHnJYVMqMk3I9urwW5VoLUm9yXcX2+gs1NWZLWvbUQKTRekI0WKI+UyEJ8SRzJ846U 6iScRD4R/LYGSSQfyU3OBwKbgd/OU= X-IronPort-AV: E=Sophos;i="5.98,274,1673931600"; d="scan'208";a="100927263" From: Anthony PERARD To: CC: Anthony PERARD , Andrew Cooper , George Dunlap , "Jan Beulich" , Julien Grall , "Stefano Stabellini" , Wei Liu Subject: [XEN PATCH v2] build: detect compiler change to rerun kconfig Date: Mon, 20 Mar 2023 15:28:36 +0000 Message-ID: <20230320152836.43205-1-anthony.perard@citrix.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1679326162634100001 Content-Type: text/plain; charset="utf-8" This simple comment allows to detect when $(CC) changes version. Kconfig will be rerun in this case. (Rerun is forced by include/config/auto.conf.cmd which detects changes of CC_VERSION_TEXT value). Signed-off-by: Anthony PERARD --- Technically, it was acked by Andrew: https://lore.kernel.org/xen-devel/20200326135621.687685-1-anthony.perar= d@citrix.com/t/#ma1171775b9938bcdffc80b2fcb8d2a883cd3e32a v2: - s/upgrade/change/ in subject and in the comment in the Makefile - Fix path in commit description --- xen/Kconfig | 2 ++ xen/Makefile | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/xen/Kconfig b/xen/Kconfig index 134e6e68ad..756c7842e9 100644 --- a/xen/Kconfig +++ b/xen/Kconfig @@ -4,6 +4,8 @@ # mainmenu "Xen/$(SRCARCH) $(XEN_FULLVERSION) Configuration" =20 +comment "Compiler: $(CC_VERSION_TEXT)" + source "scripts/Kconfig.include" =20 config BROKEN diff --git a/xen/Makefile b/xen/Makefile index 2710d7327e..12c6891a79 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -326,6 +326,10 @@ ifdef building_out_of_srctree { echo "# this is build directory, ignore it"; echo "*"; } > .gitignore endif =20 +# CC_VERSION_TEXT is referenced from Kconfig (so it needs export), +# and from include/config/auto.conf.cmd to detect the compiler change. +export CC_VERSION_TEXT :=3D $(shell $(CC) --version 2>/dev/null | head -n = 1) + ifeq ($(config-build),y) # =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D # *config targets only - make sure prerequisites are updated, and descend --=20 Anthony PERARD