refactor (drivers): moved test driver to drivers repository
This commit is contained in:
parent
bb19ff02e1
commit
3d4cea2060
6
build.sh
6
build.sh
|
@ -52,12 +52,16 @@ libnxdrv_build() {
|
||||||
cd ../libraries/libnxdrv
|
cd ../libraries/libnxdrv
|
||||||
bash build.sh
|
bash build.sh
|
||||||
cd ../../kernel
|
cd ../../kernel
|
||||||
|
|
||||||
|
cd ../drivers/test
|
||||||
|
bash build.sh
|
||||||
|
cd ../../kernel
|
||||||
|
cp ../drivers/build/test.nxkm ramdisk/test.nxkm
|
||||||
}
|
}
|
||||||
|
|
||||||
shell_build() {
|
shell_build() {
|
||||||
echo " --> Building shell"
|
echo " --> Building shell"
|
||||||
# gcc shell.c -o ramdisk/shell.elf -nostdlib -nolibc -fno-stack-protector -I../libraries/libnx/inc/public ../libraries/libnx/build/cmake/libnx.so
|
# gcc shell.c -o ramdisk/shell.elf -nostdlib -nolibc -fno-stack-protector -I../libraries/libnx/inc/public ../libraries/libnx/build/cmake/libnx.so
|
||||||
gcc test_driver.c -o ramdisk/test_driver.nxkm -nostdlib -nolibc -I../libraries/libnxdrv/inc -L../libraries/libnxdrv/build -lnxdrv
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
#include "libnxdrv.h"
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
nx_drv_init();
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
Loading…
Reference in New Issue