aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* arch: add x86.i686-t64 subarch definition with appropriate *FLAGSHEADmasterAndreas K. Hüttel4 hours1-0/+4
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* stage1: Drop now unneeded imports againAndreas K. Hüttel2024-08-031-3/+1
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* stagebase: Move ROOT repo bind mount logic to stagebase instead of stage1Andreas K. Hüttel2024-08-032-22/+20
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* stage1: make sure we bind-mount within the chroot dir, try 3, now with pathlibAndreas K. Hüttel2024-08-031-2/+6
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Add log.debug statements to follow profile symlink creationAndreas K. Hüttel2024-08-031-0/+3
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* note to self: python is stupidAndreas K. Hüttel2024-07-301-1/+1
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* stage1: apparently we need to populate the chroot_path setting firstAndreas K. Hüttel2024-07-301-0/+1
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* stage1: make sure we bind-mount within the chroot dirAndreas K. Hüttel2024-07-301-2/+6
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* stage1: we can't mount any squashfs twice, so we make sure we get a bind mountAndreas K. Hüttel2024-07-301-1/+1
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* stagebase: Create parent directoriesDoug Freed2024-07-301-0/+2
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* log: hide our functions and include line numbersDoug Freed2024-07-301-1/+16
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* stagebase: create profile link for ROOT tooDoug Freed2024-07-301-0/+11
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* stagebase: clean up config_profile_linkDoug Freed2024-07-301-6/+11
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* targets: improve path concatenationAndreas K. Hüttel2024-07-291-1/+1
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* targets: Mount repos also under $ROOT for stage1 buildsAndreas K. Hüttel2024-07-291-1/+14
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Remove CHOST setting for s390x (mostly for testing, but also unnecessary)Andreas K. Hüttel2024-07-291-1/+0
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Add keep_repos spec option to keep config for specified repos4.0-rc2James Le Cuirot2024-06-286-0/+53
| | | | | | | | All repo configuration is currently removed unconditionally. Gentoo itself doesn't really need this, but derivatives probably do. Closes: https://github.com/gentoo/catalyst/pull/16 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* stagebase: tweak bindist comment emitted into make.confSam James2024-06-091-1/+1
| | | | | | | 'USE' is more idiomatic. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Explicitly declare repo as main when it does not match the default mainJames Le Cuirot2024-06-071-0/+6
| | | | | | | | Otherwise Portage complains about PORTDIR not being set. Signed-off-by: James Le Cuirot <chewi@gentoo.org> Closes: https://github.com/gentoo/catalyst/pull/13 Signed-off-by: Matt Turner <mattst88@gentoo.org>
* create-iso.sh: add flag for BIOS boot quirkBen Kohler2024-06-071-1/+1
| | | | | | | | | Some BIOS implementations (or legacy CSM/compat on UEFI) may ignore a boot device if it doesn't have one MBR partition marked with the boot flag. This new argument to xorriso will add an extra dummy partition with that flag. It's been reported to help at least one user boot. Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* Fix loongarch -march to baselineAndreas K. Hüttel2024-05-281-1/+1
| | | | | | | With gcc-14, the default was quietly raised to include vector extensions. This makes our stages explode on first-gen hardware... Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* bootloader-setup.sh: apply livecd/bootargs to dist-kernel as wellBen Kohler2024-05-141-1/+1
| | | | Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* bootloader_setup.sh: pass cdroot for dist-kernels as wellBen Kohler2024-05-131-1/+1
| | | | | | This is actually used in livecd-tools later, independent of gk vs dracut Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* bootloader_setup.sh: fix LABEL for cached entry as wellBen Kohler2024-05-131-1/+1
| | | | Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* bootloader_setup.sh: don't assume LABEL=ISOIMAGEBen Kohler2024-05-131-2/+2
| | | | | | | | Catalyst now sets a proper volume ID via grub-mkrescue so assuming ISOIMAGE here is no longer correct. The volume ID will still need to be standard-compliant without spaces. Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* create-iso.sh: restore ISO volume IDBen Kohler2024-05-021-1/+1
| | | | | | | | When we switched to grub-mkrescue for the ISO generation, we lost the volume ID. Luckly grub-mkresce takes unrecognized parameters and passes them to xorriso so we can just add the xorriso -volid parameter here. Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* arch: Add rv32 musl definitionsAndreas K. Hüttel2024-04-061-0/+8
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Add setarch parameters for s390x => s390 buildsAndreas K. Hüttel2024-03-251-0/+4
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* arch: add new x86.i686-ssemath subprofilematoro2024-03-201-0/+3
| | | | | | | | | | | | | | | | | | | | As mentioned on the mailing list, x86 arch testing needs to be performed using SSE registers for floating-point math instead of the 387 FPU. This is a subprofile which provides a generic i686 target with SSE2 and `-mfpmath=sse`. The use is not just limited to arch testing however as this is a useful platform for getting maximum performance on late-gen chips. Per gcc: > The resulting code should be considerably faster in the majority of cases and avoid the numerical instability problems of 387 code, but may break some existing code that expects temporaries to be 80 bits. Of course modern code has quite the opposite problem, where it does not expect floating-point variables to be 80 bits. Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk> Closes: https://github.com/gentoo/catalyst/pull/12 Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* arch: remove x86.pentium-m, x86.pentium-4, x86.prescott subprofilesMatoro Mahri2024-03-201-12/+0
| | | | | Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk> Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* avoid chrooting and running the $PATH to bash from outside the chrootEli Schwartz2024-03-031-2/+3
| | | | | | | | | | | | | | The API filename for bash is /bin/bash and that is where it is guaranteed to be. On merged-usr systems, `shutil.which('bash')` will search PATH and maybe find /usr/bin/bash first, since it is resolved as a symlink, but that path will then fail in the chroot if the chroot is not merged-usr. Even on merged-usr systems, app-shells/bash always, always, always installs to /bin/bash and lets portage handle the symlink. Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* livecd/files/README.txt: adjust nox -> noguiBen Kohler2024-02-271-2/+2
| | | | | | Bug: https://bugs.gentoo.org/853127 Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* arch: Do not set CHOST and *FLAGS for generic x86.x86 subarch4.0-rc1Andreas K. Hüttel2024-01-211-2/+0
| | | | | | This way both can be picked up from the profile Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* kmerge.sh: don't remove the /usr/src/linux symlinkBen Kohler2024-01-081-1/+2
| | | | | | | | | | | Removing this symlink causes failures for any specs building more than one kernel, since we no longer do a full unmerge/remerge of kernel sources between kernel builds. We probably need to set USE=symlink for the kernel sources so that specs building 2 kernels from different sets of sources do not fail. Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* base/stagebase.py: Do not touch subarch if chost is setAndreas K. Hüttel2023-12-241-4/+1
| | | | | | | | | | | | | | | | | | 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>
* arch: Alternative approach. Rely on profile for m68k musl CHOST...Andreas K. Hüttel2023-12-061-5/+0
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* arch: Add new m68k musl definition for 23.0 profilesAndreas K. Hüttel2023-12-061-0/+4
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* catalyst.conf: change dangerous port_logdir exampleBen Kohler2023-11-101-2/+2
| | | | | | | | If this existing example was uncommented, it would trigger a cleanup of any files older than 7d in the currently running stage build dir, causing catastrophic failure. Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* Turn binrepos.conf into a folder with gentoobinhost.conf insideAndreas K. Hüttel2023-09-051-4/+4
| | | | | Closes: https://bugs.gentoo.org/913660 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Compile external modules with dist-kernelAzamat H. Hackimov2023-09-031-1/+6
| | | | | | | | If boot/kernel/${kernel}/packages is defined, force build external module packages for dist-kernels. Also don't unmerge kernel after merging as it may needed for building process, just deselect. Later it will be unmerged by depclean process. Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Implementing distkernel installationAzamat H. Hackimov2023-08-225-22/+116
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Add configuration options and code to write out binrepos.confAndreas K. Hüttel2023-08-113-0/+40
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Add m68k musl definitionAndreas K. Hüttel2023-07-201-0/+3
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* stagebase: Fix and improve port_logdir config optionAndreas K. Hüttel2023-07-012-4/+5
| | | | | | | NOTE: The cleaning of log files does not work yet (and probably never did). Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* stagebase: Add blank linkes in make.conf (e.g. before CHOST block)Andreas K. Hüttel2023-07-011-2/+2
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Add -msoft-float to *FLAGS for mips soft-float definitionsAndreas K. Hüttel2023-06-201-8/+8
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Add mips(el)2 o32 and mips(el)3 n32 softfloat subarchesAndreas K. Hüttel2023-05-281-0/+16
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* stagebase.py: switch to LC_MESSAGES=C.utf8 in make.confBen Kohler2023-05-101-1/+1
| | | | Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* livecd-stage2/controller.sh: remove stray slash from universal cleanupBen Kohler2023-03-311-1/+1
| | | | Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* remove obsolete root=/dev/ram0 init=/linuxrc from a few more placesBen Kohler2023-03-312-5/+5
| | | | Signed-off-by: Ben Kohler <bkohler@gentoo.org>