Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp467053rdg; Thu, 12 Oct 2023 10:37:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFd++3pdxmxXppK5iHsEecUr6cdz+9vDHwRpf0zv2oHDM+0lG4yOMuadqe6oia0xiHZErfn X-Received: by 2002:a17:902:8504:b0:1c9:e072:33a6 with SMTP id bj4-20020a170902850400b001c9e07233a6mr1889087plb.40.1697132224324; Thu, 12 Oct 2023 10:37:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697132224; cv=none; d=google.com; s=arc-20160816; b=S+YqzOeO3PdTZXGxcdCPbNYTCP/VQqaRvnhxpnjcKdjAGj81sqpCWourcucoG4xgSK dU3YBKlzAv+cVTuDO2VSN7+9xV7zpWIbnss4b2mGdSJKJUCspDCzFtGle/i/MU9IBID8 BUNjLXpG3ePiimEGfUnuhEOVye9/dk8GxoG3nnfCcoRVz6uDoeC9Nzo3n6cioLNIWAiY J91zQiT+pikq6tWo5CfZAERthWhnDrV+D/NG1JqnWLNeC5JlzTTVG/O1/WR+JwSydsX9 IkG0t1hEg/ErXbH9gnXAeY56emiuw6nKmxrxJkyy+90dYFCN2S9/+TdUbdPijaPCW1Yz +JpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Mj61PG0B6JCZm64HAIUt9iikTAptSWgh2LMnRY4Oq1I=; fh=z2RqFwDrQYwCXTVCEo1Scu7T6ziMfU4Fx5U+jJY9aY8=; b=n7acann26rSoGtGsrSA/oTJtTaYE0ieynpujITbQrJeIJGC6RfZxtKlUugByOy2iXm pLjOURabxF6Y12CmQx4G7lI8VaFHLoeCXnj0ScnAJKrnic4XAPH+4aBkhk/RSYSKW0sG 6CqWwcwo8+/lR9SsnKesp11jizwxxa6oKwF6PpKCQ4fpV5oIr5b2YT7RY0J/Ogi6vcsO L7EDM5DK3iDwYBIXNoDgFz4EyCwFNlEs9szhc+L5lvKFeH8zq/lJ93Ky/NuqxkSvIXxb CnGpUqBqqusvJHH/t+0HNz5osrSfbZYhu4gwiBqJQop9OZNjSRpRpwh0CD1gctsZMZny jsyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mit.edu header.s=outgoing header.b=KiaoRoH5; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id d2-20020a170903230200b001c62bbdde51si2869088plh.479.2023.10.12.10.37.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 10:37:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@mit.edu header.s=outgoing header.b=KiaoRoH5; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id F00EB8249283; Thu, 12 Oct 2023 10:36:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347382AbjJLRg4 (ORCPT + 99 others); Thu, 12 Oct 2023 13:36:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347423AbjJLRgo (ORCPT ); Thu, 12 Oct 2023 13:36:44 -0400 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B731D72B8 for ; Thu, 12 Oct 2023 10:28:41 -0700 (PDT) Received: from cwcc.thunk.org (pool-173-48-111-200.bstnma.fios.verizon.net [173.48.111.200]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 39CHSZfw010290 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Oct 2023 13:28:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1697131717; bh=Mj61PG0B6JCZm64HAIUt9iikTAptSWgh2LMnRY4Oq1I=; h=Date:From:Subject:Message-ID:MIME-Version:Content-Type; b=KiaoRoH5DJ5UyK8zHCg9jW72HJJ1DRK02hF/21ey+FZNRgH3y11D/8G00RRIGK8Ka +shSqVo7jQtfrC8So6nuyjo7FXSSfM/ETd5FFhApwomxZ+YlwQetoP1Pv+A3swlaB1 Pm9wGYw0fwi0OvH0ALDACpinQD4YmI/kERuXmNeans+YSgsIoi3Ko0XKA6Pk9GkH6G rrEl6R8oddqN3NYYWVjK6CpSxR2hi7p62MgrHs6tJemkx+PevSxdxZKp5Pm5uNxu0r REZPaz0+im2i1BduPPfYrgraJY7yzGmPNF+7Ba8Q/do4ZG1yGX2V8I6kPyvY9weGmW /JmsielZyQONQ== Received: by cwcc.thunk.org (Postfix, from userid 15806) id 7B35715C0255; Thu, 12 Oct 2023 13:28:35 -0400 (EDT) Date: Thu, 12 Oct 2023 13:28:35 -0400 From: "Theodore Ts'o" To: "Ritesh Harjani (IBM)" Cc: linux-ext4@vger.kernel.org, Ojaswin Mujoo Subject: Re: [PATCH 1/2] kvm-xfstests: install-kconfig: Use $ARCH-config instead of $KERN_ARCH-config Message-ID: <20231012172835.GD255452@mit.edu> References: <060d9fef332979fd5d53b1c28c13b2043a16ab25.1696965271.git.ritesh.list@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <060d9fef332979fd5d53b1c28c13b2043a16ab25.1696965271.git.ritesh.list@gmail.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 12 Oct 2023 10:36:58 -0700 (PDT) On Wed, Oct 11, 2023 at 12:46:30AM +0530, Ritesh Harjani (IBM) wrote: > $KERN_ARCH is used for make arguments. For configs let's use > $ARCH-config. This should not break anything since as of now we only > have arm64-config for which $ARCH and $KERN_ARCH is same. > > Signed-off-by: Ritesh Harjani (IBM) It would be much better to teach set_canoncalized_arch about the powerpc64le architecture. That way other scripts that use set_canoicalized_arch can correctly depend on KERN_ARCH. See run-fstests/util/arch_funcs: # There are multiple ways that CPU architectured can be named. # KERN_ARCH is what is used when specifying ARCH=xxx when building the # kernel. # # GCE_ARCH is what gets used when setting specifying the architecture # when creating the GCE image using the --architecture flag # ARCH (after being canonicalized by this function) is defined by # the Debian architecture port names[1] and is used internally # by gce-xfstests and kvm-xfstests. So for example, when we add # support for support for Power architectures, the ARCH name that should # be used is ppc64 or ppc64el. ... # This function takes as input a user-supplied architecture (which # generally should be a Debian port name, but users might use # a $(uname -m) instead. # function set_canonicalized_arch () { case "$1" in arm64|aarch64) ARCH="arm64" GCE_ARCH="ARM64" KERN_ARCH="arm64" ;; ... So basically, after calling set_canoncalized_arch, ARCH should be Debian architecture port name, GCE_ARCH (if not the empty string) is the name of the GCE architecture name, and KERN_ARCH should be what should be passed to the Kernel makefile as "make ARCH=$KERN_ARCH ..." - Ted