This commit is contained in:
Jeremy Soller 2025-11-01 14:22:21 -06:00
commit 9b65670326
No known key found for this signature in database
GPG Key ID: 670FDFB5428E05CA
7 changed files with 8 additions and 99 deletions

View File

@ -54,8 +54,6 @@ pull:
git submodule sync --recursive
git submodule update --recursive --init
fetch: $(BUILD)/fetch.tag
repo: $(BUILD)/repo.tag
# Podman build recipes and vars

@ -1 +1 @@
Subproject commit 97dd77918e7027c6c57d537b7eb732bbd22739af
Subproject commit bb9fa4ec7c324b2e1cd82a7679c6f3d8dfd5f86f

View File

@ -119,11 +119,16 @@ ROOT=$(CURDIR)
export RUST_COMPILER_RT_ROOT=$(ROOT)/rust/src/llvm-project/compiler-rt
## Userspace variables
export TARGET=$(ARCH)-unknown-redox
ifeq ($(ARCH),riscv64gc)
export TARGET=riscv64gc-unknown-redox
export GNU_TARGET=riscv64-unknown-redox
else ifeq ($(ARCH),i686)
# FIXME change TARGET to i586 before the next prefix rebuild
export TARGET=i686-unknown-redox
export GNU_TARGET=i686-unknown-redox
else
export GNU_TARGET=$(TARGET)
export TARGET=$(ARCH)-unknown-redox
export GNU_TARGET=$(ARCH)-unknown-redox
endif
BUILD=build/$(ARCH)/$(CONFIG_NAME)
MOUNT_DIR=$(BUILD)/filesystem

View File

@ -241,7 +241,6 @@ else
export PATH="$(PREFIX_FREESTANDING_PATH):$$PATH" && \
export CARGO="env -u CARGO -u RUSTUP_TOOLCHAIN cargo" && \
export CC_$(subst -,_,$(TARGET))="$(GNU_TARGET)-gcc -isystem $(ROOT)/$@.partial/$(GNU_TARGET)/include" && \
export RUST_TARGET_PATH="$(ROOT)/targets" && \
$(MAKE) clean && \
$(MAKE) -j 1 all && \
$(MAKE) -j 1 install DESTDIR="$(ROOT)/$@.partial/$(GNU_TARGET)"

View File

@ -1,3 +0,0 @@
This contains a target definition for targets that Redox supports but have not
yet been added to the upstream rust, specifically for compiling relibc in
freestanding mode.

View File

@ -1,49 +0,0 @@
{
"arch": "x86",
"cpu": "pentiumpro",
"crt-objects-fallback": "false",
"crt-static-allows-dylibs": true,
"crt-static-default": true,
"crt-static-respected": true,
"data-layout": "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i128:128-f64:32:64-f80:32-n8:16:32-S128",
"dynamic-linking": true,
"env": "relibc",
"has-rpath": true,
"has-thread-local": true,
"late-link-args": {
"gnu-cc": [
"-lgcc"
],
"gnu-lld-cc": [
"-lgcc"
]
},
"linker-flavor": "gnu-cc",
"llvm-target": "i686-unknown-redox",
"max-atomic-width": 64,
"metadata": {
"description": null,
"host_tools": null,
"std": null,
"tier": null
},
"os": "redox",
"plt-by-default": false,
"position-independent-executables": true,
"pre-link-args": {
"gnu-cc": [
"-m32"
],
"gnu-lld-cc": [
"-m32"
]
},
"relro-level": "full",
"stack-probes": {
"kind": "call"
},
"target-family": [
"unix"
],
"target-pointer-width": 32
}

View File

@ -1,41 +0,0 @@
{
"arch": "riscv64",
"code-model": "medium",
"cpu": "generic-rv64",
"crt-objects-fallback": "false",
"crt-static-allows-dylibs": true,
"crt-static-default": true,
"crt-static-respected": true,
"data-layout": "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128",
"dynamic-linking": true,
"env": "relibc",
"features": "+m,+a,+f,+d,+c",
"has-rpath": true,
"has-thread-local": true,
"late-link-args": {
"gnu-cc": [
"-lgcc"
],
"gnu-lld-cc": [
"-lgcc"
]
},
"linker-flavor": "gnu-cc",
"llvm-abiname": "lp64d",
"llvm-target": "riscv64-unknown-redox",
"max-atomic-width": 64,
"metadata": {
"description": null,
"host_tools": null,
"std": null,
"tier": null
},
"os": "redox",
"plt-by-default": false,
"position-independent-executables": true,
"relro-level": "full",
"target-family": [
"unix"
],
"target-pointer-width": 64
}