diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2023-12-24 22:17:59 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2023-12-24 22:41:33 +0100 |
commit | e9d2b62ea8300aae67a483c7e260d3ff7bc80fc5 (patch) | |
tree | 2b38a914917e8cdeeab5d75a30544ed71cc048cb /catalyst/base | |
parent | arch: Alternative approach. Rely on profile for m68k musl CHOST... (diff) | |
download | catalyst-e9d2b62ea8300aae67a483c7e260d3ff7bc80fc5.tar.gz catalyst-e9d2b62ea8300aae67a483c7e260d3ff7bc80fc5.tar.bz2 catalyst-e9d2b62ea8300aae67a483c7e260d3ff7bc80fc5.zip |
base/stagebase.py: Do not touch subarch if chost is set
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 <dilfridge@gentoo.org>
Diffstat (limited to 'catalyst/base')
-rw-r--r-- | catalyst/base/stagebase.py | 5 |
1 files changed, 1 insertions, 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: |