Commit graph

77 commits

Author SHA1 Message Date
Andrey Turkin 03633046cc Riscv64gc support in the build scripts
This architecture is different from x86/aarch because its rust triplet (riscv64gc-...) differs from gcc/llvm/binutils triplet (more general riscv64-...). Therefore the build scripts have to bridge that mismatch.

This introduces new build-time environment variable GNU_TARGET which corresponds to a target used by C world utilities whereas existing TARGET now describes rust target.
2024-09-30 10:28:37 +03:00
Ribbon 56b3efa7b6 Enable Podman by default 2024-09-20 21:00:16 +00:00
Ron Williams f51dee2ea1 Make installer compile on host, list_packages compile in Podman when PODMAN_BUILD=1 2024-08-17 23:59:37 +00:00
Ribbon 49102f6332 Add explanation comments on the build system files 2024-07-09 12:58:07 +00:00
Jeremy Soller f474b4cfb9
Disable binary prefix when not building on x86_64 Linux 2024-05-06 11:35:23 -06:00
bjorn3 7043e9e932 Prevent the build cache for the installer getting clobbered
Previously it was getting built by two different toolchains (nightly
from rustup and the relibc prefix) Also some env vars differed between
both invocations causing blake3 and sodiumoxide to get rebuilt.
2024-03-17 18:54:24 +01:00
Jeremy Soller 17e3c17c73
Do not use prefix rustc to determine host target 2024-01-10 11:08:31 -07:00
bjorn3 5ce30e6da6 Somewhat simplify config.mk
* nproc exists on FreeBSD too
* REDOX_MAKE is generally make, so use that as default with per-OS
  override if necessary.
* HOST_TARGET can be fetched directly from rustc.
2024-01-08 19:24:14 +01:00
bjorn3 cf04f50d86 Use sparse files for the generated disk images on all OSes
Rather than just on macOS. This can save quite a bit of space depending
on the amount of free space on the root filesystem of the disk image.
2024-01-08 19:09:51 +01:00
Jeremy Soller 0427420717
Use installer to resolve filesystem size 2024-01-04 12:22:43 -07:00
Ron Williams 6258becc3c add nonstop, uc and ucf to build, plus scripts include-recipes.sh and show-package.sh 2024-01-03 19:15:30 +00:00
Ivan Tan 097c6876bf add raspi3b config 2023-12-17 10:16:42 +08:00
Ivan Tan 584e6fb548 aarch64: support building Redox for different motherboard. 2023-12-14 12:29:20 +00:00
Ron Williams 5ad0f9900a Update config.mk to support changed option name for REPO_BINARY=1 2023-11-05 12:56:28 +00:00
uuuvn 28268bf703
Add support for non-x86 hosts 2023-06-06 15:31:47 +00:00
Will Angenent 09eca87a41 Fix missing ftruncate on MacOS 2023-04-02 11:16:09 +01:00
Will Angenent 9463599948 Remove unnecessary sudo from MacOS umount 2023-04-02 11:16:09 +01:00
Will Angenent 7b41f437a0 Use -u when unsetting env for better portability.
Fixes the MacOS build.
2023-04-02 11:16:09 +01:00
Will Angenent b0feb1b423 Detect installed fusermount or fusermount3 binary 2023-03-21 03:02:07 +00:00
Ron Williams be957aa4d7 enable build from mixed source/binary packages 2023-03-09 23:30:33 -08:00
Ron Williams 374e37d5b9 Improve dependencies on build tools 2023-03-06 12:41:45 -08:00
Jeremy Soller 3c63648d19
Remove all references to xargo 2023-02-21 11:53:37 -07:00
Ron Williams aea97d0a11 Update podman and bootstrap for Neverball 2022-11-26 21:07:04 -08:00
Ron Williams f312f466f6 add config name to .img or .iso 2022-11-12 07:01:25 -07:00
Ron Williams 1772f78aa9 Add podman build 2022-11-11 15:23:08 -08:00
Jeremy Soller 9232e4282a
Build images in directory per arch, remove bochs 2022-11-10 12:06:24 -07:00
Jeremy Soller e21f066628
Move filesystem size to installer config 2022-10-17 08:02:13 -06:00
Jeremy Soller 939b650125
Build repository outside of installer 2022-09-12 07:51:13 -06:00
Jeremy Soller 47c0b7edad
Update to use installer to produce disk images with bootloader 2022-09-05 09:24:17 -06:00
Jeremy Soller fd45421a30 Fix disk creation on i686 2022-08-28 15:40:01 -06:00
Jeremy Soller 68c91c801f Support booting both BIOS and UEFI from the same image 2022-08-28 15:24:34 -06:00
Jeremy Soller 801f921c3d
Undo accidental setting of ARCH to i686 2022-08-26 17:44:53 -06:00
Jeremy Soller cf1695fba4 Update bootloader 2022-08-26 12:34:23 -06:00
Jeremy Soller 1f339004d6
Support distinct filesystem configs for each architecture 2022-08-26 11:26:05 -06:00
Jeremy Soller 15a79f5f84
List i686 as supported arch 2022-08-24 07:39:33 -06:00
Jeremy Soller 5cb8411166
Get QEMU to run UEFI aarch64 2022-07-29 12:13:32 -06:00
Jeremy Soller 80c192b5a8
Remove extra space from host arch 2022-07-26 13:01:08 -06:00
Jeremy Soller 3d41e23043
Ensure that rustc supports the host target correctly 2022-07-26 12:26:44 -06:00
Jeremy Soller 85d75b7681
Use HOST_CARGO variable for compiling binaries on the host 2022-07-26 12:06:12 -06:00
Jeremy Soller 5b0822f893
Move kernel to cookbook recipe 2022-07-24 09:02:48 -06:00
Jeremy Soller e844d3edab
Allow redoxfs mkfs flags to be set 2022-03-09 10:50:02 -07:00
Jeremy Soller 35cd0b2ab0
WIP changes for rust bootloader 2022-02-07 17:13:28 -07:00
Jeremy Soller 17bf88b390
Ensure that REDOXER_TOOLCHAIN is set for all makefile targets 2021-07-18 20:48:01 -06:00
4lDO2 97cab676c1
Update toolchain to nightly-2021-06-15. 2021-06-18 09:28:35 +02:00
Jeremy Soller f644c0d883
Use /sbin/parted to call parted. This might need to be improved with automatic detection of the parted location later 2021-01-21 15:49:22 -07:00
Jeremy Soller d32d94c796
Fix EFI variable, update CI to use 20.04 2020-12-24 15:30:01 -07:00
Robin Randhawa b9f43dd529 Switch kernel builds away from using xargo
Use cargo's 'build-std=core,alloc' instead.

Also: Cargo is now given the complete path to the target specific JSON file.
This forces the use of the JSON file (the file is silently ignored if
the target in question was built into the rust compiler).
2020-10-06 14:00:30 +01:00
Wren Turkal a930d6672e Add a file to hold a local make config.
This file can be used to set make variables to override defaults
without checking such changes into git. This is useful for settings
such as the filesystem size generated for qemu images.

Signed-off-by: Wren Turkal <wt@penguintechs.org>
2020-07-11 17:20:29 -07:00
Jeremy Soller 1e269d9fab
Add INSTALLER variable 2020-05-22 19:56:04 -06:00
Jeremy Soller 621066cb53
Remove PREFIX_RUSTC 2020-05-22 16:00:40 -06:00