From e9d2b62ea8300aae67a483c7e260d3ff7bc80fc5 Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Sun, 24 Dec 2023 22:17:59 +0100 Subject: base/stagebase.py: Do not touch subarch if chost is set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently, if you set chost in a stage1 spec file, catalyst resets the subarch to the first part of the triple (i.e. aarch64 for arm64). With this change, it leaves the subarch alone at the value defined in the spec file. This makes it much easier to override CHOST for, say, musl, without having to provide a separate section in arch/* ... Impact of the commit on the existing releng stage1 specs: amd64, arm64, x86, ppc, ppc64, ppc64le are all fine (the definitions are idencal, or subarch = first part of triplet) power9le is funny because right now the chost (powerpc64le) resets the subarch and drops the power9le optimizations, so there the commit is actually an improvement! Signed-off-by: Andreas K. Hüttel --- catalyst/base/stagebase.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index 3cbdf489..dd00af45 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -105,10 +105,7 @@ class StageBase(TargetBase, ClearBase, GenBase): self.makeconf = {} - if "chost" in self.settings: - host = self.settings["chost"].split("-")[0] - else: - host = self.settings["subarch"] + host = self.settings["subarch"] self.settings["hostarch"] = host if "cbuild" in self.settings: -- cgit v1.2.3-65-gdbad