refactor (build-system): added libnx and shell to build pipeline
This commit is contained in:
parent
091220ac71
commit
8edd425fee
|
@ -1,3 +1,4 @@
|
|||
build
|
||||
cmake-build-debug
|
||||
noxos.log
|
||||
ramdisk/shell.elf
|
12
build.sh
12
build.sh
|
@ -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.
|
@ -1,7 +0,0 @@
|
|||
#include "nox/stdio.h"
|
||||
|
||||
void _start() {
|
||||
printf("hello libc");
|
||||
|
||||
while(1) asm("hlt");
|
||||
}
|
BIN
ramdisk/test.elf
BIN
ramdisk/test.elf
Binary file not shown.
Loading…
Reference in New Issue