chore(cpio): moved initramfs binary files to /bin/*
This commit is contained in:
@@ -58,9 +58,9 @@ i32 process_spawn(const char* path, const char* name) {
|
||||
}
|
||||
|
||||
void init_task_entry() {
|
||||
i32 pid = process_spawn("/init", "init");
|
||||
i32 pid = process_spawn("/bin/init", "init");
|
||||
if (pid < 0) {
|
||||
panic("FATAL: Failed to spawn /init");
|
||||
panic("FATAL: Failed to spawn /bin/init");
|
||||
}
|
||||
|
||||
while (1) { __asm__("sti; hlt"); }
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <syscalls/proc.h>
|
||||
#include <core/scheduler.h>
|
||||
#include <core/panic.h>
|
||||
#include <drivers/console.h>
|
||||
#include <core/loader.h>
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <malloc.h>
|
||||
|
||||
int main() {
|
||||
wait(spawn("termosh")); // TODO: read .cfg and spawn what stated there
|
||||
wait(spawn("/bin/termosh")); // TODO: read .cfg and spawn what stated there
|
||||
printf("\nbaiii");
|
||||
return 0;
|
||||
}
|
||||
@@ -54,7 +54,7 @@ function(add_termos_executable NAME SOURCES)
|
||||
)
|
||||
|
||||
set(ELF2HOT_DIR "${CMAKE_SOURCE_DIR}/tools/elf2hot")
|
||||
set(FINAL_HOT_PATH "${CMAKE_SOURCE_DIR}/initramfs/${NAME}")
|
||||
set(FINAL_HOT_PATH "${CMAKE_SOURCE_DIR}/initramfs/bin/${NAME}")
|
||||
|
||||
add_custom_command(TARGET ${NAME} POST_BUILD
|
||||
COMMAND cargo run --release --quiet -- $<TARGET_FILE:${NAME}> ${FINAL_HOT_PATH}
|
||||
|
||||
Reference in New Issue
Block a user