Linux syscalls testcases from LTP.
Please configure the compilation environment first:
export PATH=/path/to/your/riscv/toolchain:$PATH
Run a single syscall testcase:
$ cd testcases/kernel/syscalls/foo
$ make
$ PATH=$PATH:$PWD ./foo01
Install all syscalls testcases:
cd testcases/kernel/syscalls
make -j8
make install
This will install testcases to /opt/ltp
In regard to riscv64-nommu-uClibc-toolchain, you have to deal with this stuff:
pthread.h,pthread_*,fork();FILTER_OUT_MAKE_TARGETSis usefull for removing unused modules;- add
LDFLAGS += -Wl,-elf2flt=-rto compile BFLT executable; - OR just use my Prebuilt