mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-18 09:15:23 +01:00
Update mes to 0.27.1
This commit is contained in:
parent
bdc83ee451
commit
865b9aeae1
26 changed files with 54 additions and 44 deletions
7
steps/mes-0.27.1/files/config.h
Normal file
7
steps/mes-0.27.1/files/config.h
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
// SPDX-FileCopyrightText: 2020 fosslinux <fosslinux@aussies.space>
|
||||
// SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||
//
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#undef SYSTEM_LIBC
|
||||
#define MES_VERSION "0.27.1"
|
||||
13
steps/mes-0.27.1/mes-0.27.1.amd64.checksums
Normal file
13
steps/mes-0.27.1/mes-0.27.1.amd64.checksums
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
672f2d71836765c4a478017cdd3aa12d3d40da7ebe2dd80af9b53b516e9abfc1 /usr/bin/mes-m2
|
||||
20655e4ec935bdb63099eaf48e89b24010413a444cbcdc3f21a1cd12a5c62ddc /usr/bin/mescc.scm
|
||||
c66de1ba72b8019eee113271638e4e30543aa7d34f45c9cc751346dba0d8817c /usr/lib/x86_64-mes/crt1.s
|
||||
d0a80b94228deb99bda15244f0ed3736badd0632c78a3379195ba24a78f68a75 /usr/lib/x86_64-mes/crt1.o
|
||||
d0f691ad803ed00530297456086e8b820cda4faec3e7dbde767b4558e71a1b47 /usr/lib/x86_64-mes/x86_64.M1
|
||||
28d887a7d5ec5d4f2a147911a74a989ae1062cdaad935bc2640fd63fe2958ab2 /usr/lib/x86_64-mes/libmescc.s
|
||||
0e42cdfc62f242c9a6ff29c056f36cbfb5a905a32f82f4e1aa8446b876395391 /usr/lib/x86_64-mes/libc+tcc.s
|
||||
cd6c08dc72c5f608f15e6a6c9bcf98b1f15d90a9cf26c608ac7d61af4c0d4eb8 /usr/lib/x86_64-mes/libc.s
|
||||
1d105ea8e36d72fced1daee118e5733cd628981a6eb03870ade7775e5ff40b6b /usr/lib/x86_64-mes/libmescc.a
|
||||
6627c572ccbf256c1878b045cad0d18503afc535046141610767c4092885a8b3 /usr/lib/x86_64-mes/libc+tcc.a
|
||||
bfaf0e3d603f0d17c5155c5c53f393cac4bcfa56efca54ae5844a3e465e903b6 /usr/lib/x86_64-mes/libc.a
|
||||
48c57492e80a99bf16eeba55e242b60b9e759992482b651d1b512f07ddd9a65a /usr/lib/linux/x86_64-mes/elf64-header.hex2
|
||||
94c796cb34a6e581491d0cf609e7fad01715c84a17b8b2017178a36568a80e48 /usr/lib/linux/x86_64-mes/elf64-footer-single-main.hex2
|
||||
13
steps/mes-0.27.1/mes-0.27.1.riscv64.checksums
Normal file
13
steps/mes-0.27.1/mes-0.27.1.riscv64.checksums
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
132066ae1e8fc55c3bd256623d918b86a6dcec2bc6379e2f273f2733fb7f57be /usr/bin/mes-m2
|
||||
11f33b019f78c90fcbd2385ebb037ee4e36984117799207497c3c83e8d537d1d /usr/bin/mescc.scm
|
||||
50441b03b915bd51fb811749901a56b3c42186b45f7f466dbf23337eafad520c /usr/lib/riscv64-mes/crt1.s
|
||||
a96a0a8f1b2dd1e5a7dad8264c92b5448be7d29aa7706d40d67be978d5ddc305 /usr/lib/riscv64-mes/crt1.o
|
||||
1511e99da81caa02490078c7a880ac97d439b6fec99cf846dc2044468e2444b8 /usr/lib/riscv64-mes/riscv64.M1
|
||||
ea93d84ef2e599b27b463ba1218836d4abf38873f6a67e5412e8f32096c954e5 /usr/lib/riscv64-mes/libmescc.s
|
||||
b448e95afd22a07fea99b0b4a21ae5ef6c3e22d9f20e6b6a8c81fb9daeb3e5ee /usr/lib/riscv64-mes/libc+tcc.s
|
||||
31e81fc37dc0c4f9ee0feeba011d29dea1b1a8e84a766c34d79682174c52e281 /usr/lib/riscv64-mes/libc.s
|
||||
0edca3696ee26a869e31ed55f43ab084a4063f8dc62438c1902d04b17de2e6ab /usr/lib/riscv64-mes/libmescc.a
|
||||
e1822748703bf89714f876c2527db8c020b3fb44ec64ff8d93ed55a1922dcda9 /usr/lib/riscv64-mes/libc+tcc.a
|
||||
d7be5dac4a1d11055f830a65d3373ddfcf7c6f1f6c12cec0e47501203fa10bc6 /usr/lib/riscv64-mes/libc.a
|
||||
22ad5f7b6e5ea07b275619956bddd913b061d6ad492a442e4b6b2f28898e50ae /usr/lib/linux/riscv64-mes/elf64-header.hex2
|
||||
94c796cb34a6e581491d0cf609e7fad01715c84a17b8b2017178a36568a80e48 /usr/lib/linux/riscv64-mes/elf64-footer-single-main.hex2
|
||||
13
steps/mes-0.27.1/mes-0.27.1.x86.checksums
Normal file
13
steps/mes-0.27.1/mes-0.27.1.x86.checksums
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
62895fcf68b21961e018c797b3144fc86f9dbd5a535776e9e68a01b3fd33de08 /usr/bin/mes-m2
|
||||
761fe4fbbee5bfd45506ea8dbd0aeecfe8855159bd794e07fca1988109510170 /usr/bin/mescc.scm
|
||||
234c264965116a24583dd569050adc766d7cc2da83b1db38085210f26031b70c /usr/lib/x86-mes/crt1.s
|
||||
494f184a87175abc485a898c250c3831b2b5dcf5aead46591e00b39d1c5529fc /usr/lib/x86-mes/crt1.o
|
||||
8afe05c3e1e8848b6f3e8de751524de5f69818eb8524659827918e3fddde3e1e /usr/lib/x86-mes/x86.M1
|
||||
06c6e43ab7f09e7779df786c57ba5b8775468ae8a47a0426278e9adc52d675c8 /usr/lib/x86-mes/libmescc.s
|
||||
ef79bc2c59768c172ff4806c6eff9c5e1373d5660c51b33ee4a513f9dda726bd /usr/lib/x86-mes/libc+tcc.s
|
||||
69050424c9bd83cea8d9b878d5a7cbca01fd4a43b3722a34145843d80f4c8e40 /usr/lib/x86-mes/libc.s
|
||||
bfb362848fc83a8a58421636a51b1514d1915b58a5a2354c703dfec64c899cad /usr/lib/x86-mes/libmescc.a
|
||||
b00e8579329bf011bfccebaeb96c1fedb160a38cad63fd628d6b9110b6fb268a /usr/lib/x86-mes/libc+tcc.a
|
||||
b31c6a0fe5feb53d2d8ba1989c936fd94f43967b8e655ae1c36392723dc8ae3d /usr/lib/x86-mes/libc.a
|
||||
82cac4353375a52efecc6fda1f8b37373988fe41ed197b63d8e906321b105d77 /usr/lib/linux/x86-mes/elf32-header.hex2
|
||||
f9873d9aab12e70f24d97f8319e17a1e698ca60779ae9a6ab3ede648cd60fc61 /usr/lib/linux/x86-mes/elf32-footer-single-main.hex2
|
||||
398
steps/mes-0.27.1/pass1.kaem
Executable file
398
steps/mes-0.27.1/pass1.kaem
Executable file
|
|
@ -0,0 +1,398 @@
|
|||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2020-2023 Andrius Štikonas <andrius@stikonas.eu>
|
||||
# SPDX-FileCopyrightText: 2020-2022 fosslinux <fosslinux@aussies.space>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
set -ex
|
||||
|
||||
# Variables
|
||||
MES_ARENA=20000000
|
||||
MES_MAX_ARENA=20000000
|
||||
MES_STACK=6000000
|
||||
MES=${BINDIR}/mes-m2
|
||||
LIBDIR=${MES_PREFIX}/lib
|
||||
|
||||
if match ${ARCH} x86; then
|
||||
MES_ARCH=x86
|
||||
ARCH_BITS=32
|
||||
fi
|
||||
if match ${ARCH} amd64; then
|
||||
MES_ARCH=x86_64
|
||||
ARCH_BITS=64
|
||||
fi
|
||||
if match ${ARCH} riscv64; then
|
||||
MES_ARCH=riscv64
|
||||
ARCH_BITS=64
|
||||
fi
|
||||
|
||||
# Check tarball checksums
|
||||
checksum-transcriber sources
|
||||
sha256sum -c sources.SHA256SUM
|
||||
|
||||
# Unpack
|
||||
mkdir build
|
||||
cd build
|
||||
ungz --file ${DISTFILES}/${NYACC_PKG}-lb1.tar.gz --output ${NYACC_PKG}.tar
|
||||
ungz --file ${DISTFILES}/${MES_PKG}.tar.gz --output ${MES_PKG}.tar
|
||||
untar --file ${NYACC_PKG}.tar
|
||||
untar --non-strict --file ${MES_PKG}.tar # ignore symlinks
|
||||
mes_run=${MES_PREFIX}/kaem.run
|
||||
replace --file ${mes_run} --output ${mes_run} --match-on 0x1000000 --replace-with 0x8048000
|
||||
|
||||
rm ${NYACC_PKG}.tar ${MES_PKG}.tar
|
||||
|
||||
cp ../files/config.h ${MES_PREFIX}/include/mes
|
||||
|
||||
# This patch was upstreamed after mes 0.27.1
|
||||
simple-patch ${MES_PREFIX}/lib/linux/wait4.c \
|
||||
../simple-patches/wait4.before ../simple-patches/wait4.after
|
||||
|
||||
cd ${MES_PREFIX}
|
||||
mkdir include/arch
|
||||
cp include/linux/${MES_ARCH}/kernel-stat.h include/arch/kernel-stat.h
|
||||
cp include/linux/${MES_ARCH}/signal.h include/arch/signal.h
|
||||
cp include/linux/${MES_ARCH}/syscall.h include/arch/syscall.h
|
||||
|
||||
# Remove pregenerated files
|
||||
rm mes/module/mes/psyntax.pp mes/module/mes/psyntax.pp.header
|
||||
|
||||
# These files are symlinked in the repo
|
||||
cp mes/module/srfi/srfi-9-struct.mes mes/module/srfi/srfi-9.mes
|
||||
cp mes/module/srfi/srfi-9/gnu-struct.mes mes/module/srfi/srfi-9/gnu.mes
|
||||
|
||||
# Build mes-m2
|
||||
kaem --verbose --strict --file kaem.${MES_ARCH}
|
||||
cp bin/mes-m2 ${BINDIR}/mes-m2
|
||||
chmod 755 ${BINDIR}/mes-m2
|
||||
|
||||
# Rebuild pregenerated files in nyacc
|
||||
cd ../${NYACC_PKG}
|
||||
rm module/nyacc/lang/c99/mach.d/c99-act.scm module/nyacc/lang/c99/mach.d/c99-tab.scm \
|
||||
module/nyacc/lang/c99/mach.d/c99cx-act.scm module/nyacc/lang/c99/mach.d/c99cx-tab.scm \
|
||||
module/nyacc/lang/c99/mach.d/c99x-act.scm module/nyacc/lang/c99/mach.d/c99x-tab.scm \
|
||||
module/nyacc/lang/c99/mach.d/cpp-act.scm module/nyacc/lang/c99/mach.d/cpp-tab.scm
|
||||
${MES} -L module gen-cpp-files.scm
|
||||
# More RAM for this one!
|
||||
MES_ARENA=32000000
|
||||
${MES} -L module gen-c99-files.scm
|
||||
MES_ARENA=20000000
|
||||
${MES} -L module gen-c99cx-files.scm
|
||||
cd ../${MES_PKG}
|
||||
|
||||
# Create mescc.scm
|
||||
mescc_in=scripts/mescc.scm.in
|
||||
replace --file ${mescc_in} --output ${mescc_in} --match-on @prefix@ --replace-with ${PREFIX}
|
||||
replace --file ${mescc_in} --output ${mescc_in} --match-on @VERSION@ --replace-with ${MES_VERSION}
|
||||
replace --file ${mescc_in} --output ${mescc_in} --match-on @mes_cpu@ --replace-with ${MES_ARCH}
|
||||
replace --file ${mescc_in} --output ${mescc_in} --match-on @mes_kernel@ --replace-with linux
|
||||
|
||||
mescc_scm=${BINDIR}/mescc.scm
|
||||
cp ${mescc_in} ${mescc_scm}
|
||||
chmod 755 ${mescc_scm}
|
||||
|
||||
# Recompile Mes and Mes C library using mes-m2 bootstrapped Mes
|
||||
|
||||
alias mescc="${MES} -e main ${BINDIR}/mescc.scm -D HAVE_CONFIG_H=1 -I include -I include/linux/${MES_ARCH} -c"
|
||||
|
||||
# Start with crt1.o
|
||||
mescc lib/linux/${MES_ARCH}-mes-mescc/crt1.c -o lib/${MES_ARCH}-mes/crt1.o
|
||||
|
||||
# Now for libc-mini.a
|
||||
catm libc-mini.c \
|
||||
lib/mes/__init_io.c \
|
||||
lib/mes/eputs.c \
|
||||
lib/mes/oputs.c \
|
||||
lib/mes/globals.c \
|
||||
lib/stdlib/exit.c \
|
||||
lib/linux/${MES_ARCH}-mes-mescc/_exit.c \
|
||||
lib/linux/${MES_ARCH}-mes-mescc/_write.c \
|
||||
lib/stdlib/puts.c \
|
||||
lib/string/strlen.c
|
||||
mescc libc-mini.c
|
||||
cp libc-mini.o ${LIBDIR}/${MES_ARCH}-mes/libc-mini.a
|
||||
cp libc-mini.s ${LIBDIR}/${MES_ARCH}-mes/libc-mini.s
|
||||
|
||||
# libmescc.a
|
||||
catm libmescc.c \
|
||||
lib/mes/globals.c \
|
||||
lib/linux/${MES_ARCH}-mes-mescc/syscall-internal.c
|
||||
mescc libmescc.c
|
||||
cp libmescc.o ${LIBDIR}/${MES_ARCH}-mes/libmescc.a
|
||||
cp libmescc.s ${LIBDIR}/${MES_ARCH}-mes/libmescc.s
|
||||
|
||||
# libc.a
|
||||
catm libc.c \
|
||||
lib/ctype/isnumber.c \
|
||||
lib/mes/abtol.c \
|
||||
lib/mes/cast.c \
|
||||
lib/mes/eputc.c \
|
||||
lib/mes/fdgetc.c \
|
||||
lib/mes/fdputc.c \
|
||||
lib/mes/fdputs.c \
|
||||
lib/mes/fdungetc.c \
|
||||
lib/mes/itoa.c \
|
||||
lib/mes/ltoa.c \
|
||||
lib/mes/ltoab.c \
|
||||
lib/mes/mes_open.c \
|
||||
lib/mes/ntoab.c \
|
||||
lib/mes/oputc.c \
|
||||
lib/mes/ultoa.c \
|
||||
lib/mes/utoa.c \
|
||||
lib/ctype/isdigit.c \
|
||||
lib/ctype/isspace.c \
|
||||
lib/ctype/isxdigit.c \
|
||||
lib/mes/assert_msg.c \
|
||||
lib/posix/write.c \
|
||||
lib/stdlib/atoi.c \
|
||||
lib/linux/lseek.c \
|
||||
lib/mes/__assert_fail.c \
|
||||
lib/mes/__buffered_read.c \
|
||||
lib/mes/__mes_debug.c \
|
||||
lib/posix/execv.c \
|
||||
lib/posix/getcwd.c \
|
||||
lib/posix/getenv.c \
|
||||
lib/posix/isatty.c \
|
||||
lib/posix/open.c \
|
||||
lib/posix/buffered-read.c \
|
||||
lib/posix/setenv.c \
|
||||
lib/posix/wait.c \
|
||||
lib/dirent/closedir.c \
|
||||
lib/dirent/opendir.c \
|
||||
lib/stdio/fgetc.c \
|
||||
lib/stdio/fputc.c \
|
||||
lib/stdio/fputs.c \
|
||||
lib/stdio/getc.c \
|
||||
lib/stdio/getchar.c \
|
||||
lib/stdio/putc.c \
|
||||
lib/stdio/putchar.c \
|
||||
lib/stdio/ungetc.c \
|
||||
lib/stdlib/calloc.c \
|
||||
lib/stdlib/free.c \
|
||||
lib/stdlib/realloc.c \
|
||||
lib/string/memchr.c \
|
||||
lib/string/memcmp.c \
|
||||
lib/string/memcpy.c \
|
||||
lib/string/memmove.c \
|
||||
lib/string/memset.c \
|
||||
lib/string/strcmp.c \
|
||||
lib/string/strcpy.c \
|
||||
lib/string/strncmp.c \
|
||||
lib/posix/raise.c \
|
||||
lib/linux/access.c \
|
||||
lib/linux/brk.c \
|
||||
lib/linux/chdir.c \
|
||||
lib/linux/chmod.c \
|
||||
lib/linux/clock_gettime.c \
|
||||
lib/linux/dup.c \
|
||||
lib/linux/dup2.c \
|
||||
lib/linux/execve.c \
|
||||
lib/linux/fork.c \
|
||||
lib/linux/fsync.c \
|
||||
lib/linux/_getcwd.c \
|
||||
lib/linux/gettimeofday.c \
|
||||
lib/linux/ioctl3.c \
|
||||
lib/linux/malloc.c \
|
||||
lib/linux/_open3.c \
|
||||
lib/linux/_read.c \
|
||||
lib/linux/readdir.c \
|
||||
lib/linux/rename.c \
|
||||
lib/linux/time.c \
|
||||
lib/linux/umask.c \
|
||||
lib/linux/uname.c \
|
||||
lib/linux/unlink.c \
|
||||
lib/linux/utimensat.c \
|
||||
lib/linux/wait4.c \
|
||||
lib/linux/waitpid.c \
|
||||
lib/linux/${MES_ARCH}-mes-mescc/syscall.c \
|
||||
lib/linux/getpid.c \
|
||||
lib/linux/kill.c \
|
||||
lib/linux/pipe.c \
|
||||
lib/linux/stat.c \
|
||||
lib/linux/lstat.c \
|
||||
lib/linux/mkdir.c \
|
||||
lib/linux/rmdir.c \
|
||||
lib/linux/link.c \
|
||||
lib/linux/symlink.c \
|
||||
lib/linux/close.c \
|
||||
lib/linux/nanosleep.c \
|
||||
lib/linux/fcntl.c \
|
||||
lib/linux/fstat.c \
|
||||
lib/linux/getdents.c
|
||||
mescc libc.c
|
||||
catm ${LIBDIR}/${MES_ARCH}-mes/libc.a ${LIBDIR}/${MES_ARCH}-mes/libc-mini.a libc.o
|
||||
catm ${LIBDIR}/${MES_ARCH}-mes/libc.s ${LIBDIR}/${MES_ARCH}-mes/libc-mini.s libc.s
|
||||
|
||||
# libc+tcc.a
|
||||
catm libc+tcc.c \
|
||||
lib/ctype/islower.c \
|
||||
lib/ctype/isupper.c \
|
||||
lib/ctype/tolower.c \
|
||||
lib/ctype/toupper.c \
|
||||
lib/mes/abtod.c \
|
||||
lib/mes/dtoab.c \
|
||||
lib/mes/search-path.c \
|
||||
lib/posix/execvp.c \
|
||||
lib/stdio/fclose.c \
|
||||
lib/stdio/fdopen.c \
|
||||
lib/stdio/ferror.c \
|
||||
lib/stdio/fflush.c \
|
||||
lib/stdio/fopen.c \
|
||||
lib/stdio/fprintf.c \
|
||||
lib/stdio/fread.c \
|
||||
lib/stdio/fseek.c \
|
||||
lib/stdio/ftell.c \
|
||||
lib/stdio/fwrite.c \
|
||||
lib/stdio/printf.c \
|
||||
lib/stdio/remove.c \
|
||||
lib/stdio/snprintf.c \
|
||||
lib/stdio/sprintf.c \
|
||||
lib/stdio/sscanf.c \
|
||||
lib/stdio/vfprintf.c \
|
||||
lib/stdio/vprintf.c \
|
||||
lib/stdio/vsnprintf.c \
|
||||
lib/stdio/vsprintf.c \
|
||||
lib/stdio/vsscanf.c \
|
||||
lib/stdlib/abort.c \
|
||||
lib/stdlib/qsort.c \
|
||||
lib/stdlib/strtod.c \
|
||||
lib/stdlib/strtof.c \
|
||||
lib/stdlib/strtol.c \
|
||||
lib/stdlib/strtold.c \
|
||||
lib/stdlib/strtoll.c \
|
||||
lib/stdlib/strtoul.c \
|
||||
lib/stdlib/strtoull.c \
|
||||
lib/string/memmem.c \
|
||||
lib/string/strcat.c \
|
||||
lib/string/strchr.c \
|
||||
lib/string/strlwr.c \
|
||||
lib/string/strncpy.c \
|
||||
lib/string/strrchr.c \
|
||||
lib/string/strstr.c \
|
||||
lib/string/strupr.c \
|
||||
lib/stub/sigaction.c \
|
||||
lib/stub/ldexp.c \
|
||||
lib/stub/mprotect.c \
|
||||
lib/stub/localtime.c \
|
||||
lib/stub/sigemptyset.c \
|
||||
lib/${MES_ARCH}-mes-mescc/setjmp.c \
|
||||
lib/linux/close.c \
|
||||
lib/linux/rmdir.c \
|
||||
lib/linux/stat.c
|
||||
mescc libc+tcc.c
|
||||
catm ${LIBDIR}/${MES_ARCH}-mes/libc+tcc.a ${LIBDIR}/${MES_ARCH}-mes/libc.a libc+tcc.o
|
||||
catm ${LIBDIR}/${MES_ARCH}-mes/libc+tcc.s ${LIBDIR}/${MES_ARCH}-mes/libc.s libc+tcc.s
|
||||
|
||||
# Make directories
|
||||
mkdir ${PREFIX}/lib/linux ${INCDIR}/mes ${INCDIR}/sys ${INCDIR}/linux ${INCDIR}/arch
|
||||
mkdir ${PREFIX}/lib/${MES_ARCH}-mes ${PREFIX}/lib/linux/${MES_ARCH}-mes ${INCDIR}/linux/${MES_ARCH}
|
||||
|
||||
# Install libraries
|
||||
cp ${LIBDIR}/${MES_ARCH}-mes/libc.a ${PREFIX}/lib/${MES_ARCH}-mes/
|
||||
cp ${LIBDIR}/${MES_ARCH}-mes/libc+tcc.a ${PREFIX}/lib/${MES_ARCH}-mes/
|
||||
cp ${LIBDIR}/${MES_ARCH}-mes/libmescc.a ${PREFIX}/lib/${MES_ARCH}-mes/
|
||||
cp ${LIBDIR}/${MES_ARCH}-mes/libc.s ${PREFIX}/lib/${MES_ARCH}-mes/
|
||||
cp ${LIBDIR}/${MES_ARCH}-mes/libc+tcc.s ${PREFIX}/lib/${MES_ARCH}-mes/
|
||||
cp ${LIBDIR}/${MES_ARCH}-mes/libmescc.s ${PREFIX}/lib/${MES_ARCH}-mes/
|
||||
cp ${LIBDIR}/${MES_ARCH}-mes/${MES_ARCH}.M1 ${PREFIX}/lib/${MES_ARCH}-mes/
|
||||
cp ${LIBDIR}/${MES_ARCH}-mes/crt1.o ${PREFIX}/lib/${MES_ARCH}-mes/
|
||||
cp ${LIBDIR}/${MES_ARCH}-mes/crt1.s ${PREFIX}/lib/${MES_ARCH}-mes/
|
||||
cp ${LIBDIR}/linux/${MES_ARCH}-mes/elf${ARCH_BITS}-footer-single-main.hex2 ${PREFIX}/lib/linux/${MES_ARCH}-mes/
|
||||
cp ${LIBDIR}/linux/${MES_ARCH}-mes/elf${ARCH_BITS}-header.hex2 ${PREFIX}/lib/linux/${MES_ARCH}-mes/
|
||||
|
||||
# Install header files
|
||||
cp include/alloca.h ${INCDIR}/alloca.h
|
||||
cp include/argz.h ${INCDIR}/argz.h
|
||||
cp include/ar.h ${INCDIR}/ar.h
|
||||
cp include/assert.h ${INCDIR}/assert.h
|
||||
cp include/ctype.h ${INCDIR}/ctype.h
|
||||
cp include/dirent.h ${INCDIR}/dirent.h
|
||||
cp include/dirstream.h ${INCDIR}/dirstream.h
|
||||
cp include/dlfcn.h ${INCDIR}/dlfcn.h
|
||||
cp include/endian.h ${INCDIR}/endian.h
|
||||
cp include/errno.h ${INCDIR}/errno.h
|
||||
cp include/fcntl.h ${INCDIR}/fcntl.h
|
||||
cp include/features.h ${INCDIR}/features.h
|
||||
cp include/float.h ${INCDIR}/float.h
|
||||
cp include/getopt.h ${INCDIR}/getopt.h
|
||||
cp include/grp.h ${INCDIR}/grp.h
|
||||
cp include/inttypes.h ${INCDIR}/inttypes.h
|
||||
cp include/libgen.h ${INCDIR}/libgen.h
|
||||
cp include/limits.h ${INCDIR}/limits.h
|
||||
cp include/locale.h ${INCDIR}/locale.h
|
||||
cp include/math.h ${INCDIR}/math.h
|
||||
cp include/memory.h ${INCDIR}/memory.h
|
||||
cp include/pwd.h ${INCDIR}/pwd.h
|
||||
cp include/setjmp.h ${INCDIR}/setjmp.h
|
||||
cp include/signal.h ${INCDIR}/signal.h
|
||||
cp include/stdarg.h ${INCDIR}/stdarg.h
|
||||
cp include/linux/${MES_ARCH}/signal.h ${INCDIR}/arch/signal.h
|
||||
cp include/stdbool.h ${INCDIR}/stdbool.h
|
||||
cp include/stddef.h ${INCDIR}/stddef.h
|
||||
cp include/stdint.h ${INCDIR}/stdint.h
|
||||
cp include/stdio.h ${INCDIR}/stdio.h
|
||||
cp include/stdlib.h ${INCDIR}/stdlib.h
|
||||
cp include/stdnoreturn.h ${INCDIR}/stdnoreturn.h
|
||||
cp include/string.h ${INCDIR}/string.h
|
||||
cp include/strings.h ${INCDIR}/strings.h
|
||||
cp include/termio.h ${INCDIR}/termio.h
|
||||
cp include/time.h ${INCDIR}/time.h
|
||||
cp include/unistd.h ${INCDIR}/unistd.h
|
||||
|
||||
cp include/arch/kernel-stat.h ${INCDIR}/arch/kernel-stat.h
|
||||
cp include/arch/syscall.h ${INCDIR}/arch/syscall.h
|
||||
|
||||
cp include/linux/syscall.h ${INCDIR}/linux/syscall.h
|
||||
cp include/linux/${MES_ARCH}/syscall.h ${INCDIR}/linux/${MES_ARCH}/syscall.h
|
||||
|
||||
cp include/mes/builtins.h ${INCDIR}/mes/builtins.h
|
||||
cp include/mes/cc.h ${INCDIR}/mes/cc.h
|
||||
catm ${INCDIR}/mes/config.h
|
||||
cp include/mes/constants.h ${INCDIR}/mes/constants.h
|
||||
cp include/mes/lib.h ${INCDIR}/mes/lib.h
|
||||
cp include/mes/lib-cc.h ${INCDIR}/mes/lib-cc.h
|
||||
cp include/mes/lib-mini.h ${INCDIR}/mes/lib-mini.h
|
||||
cp include/mes/mes.h ${INCDIR}/mes/mes.h
|
||||
cp include/mes/symbols.h ${INCDIR}/mes/symbols.h
|
||||
|
||||
cp include/sys/cdefs.h ${INCDIR}/sys/cdefs.h
|
||||
cp include/sys/dir.h ${INCDIR}/sys/dir.h
|
||||
cp include/sys/file.h ${INCDIR}/sys/file.h
|
||||
cp include/sys/ioctl.h ${INCDIR}/sys/ioctl.h
|
||||
cp include/sys/mman.h ${INCDIR}/sys/mman.h
|
||||
cp include/sys/param.h ${INCDIR}/sys/param.h
|
||||
cp include/sys/resource.h ${INCDIR}/sys/resource.h
|
||||
cp include/sys/select.h ${INCDIR}/sys/select.h
|
||||
cp include/sys/stat.h ${INCDIR}/sys/stat.h
|
||||
cp include/sys/timeb.h ${INCDIR}/sys/timeb.h
|
||||
cp include/sys/time.h ${INCDIR}/sys/time.h
|
||||
cp include/sys/times.h ${INCDIR}/sys/times.h
|
||||
cp include/sys/types.h ${INCDIR}/sys/types.h
|
||||
cp include/sys/ucontext.h ${INCDIR}/sys/ucontext.h
|
||||
cp include/sys/user.h ${INCDIR}/sys/user.h
|
||||
cp include/sys/wait.h ${INCDIR}/sys/wait.h
|
||||
|
||||
cd ../..
|
||||
|
||||
# Checksums
|
||||
if match x${UPDATE_CHECKSUMS} xTrue; then
|
||||
sha256sum -o ${pkg}.${ARCH}.checksums \
|
||||
/usr/bin/mes-m2 \
|
||||
/usr/bin/mescc.scm \
|
||||
/usr/lib/${MES_ARCH}-mes/crt1.s \
|
||||
/usr/lib/${MES_ARCH}-mes/crt1.o \
|
||||
/usr/lib/${MES_ARCH}-mes/${MES_ARCH}.M1 \
|
||||
/usr/lib/${MES_ARCH}-mes/libmescc.s \
|
||||
/usr/lib/${MES_ARCH}-mes/libc+tcc.s \
|
||||
/usr/lib/${MES_ARCH}-mes/libc.s \
|
||||
/usr/lib/${MES_ARCH}-mes/libmescc.a \
|
||||
/usr/lib/${MES_ARCH}-mes/libc+tcc.a \
|
||||
/usr/lib/${MES_ARCH}-mes/libc.a \
|
||||
/usr/lib/linux/${MES_ARCH}-mes/elf${ARCH_BITS}-header.hex2 \
|
||||
/usr/lib/linux/${MES_ARCH}-mes/elf${ARCH_BITS}-footer-single-main.hex2
|
||||
|
||||
cp ${pkg}.${ARCH}.checksums ${SRCDIR}
|
||||
else
|
||||
sha256sum -c ${pkg}.${ARCH}.checksums
|
||||
fi
|
||||
4
steps/mes-0.27.1/simple-patches/wait4.after
Normal file
4
steps/mes-0.27.1/simple-patches/wait4.after
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
long long_status_ptr = cast_voidp_to_long (status_ptr);
|
||||
long long_options = options;
|
||||
long long_rusage = cast_voidp_to_long (rusage);
|
||||
*long_status_ptr = 0;
|
||||
3
steps/mes-0.27.1/simple-patches/wait4.before
Normal file
3
steps/mes-0.27.1/simple-patches/wait4.before
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
long long_status_ptr = cast_voidp_to_long (status_ptr);
|
||||
long long_options = options;
|
||||
long long_rusage = cast_voidp_to_long (rusage);
|
||||
4
steps/mes-0.27.1/sources
Normal file
4
steps/mes-0.27.1/sources
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
https://mirrors.kernel.org/gnu/mes/mes-0.27.1.tar.gz 183a40ea47ea49f8a1e3bd1b9d12e676374d64d63bc79e7bc1ae7d673dfdf25d
|
||||
https://github.com/Googulator/nyacc/releases/download/V1.00.2-lb1/nyacc-1.00.2-lb1.tar.gz 708c943f89c972910e9544ee077771acbd0a2c0fc6d33496fe158264ddb65327
|
||||
https://archive.org/download/live-bootstrap-sources/nyacc-1.00.2-lb1.tar.gz 708c943f89c972910e9544ee077771acbd0a2c0fc6d33496fe158264ddb65327
|
||||
https://files.bootstrapping.world/nyacc-1.00.2-lb1.tar.gz 708c943f89c972910e9544ee077771acbd0a2c0fc6d33496fe158264ddb65327
|
||||
Loading…
Add table
Add a link
Reference in a new issue