[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Make mes build tcc in RISC-V
From: |
Ekaitz Zarraga |
Subject: |
Make mes build tcc in RISC-V |
Date: |
Thu, 02 Nov 2023 12:21:38 +0000 |
Hi,
I managed to make Mes build the bootstrappable TCC using the same approach
guix's commencement module has.
The patch is not complete, neither is it good, but it has some guidance on what
it should be done. I'm not sure what's the best way to merge this as I don't
understand totally the structure of the build-aux scripts.
1) We need to add empty crt files for riscv as the build scripts expect them to
exist. (this can be a separate commit)
2) We need to build the source lib specifically for tcc, as it doesn't have
support for extended assembly and we had to patch all that out. (see
bootstrap.sh.in)
3) build-source-lib.sh needs some special treatment because it doesn't build
separate libraries but just libc+gnu.c, which we may need in the future for gcc
but with the -gcc version of the code (see point 2).
4) We also need to install tcc-lib (see install.sh.in) generated in
bootstrap.sh.in.
5) TODO: there are some other scripts that don't take part in the bootstrapping
process described by the commencement module (configure.sh + bootstrap.sh +
install.sh) I didn't add support to them...
I hope this is clear enough to choose what should be added in the final release
and what shouldn't.
There are other comments in the patch that worth taking a look to.
Best,
Ekaitz
0001-BOOTSTRAPPING-FOR-RISC-V-64.patch
Description: Text Data
- Make mes build tcc in RISC-V,
Ekaitz Zarraga <=