Update stage0-posix.
This commit is contained in:
parent
6e3fab4da2
commit
620e10d4be
5
sysa.py
5
sysa.py
|
@ -78,12 +78,9 @@ class SysA(SysGeneral):
|
||||||
shutil.copy2(kaem_optional_seed, os.path.join(self.tmp_dir, 'init'))
|
shutil.copy2(kaem_optional_seed, os.path.join(self.tmp_dir, 'init'))
|
||||||
|
|
||||||
# stage0-posix hook to continue running live-bootstrap
|
# stage0-posix hook to continue running live-bootstrap
|
||||||
shutil.copy2(os.path.join(self.sys_dir, f"after.kaem.{self.arch}"),
|
shutil.copy2(os.path.join(self.sys_dir, 'after.kaem'),
|
||||||
os.path.join(self.tmp_dir, 'after.kaem'))
|
os.path.join(self.tmp_dir, 'after.kaem'))
|
||||||
|
|
||||||
shutil.copy2(os.path.join(self.sys_dir, 'run.kaem'),
|
|
||||||
os.path.join(self.tmp_dir, 'run.kaem'))
|
|
||||||
|
|
||||||
def after(self):
|
def after(self):
|
||||||
"""
|
"""
|
||||||
Prepare sources in /after directory.
|
Prepare sources in /after directory.
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
PATH=/${STAGE0_ARCH}/bin
|
PATH=/${ARCH_DIR}/bin
|
||||||
|
|
||||||
# Set commonly used variables
|
# Set commonly used variables
|
||||||
sources=/after
|
sources=/after
|
||||||
|
@ -27,20 +27,20 @@ mkdir ${prefix} ${bindir} ${libdir} ${incdir} ${tmpdir}
|
||||||
cd ${prefix}
|
cd ${prefix}
|
||||||
|
|
||||||
# Remove remaining dependencies on /bin (stage0-posix directory)
|
# Remove remaining dependencies on /bin (stage0-posix directory)
|
||||||
cp /${STAGE0_ARCH}/bin/blood-elf bin/blood-elf
|
cp /${ARCH_DIR}/bin/blood-elf bin/blood-elf
|
||||||
cp /${STAGE0_ARCH}/bin/catm bin/catm
|
cp /${ARCH_DIR}/bin/catm bin/catm
|
||||||
cp /${STAGE0_ARCH}/bin/chmod bin/chmod
|
cp /${ARCH_DIR}/bin/chmod bin/chmod
|
||||||
cp /${STAGE0_ARCH}/bin/get_machine bin/get_machine
|
cp /${ARCH_DIR}/bin/get_machine bin/get_machine
|
||||||
cp /${STAGE0_ARCH}/bin/hex2 bin/hex2
|
cp /${ARCH_DIR}/bin/hex2 bin/hex2
|
||||||
cp /${STAGE0_ARCH}/bin/kaem bin/kaem
|
cp /${ARCH_DIR}/bin/kaem bin/kaem
|
||||||
cp /${STAGE0_ARCH}/bin/match bin/match
|
cp /${ARCH_DIR}/bin/match bin/match
|
||||||
cp /${STAGE0_ARCH}/bin/M1 bin/M1
|
cp /${ARCH_DIR}/bin/M1 bin/M1
|
||||||
cp /${STAGE0_ARCH}/bin/M2-Planet bin/M2-Planet
|
cp /${ARCH_DIR}/bin/M2-Planet bin/M2-Planet
|
||||||
cp /${STAGE0_ARCH}/bin/mkdir bin/mkdir
|
cp /${ARCH_DIR}/bin/mkdir bin/mkdir
|
||||||
cp /${STAGE0_ARCH}/bin/sha256sum bin/sha256sum
|
cp /${ARCH_DIR}/bin/sha256sum bin/sha256sum
|
||||||
cp /${STAGE0_ARCH}/bin/ungz bin/ungz
|
cp /${ARCH_DIR}/bin/ungz bin/ungz
|
||||||
cp /${STAGE0_ARCH}/bin/untar bin/untar
|
cp /${ARCH_DIR}/bin/untar bin/untar
|
||||||
cp /${STAGE0_ARCH}/bin/cp bin/cp
|
cp /${ARCH_DIR}/bin/cp bin/cp
|
||||||
|
|
||||||
chmod 755 bin/blood-elf
|
chmod 755 bin/blood-elf
|
||||||
chmod 755 bin/catm
|
chmod 755 bin/catm
|
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
|
|
||||||
ARCH=amd64
|
|
||||||
STAGE0_ARCH=AMD64
|
|
||||||
exec /${STAGE0_ARCH}/bin/kaem --verbose --file run.kaem
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
|
|
||||||
ARCH=x86
|
|
||||||
STAGE0_ARCH=x86
|
|
||||||
exec /${ARCH}/bin/kaem --verbose --file run.kaem
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 02c08dabcc4409023db5acc8f0191a1a31b8b7d0
|
Subproject commit 649b6a555822d83a4cdc8a6d41dc8d9f34a0dec1
|
Loading…
Reference in New Issue