I am trying to add a new system call to my machine, after I wrote my new system call, for instance, mysyscall.c file and i place that under /usr/src/linux/ipc/ folder and I need to update the make file under that folder for it to compile correctly, there are the current lines in that Makefile,
Code:
#
# Makefile for the linux ipc.
#
obj-y := util.o
obj-$(CONFIG_SYSVIPC_COMPAT) += compat.o
obj-$(CONFIG_SYSVIPC) += msg.o sem.o shm.o
I guess my question is how to modify this file, should I just add
Code:
obj-$(MY_SYS_CALL) += mysyscall.o
if I create a new folder under /usr/src/linux say newsyscall folder and I put all my c and h files there, then how can i should I write a makefile for it and where else i need to modify in order to compile the files when compiling the kernel.
thanks in advance!!!