refactor (build-system): added libnx and shell to build pipeline

This commit is contained in:
antifallobst 2023-05-06 16:33:53 +02:00
parent 091220ac71
commit 8edd425fee
6 changed files with 13 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
build
cmake-build-debug
noxos.log
ramdisk/shell.elf

View File

@ -42,6 +42,16 @@ kernel_build() {
echo ""
}
libnx_build() {
cd ../libnx
bash build.sh
cd ../kernel
}
shell_build() {
gcc shell.c -o ramdisk/shell.elf -nostdlib -nolibc -fno-stack-protector -I../libnx/inc ../libnx/build/cmake/libnx.so
}
limine_install() {
echo " --> Installing Limine"
@ -98,6 +108,8 @@ case $1 in
workspace_setup
kernel_build
[ ! -d "build/limine" ] && limine_install
libnx_build
shell_build
generate_initial_ramdisk
generate_image
;;

Binary file not shown.

View File

@ -1,7 +0,0 @@
#include "nox/stdio.h"
void _start() {
printf("hello libc");
while(1) asm("hlt");
}

Binary file not shown.