From mboxrd@z Thu Jan 1 00:00:00 1970 From: augustocaringi@gmail.com (Augusto Mecking Caringi) Date: Wed, 4 Jun 2014 01:14:45 -0300 Subject: How to test a syscall prior to compiling the kernel In-Reply-To: References: <20140604035223.GA28272@kroah.com> Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Wed, Jun 4, 2014 at 12:59 AM, Dipanjan Das wrote: > What I tried to mean is NOT to test the syscall after the modified kernel > is compiled and booted. That's easy. > > To add the syscall to the kernel, one needs to drop a C code implementing > the body of the call itself to some appropriate location of the kernel > source tree. Isn't it so? I am doing that for the first time and want to be > sure that the compilation, especially the includes work. Otherwise, the > kernel compilation may throw an error midway, thereby wasting my time. > Hi Dipanjan, Try this from the toplevel kernel source directory: make SUBDIRS=/your/specific/directory -- Augusto Mecking Caringi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140604/4d138984/attachment.html