Use relibc source from cookbook

This commit is contained in:
Jeremy Soller 2025-11-20 12:30:56 -07:00
parent 5162e660e8
commit 9c1ea2dc23
No known key found for this signature in database
GPG Key ID: 670FDFB5428E05CA
3 changed files with 6 additions and 7 deletions

4
.gitmodules vendored
View File

@ -7,7 +7,3 @@
url = https://gitlab.redox-os.org/redox-os/rust.git
branch = redox-2025-01-12
update = none
[submodule "relibc"]
path = relibc
url = https://gitlab.redox-os.org/redox-os/relibc.git
branch = master

View File

@ -4,6 +4,7 @@ PREFIX=prefix/$(TARGET)
PREFIX_INSTALL=$(PREFIX)/sysroot/
PREFIX_PATH=$(ROOT)/$(PREFIX_INSTALL)/bin
RELIBC_SOURCE=cookbook/recipes/core/relibc/source
BINUTILS_BRANCH=redox-2.43.1
GCC_BRANCH=redox-13.2.0
@ -35,7 +36,10 @@ PREFIX_STRIP=\
-exec strip --strip-unneeded {} ';' \
2> /dev/null
$(PREFIX)/relibc: $(ROOT)/relibc
$(RELIBC_SOURCE): $(FSTOOLS_TAG)
cd ./cookbook && ./target/release/repo fetch relibc
$(PREFIX)/relibc: $(RELIBC_SOURCE)
mkdir -p "$(@D)"
rm -rf "$@.partial" "$@"
cp -r "$^" "$@.partial"
@ -235,7 +239,7 @@ else
mv "$@.partial" "$@"
endif
$(PREFIX)/relibc-freestanding: $(ROOT)/relibc
$(PREFIX)/relibc-freestanding: $(RELIBC_SOURCE)
mkdir -p "$(@D)"
rm -rf "$@.partial" "$@"
cp -r "$^" "$@.partial"

1
relibc

@ -1 +0,0 @@
Subproject commit 01f01d3bd49df5af52e0beaff168795a3d70ec28