build: use jinx in the build system

now uses jinx to build a cross toolchain, mlibc, bash and the kernel. also made scheduler temporarily run /usr/bin/bash instead of /sbin/init
This commit is contained in:
Matheus
2022-09-15 17:47:05 -03:00
parent 9e1ae1ff36
commit fa37e32ed9
30 changed files with 1009 additions and 31 deletions
+1
View File
@@ -1,6 +1,7 @@
objects := $(patsubst %.c,%.o,$(wildcard *.c))
subdirs := arch/$(TARGET)/ include video sys fs
OBJPATH=$(OBJDIR)
CC=$(XCC)
export
all: $(subdirs) $(objects)
+2 -2
View File
@@ -399,7 +399,7 @@ void sched_runinit(){
stdoutfd->flags = stderrfd->flags = O_WRONLY + 1;
vnode_t* node;
ret = vfs_open(&node, vfs_root(), "sbin/init");
ret = vfs_open(&node, vfs_root(), "usr/bin/bash");
if(ret){
printf("Open failed: %s\n", strerror(ret));
@@ -421,7 +421,7 @@ void sched_runinit(){
arch_regs_setupuser(thread->regs, entry, stack, true);
timer_add(&arch_getcls()->schedreq, THREAD_QUANTUM, true);
switch_thread(thread);
__builtin_unreachable();