Build (still somewhat broken) M2-Mesoplanet and get_machine.
This commit is contained in:
parent
e57d5363a4
commit
52c1b7bb4f
|
@ -13,3 +13,6 @@
|
|||
[submodule "mescc-tools"]
|
||||
path = mescc-tools
|
||||
url = https://github.com/oriansj/mescc-tools/
|
||||
[submodule "M2-Mesoplanet"]
|
||||
path = M2-Mesoplanet
|
||||
url = https://github.com/oriansj/M2-Mesoplanet.git
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 791cec1343d2bf50417637e9ba98890211263887
|
|
@ -1 +1 @@
|
|||
Subproject commit 4f17e046e87a42b79bcc5c73656122c2ae50143b
|
||||
Subproject commit 286964d5f81ee7393a24b74447ddf48d435ac89a
|
2
M2libc
2
M2libc
|
@ -1 +1 @@
|
|||
Subproject commit a1db99e06ca5fbf97f41158187908d593a8b59fd
|
||||
Subproject commit fbd4f1099ff1e45c2a572c6c2bf48058daefcd75
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
# To run in kaem simply: kaem --verbose --strict
|
||||
|
||||
ARCH="amd64"
|
||||
ARCH_DIR="amd64"
|
||||
ARCH=amd64
|
||||
ARCH_DIR=amd64
|
||||
M2LIBC="../M2libc"
|
||||
TOOLS="../${ARCH_DIR}/bin"
|
||||
BLOOD_FLAG="--64"
|
||||
|
|
|
@ -1,12 +1,119 @@
|
|||
#! /usr/bin/env bash
|
||||
# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
|
||||
# SPDX-FileCopyrightText: 2017,2019 Jeremiah Orians
|
||||
# SPDX-FileCopyrightText: 2017,2019 Jan Nieuwenhuizen <janneke@gnu.org>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
############################################
|
||||
# Phase-11 Build M2-Planet from M2-Planet #
|
||||
############################################
|
||||
|
||||
./${ARCH_DIR}/artifact/M2.efi --architecture ${ARCH} \
|
||||
-f ./M2libc/sys/types.h \
|
||||
-f ./M2libc/stddef.h \
|
||||
-f ./M2libc/${ARCH}/uefi/uefi.c \
|
||||
-f ./M2libc/string.c \
|
||||
-f ./M2libc/${ARCH}/uefi/fcntl.c \
|
||||
-f ./M2libc/fcntl.c \
|
||||
-f ./M2libc/stdio.c \
|
||||
-f ./M2libc/${ARCH}/uefi/unistd.c \
|
||||
-f ./M2libc/${ARCH}/uefi/sys/stat.c \
|
||||
-f ./M2libc/stdlib.c \
|
||||
-f ./M2libc/ctype.c \
|
||||
-f ./M2libc/bootstrappable.c \
|
||||
-f ./M2-Planet/cc.h \
|
||||
-f ./M2-Planet/cc_globals.c \
|
||||
-f ./M2-Planet/cc_reader.c \
|
||||
-f ./M2-Planet/cc_strings.c \
|
||||
-f ./M2-Planet/cc_types.c \
|
||||
-f ./M2-Planet/cc_core.c \
|
||||
-f ./M2-Planet/cc_macro.c \
|
||||
-f ./M2-Planet/cc.c \
|
||||
-o ./${ARCH_DIR}/artifact/M2-1.M1
|
||||
|
||||
./${ARCH_DIR}/bin/M1.efi --architecture ${ARCH} \
|
||||
${ENDIAN_FLAG} \
|
||||
-f ./M2libc/${ARCH}/${ARCH}_defs.M1 \
|
||||
-f ./M2libc/${ARCH}/uefi/libc-full.M1 \
|
||||
-f ./${ARCH_DIR}/artifact/M2-1.M1 \
|
||||
-f ./${ARCH_DIR}/artifact/M2-1-footer.M1 \
|
||||
-o ./${ARCH_DIR}/artifact/M2-1.hex2
|
||||
|
||||
./${ARCH_DIR}/bin/hex2.efi --architecture ${ARCH} \
|
||||
${ENDIAN_FLAG} \
|
||||
-f ./M2libc/${ARCH}/uefi/PE32-${ARCH}.hex2 \
|
||||
-f ./${ARCH_DIR}/artifact/M2-1.hex2 \
|
||||
-o ./${ARCH_DIR}/bin/M2-Planet.efi
|
||||
|
||||
cd ${ARCH_DIR}
|
||||
|
||||
###############################################
|
||||
# Phase-12 Build M2-Mesoplanet from M2-Planet #
|
||||
###############################################
|
||||
|
||||
./bin/M2-Planet.efi --architecture ${ARCH} \
|
||||
-f ../M2libc/sys/types.h \
|
||||
-f ../M2libc/stddef.h \
|
||||
-f ../M2libc/${ARCH}/uefi/uefi.c \
|
||||
-f ../M2libc/string.c \
|
||||
-f ../M2libc/${ARCH}/uefi/fcntl.c \
|
||||
-f ../M2libc/fcntl.c \
|
||||
-f ../M2libc/stdio.c \
|
||||
-f ../M2libc/${ARCH}/uefi/unistd.c \
|
||||
-f ../M2libc/${ARCH}/uefi/sys/stat.c \
|
||||
-f ../M2libc/stdlib.c \
|
||||
-f ../M2libc/ctype.c \
|
||||
-f ../M2libc/bootstrappable.c \
|
||||
-f ../M2-Mesoplanet/cc.h \
|
||||
-f ../M2-Mesoplanet/cc_globals.c \
|
||||
-f ../M2-Mesoplanet/cc_env.c \
|
||||
-f ../M2-Mesoplanet/cc_reader.c \
|
||||
-f ../M2-Mesoplanet/cc_spawn.c \
|
||||
-f ../M2-Mesoplanet/cc_core.c \
|
||||
-f ../M2-Mesoplanet/cc_macro.c \
|
||||
-f ../M2-Mesoplanet/cc.c \
|
||||
-o ./artifact/M2-Mesoplanet-1.M1
|
||||
|
||||
./bin/M1.efi --architecture ${ARCH} \
|
||||
${ENDIAN_FLAG} \
|
||||
-f ../M2libc/${ARCH}/${ARCH}_defs.M1 \
|
||||
-f ../M2libc/${ARCH}/uefi/libc-full.M1 \
|
||||
-f ./artifact/M2-Mesoplanet-1.M1 \
|
||||
-o ./artifact/M2-Mesoplanet-1.hex2
|
||||
|
||||
./bin/hex2.efi --architecture ${ARCH} \
|
||||
${ENDIAN_FLAG} \
|
||||
-f ../M2libc/${ARCH}/uefi/PE32-${ARCH}.hex2 \
|
||||
-f ./artifact/M2-Mesoplanet-1.hex2 \
|
||||
-o ./bin/M2-Mesoplanet.efi
|
||||
|
||||
#############################################
|
||||
# Phase-13 Build get_machine from C sources #
|
||||
#############################################
|
||||
|
||||
./bin/M2-Planet.efi --architecture ${ARCH} \
|
||||
-f ../M2libc/sys/types.h \
|
||||
-f ../M2libc/stddef.h \
|
||||
-f ../M2libc/${ARCH}/uefi/uefi.c \
|
||||
-f ../M2libc/string.c \
|
||||
-f ../M2libc/${ARCH}/uefi/fcntl.c \
|
||||
-f ../M2libc/fcntl.c \
|
||||
-f ../M2libc/stdio.c \
|
||||
-f ../M2libc/${ARCH}/uefi/unistd.c \
|
||||
-f ../M2libc/stdlib.c \
|
||||
-f ../M2libc/ctype.c \
|
||||
-f ../M2libc/bootstrappable.c \
|
||||
-f ../mescc-tools/get_machine.c \
|
||||
-o artifact/get_machine.M1
|
||||
|
||||
./bin/M1.efi --architecture ${ARCH} \
|
||||
${ENDIAN_FLAG} \
|
||||
-f ../M2libc/${ARCH}/${ARCH}_defs.M1 \
|
||||
-f ../M2libc/${ARCH}/uefi/libc-full.M1 \
|
||||
-f ./artifact/get_machine.M1 \
|
||||
-o ./artifact/get_machine.hex2
|
||||
|
||||
./bin/hex2.efi --architecture ${ARCH} \
|
||||
${ENDIAN_FLAG} \
|
||||
-f ../M2libc/${ARCH}/uefi/PE32-${ARCH}.hex2 \
|
||||
-f ./artifact/get_machine.hex2 \
|
||||
-o ./bin/get_machine.efi
|
||||
|
|
Loading…
Reference in New Issue